Description
In the Linux kernel, the following vulnerability has been resolved: md/raid1: don't set array_frozen in raid1_takeover() raid1_takeover() sets conf->array_frozen = 1 on the newly-allocated r1conf and nothing ever clears it, so every I/O to the array stalls permanently once _wait_barrier() sees it stuck at 1. This used to be harmless: level_store() called mddev_resume() right after pers->run(), which called raid1_quiesce(mddev, 0) and cleared array_frozen back to 0 regardless of what raid1_takeover() set. Commit b39f35ebe86d ("md: don't quiesce in mddev_suspend()") removed that quiesce(mddev, 0) call, so the pre-set now sticks. setup_conf() already zero-initializes the new r1conf via kzalloc, so just don't set array_frozen here. Same class of bug as commit 892da88d1cd9 ("md/raid10: fix a 'conf->barrier' leakage in raid10_takeover()"), also triggered by b39f35ebe86d.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
b39f35ebe86d88788d85f61e83c81c308cb76727 to < 668d99ba47210ab6ceb18f1cf022c0accca7e3bbaffectedb39f35ebe86d88788d85f61e83c81c308cb76727 to < c57ec2749ee03cace564eec7bb37c89dc3d8d47baffectedb39f35ebe86d88788d85f61e83c81c308cb76727 to < f9cdb5bb8efbf401e84d850828271af87e6be2dcaffectedb39f35ebe86d88788d85f61e83c81c308cb76727 to < b6ec4bf1ec4446c0213c08ea493e48e6b83cd1afaffectedb39f35ebe86d88788d85f61e83c81c308cb76727 to < dc386aa0ac0a3ec06c9a3ea9b064b073fb72a916affected
Linux Linux
Default version status: affected
6.6affected0 to < 6.6unaffected6.6.157 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/668d99ba47210ab6ceb18f1cf022c0accca7e3bb ↗
- https://git.kernel.org/stable/c/c57ec2749ee03cace564eec7bb37c89dc3d8d47b ↗
- https://git.kernel.org/stable/c/f9cdb5bb8efbf401e84d850828271af87e6be2dc ↗
- https://git.kernel.org/stable/c/b6ec4bf1ec4446c0213c08ea493e48e6b83cd1af ↗
- https://git.kernel.org/stable/c/dc386aa0ac0a3ec06c9a3ea9b064b073fb72a916 ↗