[PATCH] Fix slab-out-of-bounds in nvme_dbbuf_set
Keith Busch
kbusch at kernel.org
Mon Mar 9 11:10:43 PDT 2026
On Sun, Mar 08, 2026 at 02:20:59PM -0400, Sungwoo Kim wrote:
> dev->online_queues is a count incremented in nvme_init_queue.
> Thus, valid indices are 0 through dev->online_queues - 1.
>
> This patch fixes the loop condition to ensure the index stays
> within the valid range.
> Index 0 is excluded because it is the admin queue.
Thanks, applied with some modifications to the changelog. The commit
subject should start with 'nvme-pci:' for this subsystem, and you can go
to 72 characters before wrapping the commit message.
More information about the Linux-nvme
mailing list