linux/drivers/nvme/target
Sagi Grimberg 5068f9ec53 nvmet: fix dsm failure when payload does not match sgl descriptor
[ Upstream commit b716e6889c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2020-02-24 08:38:48 +01:00
..
admin-cmd.c nvmet: fix per feat data len for get_feature 2020-01-10 08:55:50 -07:00
configfs.c nvmet: Fix use-after-free bug when a port is removed 2019-07-31 17:57:06 -07:00
core.c nvmet: fix dsm failure when payload does not match sgl descriptor 2020-02-24 08:38:48 +01:00
discovery.c nvmet: fill discovery controller sn, fr and mn correctly 2019-11-04 10:56:42 -07:00
fabrics-cmd.c nvmet: Fix controller use after free 2020-02-11 04:36:40 -08:00
fc.c nvmet: Open code nvmet_req_execute() 2019-11-04 10:56:42 -07:00
fcloop.c nvme_fc: add module to ops template to allow module references 2019-11-27 02:48:27 +09:00
io-cmd-bdev.c nvmet: fix dsm failure when payload does not match sgl descriptor 2020-02-24 08:38:48 +01:00
io-cmd-file.c nvmet: fix dsm failure when payload does not match sgl descriptor 2020-02-24 08:38:48 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
loop.c nvmet-loop: Avoid preallocating big SGL for data 2019-11-27 02:14:19 +09:00
Makefile nvmet: introduce target-side trace 2019-06-21 11:15:46 +02:00
nvmet.h nvmet: fix dsm failure when payload does not match sgl descriptor 2020-02-24 08:38:48 +01:00
rdma.c nvmet: Open code nvmet_req_execute() 2019-11-04 10:56:42 -07:00
tcp.c nvmet: Open code nvmet_req_execute() 2019-11-04 10:56:42 -07:00
trace.c nvmet: trace: parse Get LBA Status command in detail 2019-08-29 12:55:01 -07:00
trace.h nvmet: introduce target-side trace 2019-06-21 11:15:46 +02:00