From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12DE12F25E2 for ; Wed, 28 Jan 2026 14:59:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769612348; cv=none; b=D1K955ZbWK3+Y6JJHZ//RLdjFJ6MV1ub4iDg/llwWiV6nQKfYTZMK+Y+CKcI6ZGJnUjNlJH4X2Q3iTUIzZXl50PmjDgnkYNqQJlydh23thP5X7LQsFoCBmC7ccFUM6Gm2JqB1z2QmCqvQ1XmtRtbrErwBCnWXzhif6h/g7jPKVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769612348; c=relaxed/simple; bh=gVOMR1V4hcjeaNYFYShKh4GCAi/n0lKjKVqv/7s0UjE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JXsDyO18YMOlD9AgcLQ2M6QWTxrlDkKX1ls0RK7qS5iIHD0CaftoLtM4KAKY0TSoJVbAW8Xk8U8UDiz+0aHZ96xyVJHwbJZ3YyvSoZfwOMHmdwVH9rCySC9Wq2qFzVyzcXYzWiKBkRdHMQPru64O49PSufp4O7OteWDtRKCKL4g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sXYgIgZQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sXYgIgZQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B0F7C4CEF1; Wed, 28 Jan 2026 14:59:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769612347; bh=gVOMR1V4hcjeaNYFYShKh4GCAi/n0lKjKVqv/7s0UjE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sXYgIgZQFpF4OaS2aeeh29HK5PXhUS6cCC9vxUcDunyQ/KZJL1RMIixiElusW8/Kl n8yNYfLEWh3H2unOQH0bXnc2ismKxpNUUc/iuT+e0D+B9ICQZXheGbr82f4ptADSq2 YySOlRXCrqmnZmk+XLeLNngwD2SzJ0EcRF0zJRdAnJ1KweUqNV4K6x6NxkXEriFBo2 lm/Jci15Jfsesy2hvdnmb2GaVxY+aevqf1Ju60+/Lljv/kK1m1S7QatgzDuzE97nz7 dYfVD1djkmQ02JPD8eY9zRwymtgNAF0S0BhzJnWoolIaH11Tz+9+0TfJDV45zzjKpN yz1jZaDr2UILQ== Date: Wed, 28 Jan 2026 07:59:05 -0700 From: Keith Busch To: Roger Pau Monne Cc: xen-devel@lists.xenproject.org, Jens Axboe , "Martin K. Petersen" , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Sagi Grimberg Subject: Re: [PATCH] nvme-pci: fix parameter order in nvme_free_sgls() call Message-ID: References: <20260127195907.34563-1-roger.pau@citrix.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260127195907.34563-1-roger.pau@citrix.com> 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. Thanks, applied to nvme-6.19 with updated subject.