CVE-2024-56701: powerpc/pseries: Fix dtl_access_lock to be a rw_semaphore
In the Linux kernel, the following vulnerability has been resolved:
powerpc/pseries: Fix dtlaccesslock to be a rwsemaphore
The dtlaccesslock needs to be a rwsempahore, a sleeping lock, because the code calls kmalloc() while holding it, which can sleep:
# echo 1 > /proc/powerpc/vcpudispatchstats BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 inatomic(): 1, irqsdisabled(): 0, nonblock: 0, pid: 199, name: sh preemptcount: 1, expected: 0 3 locks held by sh/199: #0: c00000000a0743f8 (sbwriters#3){.+.+}-{0:0}, at: vfswrite+0x324/0x438 #1: c0000000028c7058 (dtlenablemutex){+.+.}-{3:3}, at: vcpudispatchstatswrite+0xd4/0x5f4 #2: c0000000028c70b8 (dtlaccesslock){+.+.}-{2:2}, at: vcpudispatchstatswrite+0x220/0x5f4 CPU: 0 PID: 199 Comm: sh Not tainted 6.10.0-rc4 #152 Hardware name: IBM pSeries (emulated by qemu) POWER9 (raw) 0x4e1202 0xf000005 of:SLOF,HEAD hv:linux,kvm pSeries Call Trace: dumpstacklvl+0x130/0x148 (unreliable) mightresched+0x174/0x410 kmemcacheallocnoprof+0x340/0x3d0 allocdtlbuffers+0x124/0x1ac vcpudispatchstatswrite+0x2a8/0x5f4 procregwrite+0xf4/0x150 vfswrite+0xfc/0x438 ksyswrite+0x88/0x148 systemcallexception+0x1c4/0x5a0 systemcallcommon+0xf4/0x258
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-56701?
CVE-2024-56701 has been classified with a medium severity level due to its potential impact on system stability.
How do I fix CVE-2024-56701?
To fix CVE-2024-56701, update your Linux kernel to the latest version that contains the patch addressing this vulnerability.
Which Linux kernel versions are affected by CVE-2024-56701?
CVE-2024-56701 affects multiple versions of the Linux kernel, but specifics depend on releases prior to the patch implementation.
What is the nature of the vulnerability in CVE-2024-56701?
CVE-2024-56701 involves an improper use of a lock in the powerpc/pseries code that can lead to system instability.
Who is affected by CVE-2024-56701?
Users running vulnerable versions of the Linux kernel on powerpc/pseries systems are at risk from CVE-2024-56701.