Re: [PATCH stable 5.4] nvmet: fix dsm failure when payload does not match sgl descriptor

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

 



On Thu, Mar 19, 2020 at 11:03:14PM -0700, Sagi Grimberg wrote:
> commit b716e6889c95f64ba32af492461f6cc9341f3f05 upstream.
> 
> The host is allowed to pass the controller an sgl describing a buffer
> that is larger than the dsm payload itself, allow it when executing
> dsm.
> 
> Reported-by: Dakshaja Uppalapati <dakshaja@xxxxxxxxxxx>
> Reviewed-by: Christoph Hellwig <hch@xxxxxx>,
> Reviewed-by: Max Gurtovoy <maxg@xxxxxxxxxxxx>
> Signed-off-by: Sagi Grimberg <sagi@xxxxxxxxxxx>
> Signed-off-by: Keith Busch <kbusch@xxxxxxxxxx>
> ---
>  drivers/nvme/target/core.c        | 11 +++++++++++
>  drivers/nvme/target/io-cmd-bdev.c |  2 +-
>  drivers/nvme/target/io-cmd-file.c |  2 +-
>  drivers/nvme/target/nvmet.h       |  1 +
>  4 files changed, 14 insertions(+), 2 deletions(-)

This patch does not apply to the 5.4 tree at all:

checking file drivers/nvme/target/core.c
Hunk #1 succeeded at 941 with fuzz 2 (offset 2 lines).
checking file drivers/nvme/target/io-cmd-bdev.c
Hunk #1 FAILED at 280.
1 out of 1 hunk FAILED
checking file drivers/nvme/target/io-cmd-file.c
Hunk #1 FAILED at 336.
1 out of 1 hunk FAILED
checking file drivers/nvme/target/nvmet.h
Hunk #1 FAILED at 374.


Are you sure you generated this properly?

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux