Description
In the Linux kernel, the following vulnerability has been resolved: nvmet-rdma: disable interrupts under rsp_wr_wait_lock rsp_wr_wait_lock protects the list of commands waiting for room in the send queue, and it's taken with plain spin_lock(). But nvmet_rdma_queue_response() calls nvmet_rdma_release_rsp() directly if ib_post_send() fails, and that processes the wait list. The call chain starts in nvmet_req_complete(), which for a block device namespace runs from the bio end_io callback, which can be in hard interrupt context. An interrupt that completes a command on a CPU holding the lock for the same queue spins forever. Lockdep over siw with a null_blk namespace: inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage Use spin_lock_irqsave() for both takers. The processing loop still drops the lock, and restores the caller's interrupt state, around nvmet_rdma_execute_command().
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
8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < f1e56916c140dee03248a744e4990c9e5374e9b3affected8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < 1fecac24f5e89cb93ae9991476c2fef3812987d0affected8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < 4cdd627da94f90901c2208009b0e07d62010c4e8affected8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < a5f483eea879cbf62e371c9db65dcb487dc0ff5aaffected8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < 79328a8a24c604018562d246a55c6071eb99ca94affected8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < ab007be71a398a27e5bcf7117253391a99c3b333affected8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < b580abd990c0ed27ed1ee9ae9e7c3b99a1b3bd3baffected8f000cac6e7a6edca7ab93bafc7ed28b27c1545b to < 14e4e09443ac2b5cd90c1e313ee3c0bdd4928e0daffected
Linux Linux
Default version status: affected
4.8affected0 to < 4.8unaffected5.10.275 to ≤ 5.10.*unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/f1e56916c140dee03248a744e4990c9e5374e9b3 ↗
- https://git.kernel.org/stable/c/1fecac24f5e89cb93ae9991476c2fef3812987d0 ↗
- https://git.kernel.org/stable/c/4cdd627da94f90901c2208009b0e07d62010c4e8 ↗
- https://git.kernel.org/stable/c/a5f483eea879cbf62e371c9db65dcb487dc0ff5a ↗
- https://git.kernel.org/stable/c/79328a8a24c604018562d246a55c6071eb99ca94 ↗
- https://git.kernel.org/stable/c/ab007be71a398a27e5bcf7117253391a99c3b333 ↗
- https://git.kernel.org/stable/c/b580abd990c0ed27ed1ee9ae9e7c3b99a1b3bd3b ↗
- https://git.kernel.org/stable/c/14e4e09443ac2b5cd90c1e313ee3c0bdd4928e0d ↗