blk-mq: fix potential deadlock while nr_requests grown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
blk-mq: fix potential deadlock while nr_requests grown
Allocate and free sched_tags while queue is freezed can deadlock[1], this is a long term problem, hence allocate memory before freezing queue and free memory after queue is unfreezed.
[1] https://lore.kernel.org/all/0659ea8d-a463-47c8-9180-43c719e106eb@linux.ibm.com/
From the CVE record · Linux
The Linux kernel's blk-mq code can deadlock when it allocates or frees scheduler tags while a queue is frozen as nr_requests grows. The input does not specify whether an attacker can trigger this, or any access or interaction requirements.
Engineers running the Linux kernel should check their versions; affected versions are not specified.