[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <173863996289.4118719.8857069927274668489.b4-ty@oracle.com>
Date: Mon, 3 Feb 2025 22:33:07 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: "K. Y. Srinivasan" <kys@...rosoft.com>,
Haiyang Zhang <haiyangz@...rosoft.com>, Wei Liu <wei.liu@...nel.org>,
Dexuan Cui <decui@...rosoft.com>,
"James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
James Bottomley <JBottomley@...n.com>, linux-hyperv@...r.kernel.org,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
Roman Kisel <romank@...ux.microsoft.com>,
Michael Kelley <mhklinux@...look.com>, longli@...uxonhyperv.com
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
Long Li <longli@...rosoft.com>, stable@...nel.org
Subject: Re: [PATCH v2] scsi: storvsc: Set correct data length for sending SCSI command without payload
On Wed, 22 Jan 2025 19:07:22 -0800, longli@...uxonhyperv.com wrote:
> In StorVSC, payload->range.len is used to indicate if this SCSI command
> carries payload. This data is allocated as part of the private driver
> data by the upper layer and may get passed to lower driver uninitialized.
>
> For example, the SCSI error handling mid layer may send TEST_UNIT_READY
> or REQUEST_SENSE while reusing the buffer from a failed command. The
> private data section may have stale data from the previous command.
>
> [...]
Applied to 6.14/scsi-fixes, thanks!
[1/1] scsi: storvsc: Set correct data length for sending SCSI command without payload
https://git.kernel.org/mkp/scsi/c/87c4b5e8a6b6
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists