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.
https://git.kernel.org/stable/c/c1680f84fff9a0d4ca4ba8c459b3e14c46f1b016
https://git.kernel.org/stable/c/98bf8743f89b64e90cf57f41339b704ce7196ccd
https://git.kernel.org/stable/c/3a9892bca4dd0182db61702e131cad569b1d71e6