Re: Patch "scsi: storvsc: Limit max_sectors for virtual Fibre Channel devices" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 07, 2023 at 02:14:01PM +0000, Michael Kelley (LINUX) wrote:
> From: gregkh@xxxxxxxxxxxxxxxxxxx <gregkh@xxxxxxxxxxxxxxxxxxx> Sent: Monday, August 7, 2023 12:17 AM
> > 
> > This is a note to let you know that I've just added the patch titled
> > 
> >     scsi: storvsc: Limit max_sectors for virtual Fibre Channel devices
> > 
> > to the 5.15-stable tree which can be found at:
> > 
> > https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git
> 
> This commit should not need backporting to 5.15.  The commit that
> it is fixing first appeared in 5.19.

Yes, but:

> 
> Michael
> 
> > 
> > The filename of the patch is:
> >      scsi-storvsc-limit-max_sectors-for-virtual-fibre-channel-devices.patch
> > and it can be found in the queue-5.15 subdirectory.
> > 
> > If you, or anyone else, feels it should not be added to the stable tree,
> > please let <stable@xxxxxxxxxxxxxxx> know about it.
> > 
> > 
> > From 010c1e1c5741365dbbf44a5a5bb9f30192875c4c Mon Sep 17 00:00:00 2001
> > From: Michael Kelley <mikelley@xxxxxxxxxxxxx>
> > Date: Thu, 20 Jul 2023 14:05:02 -0700
> > Subject: scsi: storvsc: Limit max_sectors for virtual Fibre Channel devices
> > 
> > From: Michael Kelley <mikelley@xxxxxxxxxxxxx>
> > 
> > commit 010c1e1c5741365dbbf44a5a5bb9f30192875c4c upstream.
> > 
> > The Hyper-V host is queried to get the max transfer size that it supports,
> > and this value is used to set max_sectors for the synthetic SCSI
> > controller.  However, this max transfer size may be too large for virtual
> > Fibre Channel devices, which are limited to 512 Kbytes.  If a larger
> > transfer size is used with a vFC device, Hyper-V always returns an error,
> > and storvsc logs a message like this where the SRB status and SCSI status
> > are both zero:
> > 
> > hv_storvsc <GUID>: tag#197 cmd 0x8a status: scsi 0x0 srb 0x0 hv 0xc0000001
> > 
> > Add logic to limit the max transfer size to 512 Kbytes for vFC devices.
> > 
> > Fixes: 1d3e0980782f ("scsi: storvsc: Correct reporting of Hyper-V I/O size limits")

This commit is in 5.15.51, so why wouldn't the fix also be needed in
this tree?

thanks,

greg k-h



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux