[PATCH] nvme: Fix potential gendisk leak in nvme_alloc_ns
Keith Busch
kbusch at kernel.org
Fri Nov 6 08:13:29 PST 2026
On Thu, 5 Nov 2026 21:54:38 +0000, Smith, Kyle wrote:
> Multiple BUGs were seen after the following sequence:
> 1) ctrl A in subsys A allocs ns nvmeAcAn1 and ns_head nvmeAn1 and sets
> both as live
> 2) ctrl B in subsys A allocs ns nvmeAcBn1 under ns_head nvmeAn1, but is
> interrupted or stalled between nvme_init_ns_head and healthy return
> 3) the namespace is removed from subsystem, triggering rescan
> 4) nvmeAcAn1 completes nvme_ns_remove
> 5) nvmeAcBn1 allocation returns through an error pathway in nvme_alloc_ns
>
> [...]
Thanks, applied to nvme-7.4.
[1/1] nvme: Fix potential gendisk leak in nvme_alloc_ns
commit: 1e1d36e7610fc2c2c425ea246caf8ea0380d5fd6
--
Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list