In the Linux kernel, the following vulnerability has been resolved: virtio_blk: freeze the virtqueue layout at probe time init_vq() reads the writable num_request_queues and poll_queues module parameters both at probe and when recreating virtqueues after suspend or reset. However, virtio-blk does not update the blk-mq hardware queue count or queue maps on restore. Increasing poll_queues can therefore remove the completion callback from a virtqueue still used for interrupt-driven I/O, leaving requests uncompleted. Reducing the effective request queue count through num_request_queues can instead leave existing hardware contexts indexing beyond the reallocated vblk->vqs array. Determine the virtqueue count and the split between interrupt-driven and polling queues once at probe, and reuse this layout when recreating the virtqueues. Changes to these module parameters then affect only subsequently probed devices.
https://git.kernel.org/stable/c/d53c1a12ff1cfdb12770ddcfdf5603915d0ba0d8
https://git.kernel.org/stable/c/7efa36da3a581ab93fe4f20333e4c5f44f518e43