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@chelsio.com Reviewed-by: Christoph Hellwig hch@lst.de, Reviewed-by: Max Gurtovoy maxg@mellanox.com Signed-off-by: Sagi Grimberg sagi@grimberg.me Signed-off-by: Keith Busch kbusch@kernel.org
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