* Re: [PATCH] nvme-pci: fix parameter order in nvme_free_sgls() call
[not found] ` <aXokOX20HMD0E_PM@kbusch-mbp>
@ 2026-07-14 11:36 ` Marek Marczykowski-Górecki
2026-07-17 1:37 ` Sasha Levin
0 siblings, 1 reply; 2+ messages in thread
From: Marek Marczykowski-Górecki @ 2026-07-14 11:36 UTC (permalink / raw)
To: Keith Busch
Cc: Roger Pau Monne, xen-devel, Jens Axboe, Martin K. Petersen,
linux-nvme, linux-kernel, Christoph Hellwig, Sagi Grimberg,
stable
[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]
On Wed, Jan 28, 2026 at 07:59:05AM -0700, Keith Busch wrote:
> On Tue, Jan 27, 2026 at 08:59:06PM +0100, Roger Pau Monne 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.
On Wed, Jan 28, 2026 at 09:49:58AM +0100, Christoph Hellwig wrote:
> Reviewed-by: Christoph Hellwig <hch@lst.de>
>
> but maybe we can reword the subject to sound less harmless, e.g.:
>
> nvme-pci: DMA unmap the correct regions in nvme_free_sgls
On Wed, Jan 28, 2026 at 07:59:05AM -0700, Keith Busch wrote:
> Thanks, applied to nvme-6.19 with updated subject.
Hi,
I think this wants to be included in v6.18 too, as it also has the
faulty commit. And indeed, I do hit this issue when running 6.18.38.
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread