Linux kernel -stable discussions
 help / color / mirror / Atom feed
* 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

* Re: [PATCH] nvme-pci: fix parameter order in nvme_free_sgls() call
  2026-07-14 11:36   ` [PATCH] nvme-pci: fix parameter order in nvme_free_sgls() call Marek Marczykowski-Górecki
@ 2026-07-17  1:37     ` Sasha Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2026-07-17  1:37 UTC (permalink / raw)
  To: Keith Busch
  Cc: Sasha Levin, Roger Pau Monne, xen-devel, Jens Axboe,
	Martin K. Petersen, linux-nvme, linux-kernel, Christoph Hellwig,
	Sagi Grimberg, stable, Marek Marczykowski-Górecki

On Tue, Jul 14, 2026 at 01:36:55PM +0200, Marek Marczykowski-Górecki wrote:
> 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.

Nicolai Buchwitz sent a 6.18.y backport of this, which is now queued
for 6.18, thanks.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-17  1:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20260127195907.34563-1-roger.pau@citrix.com>
     [not found] ` <aXokOX20HMD0E_PM@kbusch-mbp>
2026-07-14 11:36   ` [PATCH] nvme-pci: fix parameter order in nvme_free_sgls() call Marek Marczykowski-Górecki
2026-07-17  1:37     ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox