block: mark GFP_NOIO around sysfs ->store()
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 |
|
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
block: mark GFP_NOIO around sysfs ->store()
sysfs ->store is called with queue freezed, meantime we have several ->store() callbacks(update_nr_requests, wbt, scheduler) to allocate memory with GFP_KERNEL which may run into direct reclaim code path, then potential deadlock can be caused.
Fix the issue by marking NOIO around sysfs ->store()
From the CVE record · Linux
The Linux kernel's block sysfs store callbacks can allocate memory while a queue is frozen. If that allocation enters direct reclaim, a deadlock can occur. This requires a sysfs store operation; the input does not specify authentication requirements or a network attack path.
Engineers running the Linux kernel should check their version against the vendor advisory; affected versions were not provided.