CVE-2026-142891: nvme-loop: don't BUG() if a scan runs beside a reset
In the Linux kernel, the following vulnerability has been resolved:
nvme-loop: don't BUG() if a scan runs beside a reset
A reset sets queuecount to 1 while it destroys the I/O queues and counts it back up when the new ones are made, and it doesn't stop the scan work. A new namespace found in that window trips the check in nvmeloopinithctx() for every hctx but the first:
kernel BUG at drivers/nvme/target/loop.c:224! nvmeloopinithctx+0x7d/0x80 blkmqreallochwctxs+0x3af/0xa80 nvmeallocns+0x1a2/0x22f0
The check protects nothing. ctrl->queues has nrioqueues + 1 entries for the life of the controller, the tag set never has more hardware queues than that, and nvmeloopqueuerq() rejects requests until the controller is live again.
Remove it.