VulnWatch by ve1ve2
unknown EPSS 0.21%

DEBIAN-CVE-2023-54013: In the Linux kernel, the following vulnerability has been resolved: interconnect: Fix locking for runpm vs reclaim For cases where icc_bw_set() can be called i…

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
linux 12:linux

https://osv.dev/vulnerability/DEBIAN-CVE-2023-54013 ↗

osvdebianfix-available

In the Linux kernel, the following vulnerability has been resolved: interconnect: Fix locking for runpm vs reclaim For cases where icc_bw_set() can be called in callbaths that could deadlock against shrinker/reclaim, such as runpm resume, we need to decouple the icc locking. Introduce a new icc_bw_lock for cases where we need to serialize bw aggregation and update to decouple that from paths that require memory allocation such as node/link creation/ destruction. Fixes this lockdep splat: ====================================================== WARNING: possible circular locking dependency detected 6.2.0-rc8-debug+ #554 Not tainted ------------------------------------------------------ ring0/132 is trying to acquire lock: ffffff80871916d0 (&gmu->lock){+.+.}-{3:3}, at: a6xx_pm_resume+0xf0/0x234 but task is already holding lock: ffffffdb5aee57e8 (dma_fence_map){++++}-{0:0}, at: msm_job_run+0x68/0x150 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #4 (dma_fence_map){++++}-{0:0}: __dma_fence_might_wait+0x74/0xc0 dma_resv_lockdep+0x1f4/0x2f4 do_one_initcall+0x104/0x2bc kernel_init_freeable+0x344/0x34c kernel_init+0x30/0x134 ret_from_fork+0x10/0x20 -> #3 (mmu_notifier_invalidate_range_start){+.+.}-{0:0}: fs_reclaim_acquire+0x80/0xa8 slab_pre_alloc_hook.constprop.0+0x40/0x25c __kmem_cache_alloc_node+0x60/0x1cc __kmalloc+0xd8/0x100 topology_parse_cpu_capacity+0x8c/0x178 get_cpu_for_node+0x88/0xc4 parse_cluster+0x1b0/0x28c parse_cluster+0x8c/0x28c init_cpu_topology+0x168/0x188 smp_prepare_cpus+0x24/0xf8 kernel_init_freeable+0x18c/0x34c kernel_init+0x30/0x134 ret_from_fork+0x10/0x20 -> #2 (fs_reclaim){+.+.}-{0:0}: __fs_reclaim_acquire+0x3c/0x48 fs_reclaim_acquire+0x54/0xa8 slab_pre_alloc_hook.constprop.0+0x40/0x25c __kmem_cache_alloc_node+0x60/0x1cc __kmalloc+0xd8/0x100 kzalloc.constprop.0+0x14/0x20 icc_node_create_nolock+0x4c/0xc4 icc_node_create+0x38/0x58 qcom_icc_rpmh_probe+0x1b8/0x248 platform_probe+0x70/0xc4 really_probe+0x158/0x290 __driver_probe_device+0xc8/0xe0 driver_probe_device+0x44/0x100 __driver_attach+0xf8/0x108 bus_for_each_dev+0x78/0xc4 driver_attach+0x2c/0x38 bus_add_driver+0xd0/0x1d8 driver_register+0xbc/0xf8 __platform_driver_register+0x30/0x3c qnoc_driver_init+0x24/0x30 do_one_initcall+0x104/0x2bc kernel_init_freeable+0x344/0x34c kernel_init+0x30/0x134 ret_from_fork+0x10/0x20 -> #1 (icc_lock){+.+.}-{3:3}: __mutex_lock+0xcc/0x3c8 mutex_lock_nested+0x30/0x44 icc_set_bw+0x88/0x2b4 Affected: Debian:12:linux, Debian:13:linux, Debian:14:linux Fixed in: 6.5.6-1 References: https://security-tracker.debian.org/tracker/CVE-2023-54013

Linked vulnerabilities (1)

CVE-2023-54013 unknown EPSS 0.21% (p12) NVDCVE.org

In the Linux kernel, the following vulnerability has been resolved: interconnect: Fix locking for runpm vs reclaim For cases where icc_bw_set() can be called in callbaths that could deadlock against shrinker/reclaim, such as runpm resume, we need to decouple the icc locking. Introduce a new icc_bw_lock for cases where we need to serialize bw aggregation and update to decouple that from paths that require memory allocation such as node/link creation/ destruction. Fixes this lockdep splat: ====================================================== WARNING: possible circular locking...

Aliases: CVE-2023-52452, CVE-2023-52490, CVE-2023-52586, CVE-2023-52590, CVE-2023-52591, CVE-2023-52653, CVE-2023-52671, CVE-2023-52751, CVE-2023-52770, CVE-2023-52771, CVE-2023-52888, CVE-2023-53149, CVE-2023-53261, CVE-2023-53394, CVE-2023-53447, CVE-2023-53523, CVE-2023-53781, CVE-2023-53823, CVE-2023-53846, CVE-2023-54107, CVE-2024-14040, CVE-2024-26661, CVE-2024-26662, CVE-2024-26669, CVE-2024-26670, CVE-2024-26677, CVE-2024-26690, CVE-2024-26740, CVE-2024-26799, CVE-2024-26841, CVE-2024-26866, CVE-2024-26869, CVE-2024-26876, CVE-2024-26886, CVE-2024-26889, CVE-2024-26947, CVE-2024-26948, CVE-2024-26953, CVE-2024-27010, CVE-2024-27011, CVE-2024-27022, CVE-2024-27041, CVE-2024-27057, CVE-2024-27062, CVE-2024-27408, CVE-2024-35784, CVE-2024-35799, CVE-2024-35860, CVE-2024-35904NVD: Deferred

Also reported by (1)