md/raid1,raid10: don't ignore IO flags
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:
md/raid1,raid10: don't ignore IO flags
If blk-wbt is enabled by default, it's found that raid write performance is quite bad because all IO are throttled by wbt of underlying disks, due to flag REQ_IDLE is ignored. And turns out this behaviour exist since blk-wbt is introduced.
Other than REQ_IDLE, other flags should not be ignored as well, for example REQ_META can be set for filesystems, clearing it can cause priority reverse problems; And REQ_NOWAIT should not be cleared as well, because io will wait instead of failing directly in underlying disks.
Fix those problems by keep IO flags from master bio.
Fises: f51d46d0e7cb ("md: add support for REQ_NOWAIT")
From the CVE record · Linux
The Linux kernel's md/raid1 and raid10 code can discard I/O flags when passing requests to underlying disks. With blk-wbt enabled, this can throttle RAID writes; discarded flags can also cause priority inversion or make I/O wait instead of failing immediately. The input does not describe an attacker, authentication requirement, or user interaction.
Engineers running Linux kernels with md/raid1 or raid10 should check whether their kernel includes the fix; affected versions are not specified.