[PATCH 6.18.y] nvme-pci: DMA unmap the correct regions in nvme_free_sgls

Sasha Levin sashal at kernel.org
Thu Jul 16 18:37:28 PDT 2026


On Tue, Jul 14, 2026 at 10:13:42PM +0200, Nicolai Buchwitz wrote:
> The call to nvme_free_sgls() in nvme_unmap_data() has the sg_list and sge
> parameters swapped.  This wasn't noticed by the compiler because both share
> the same type.  On a Xen PV hardware domain, and possibly any other
> architectures that takes that path, this leads to corruption of the NVMe
> contents.

Queued for 6.18, thanks.

-- 
Thanks,
Sasha



More information about the Linux-nvme mailing list