Description
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.
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
0989c41bed96e5dcf7939c6303e3759f02c4c16f to < 7efa36da3a581ab93fe4f20333e4c5f44f518e43affected0989c41bed96e5dcf7939c6303e3759f02c4c16f to < d53c1a12ff1cfdb12770ddcfdf5603915d0ba0d8affected
Linux Linux
Default version status: affected
5.16affected0 to < 5.16unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected