CVE-2026-139143: block: don't enter reclaim under rq_qos_mutex
In the Linux kernel, the following vulnerability has been resolved:
block: don't enter reclaim under rqqosmutex
iocqoswrite() and the wbtlatusec writers take rqqosmutex with the queue frozen, blkcgdeactivatepolicy() does the same with blkcgmutex, so nothing holding either may wait for IO. blkgconfprep() got GFPNOIO for the blkg in commit 5d726c4dbeed, but the radixtreepreload() right after it, the policy init functions and the GFPKERNEL fallback in blkcgactivatepolicy() can still enter reclaim there. lockdep reports the cycle on the first write to io.max.
Use GFPNOIO for all of them.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Use GFP_NOIO for allocations performed while holding rq_qos_mutex or blkcg_mutex, including the GFP_KERNEL fallback in blkcg_activate_policy().
Event History
Frequently Asked Questions
What conditions are needed to trigger this issue?
The issue can be triggered when cgroup I/O QoS configuration is changed, including the first write to io.max, or when wbt_lat_usec is written. These paths operate with the request queue frozen and hold rq_qos_mutex or blkcg_mutex.
What is the practical impact?
Memory allocation in these configuration paths can enter reclaim while the relevant mutex is held, creating a lock dependency cycle. Lockdep reports the cycle on the first write to io.max.
How can exposure be reduced before applying the fix?
Avoid changing io.max or wbt_lat_usec settings while affected code is in use. The resolved change uses GFP_NOIO for allocations in these paths so they do not enter I/O reclaim while the mutexes are held.
How can I check whether a system is affected?
Look for lockdep reports associated with the first write to io.max. Systems that do not use these cgroup I/O QoS or writeback-throttling configuration paths may not exercise the vulnerable behavior.