Description
In the Linux kernel, the following vulnerability has been resolved: blk-mq: reset queue state on scheduler teardown We observed I/O timeouts with requests stalled in per-CPU software queues. The affected queue had no elevator, but QUEUE_FLAG_SQ_SCHED remained set. A failed elevator switch can leave this state when falling back to none without clearing the flag. With empty hctx dispatch lists, a queue-wide restart on CPU4 would skip requests pending in ctx5/ctx7: CPU4: blk_mq_run_hw_queues(q) sq_hctx = hctx4 hctx4: no pending requests -> selected hctx5: 9 reads in ctx5 -> skipped hctx7: 3 writes in ctx7 -> skipped The pending requests may remain undispatched until another event runs their hardware queues. Clear the flag and restore nr_requests and async_depth to the driver queue depth in the common scheduler teardown path, covering both scheduler exit and failed initialization.
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
4d337cebcb1c27d9b48c48b9a98e939d4552d584 to < c1680f84fff9a0d4ca4ba8c459b3e14c46f1b016affected4d337cebcb1c27d9b48c48b9a98e939d4552d584 to < 98bf8743f89b64e90cf57f41339b704ce7196ccdaffected4d337cebcb1c27d9b48c48b9a98e939d4552d584 to < 3a9892bca4dd0182db61702e131cad569b1d71e6affected
Linux Linux
Default version status: affected
5.19affected0 to < 5.19unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected