Re: [PATCH] nvme-pci: fix parameter order in nvme_free_sgls() call
Marek Marczykowski-Górecki <[email protected]>
| Newsgroups | org.infradead.lists.linux-nvme,org.kernel.vger.linux-kernel,org.kernel.vger.stable,org.xenproject.lists.xen-devel |
|---|---|
| Message-ID | <alYfV2l-7p4Y3eX-@mail-itl> |
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 <[email protected]> > > 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
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAmpWH1cACgkQ24/THMrX 1yyenAf9FWpkwva0hdfgfqEDIy6a/Hgllhx36/HeJWibLzeDbTJFYpwU8I+qDTRh fFCn1CT9lYNxu4O0IFtCTBiktCI/J7aFuZXIvFak2viOU9Jc06fYF5q+dEgwnZm2 m/glL8tOsJDW9TCtxqzvn5Zvjb7eGZCqKZeQFQmlcDWgTsXLssyoTrYJBoK3EyKV XqJooQme6+zH6s6S0ACyaBWq/5W6MmWsa6awJ2RlhDFOX3LgKjXY6TMAIXkCVjj5 VHOepitO3/fFqVu2QpICN89638kG9JCZsG53x/dUSVrtdpBVZhXVYkzMTT2ViDUu P7FaNiGtA2F7sbx1kImZcp8q0pSQrA== =7k8S -----END PGP SIGNATURE-----