Re: [PATCH] nvme: reject completions for requests that are not in flight

From: Keith Busch

Date: Wed May 27 2026 - 11:06:07 EST


On Fri, May 22, 2026 at 11:30:34AM -0400, Chao Shi wrote:
> Oops: general protection fault ... KASAN: null-ptr-deref
> RIP: blk_mq_complete_request_remote+0xe5/0xa80 block/blk-mq.c:1319
> nvme_handle_cqe drivers/nvme/host/pci.c:1418 [inline]
> nvme_poll_cq drivers/nvme/host/pci.c:1449
> nvme_irq drivers/nvme/host/pci.c:1463

This scenario doesn't sound specific to nvme. Should blk-mq completion
check for the IN_FLIGHT state instead?