linux_dsm_epyc7002/drivers/nvme/target
Ziye Yang a6ce7d7b4a nvmet-tcp: Fix NULL dereference when a connect data comes in h2cdata pdu
When handling commands without in-capsule data, we assign the ttag
assuming we already have the queue commands array allocated (based
on the queue size information in the connect data payload). However
if the connect itself did not send the connect data in-capsule we
have yet to allocate the queue commands,and we will assign a bogus
ttag and suffer a NULL dereference when we receive the corresponding
h2cdata pdu.

Fix this by checking if we already allocated commands before
dereferencing it when handling h2cdata, if we didn't, its for sure a
connect and we should use the preallocated connect command.

Signed-off-by: Ziye Yang <ziye.yang@intel.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
2020-08-28 16:43:56 -07:00
..
admin-cmd.c nvmet: add passthru code to process commands 2020-07-29 07:45:21 +02:00
configfs.c nvmet: fix a memory leak 2020-08-21 17:14:27 -06:00
core.c nvmet: Disable keep-alive timer when kato is cleared to 0h 2020-08-21 17:14:28 -06:00
discovery.c nvmet: introduce flags member in nvmet_fabrics_ops 2020-07-08 16:16:17 +02:00
fabrics-cmd.c nvmet: add metadata/T10-PI support 2020-05-27 07:12:40 +02:00
fc.c nvmet-fc: remove redundant del_work_active flag 2020-07-29 07:45:20 +02:00
fcloop.c nvme-fcloop: verify wwnn and wwpn format 2020-07-08 16:16:17 +02:00
io-cmd-bdev.c for-5.8/drivers-2020-06-01 2020-06-02 15:37:03 -07:00
io-cmd-file.c nvmet: rename nvmet_check_data_len to nvmet_check_transfer_len 2020-05-27 07:12:39 +02:00
Kconfig nvmet: introduce the passthru Kconfig option 2020-07-29 07:45:21 +02:00
loop.c nvme: rename and document nvme_end_request 2020-08-21 17:14:28 -06:00
Makefile nvmet: add passthru code to process commands 2020-07-29 07:45:21 +02:00
nvmet.h nvmet: introduce the passthru configfs interface 2020-07-29 07:45:21 +02:00
passthru.c nvmet: call blk_mq_free_request() directly 2020-08-21 17:14:27 -06:00
rdma.c nvmet-rdma: use new shared CQ mechanism 2020-07-29 07:45:19 +02:00
tcp.c nvmet-tcp: Fix NULL dereference when a connect data comes in h2cdata pdu 2020-08-28 16:43:56 -07:00
trace.c
trace.h nvmet: add async event tracing support 2020-05-27 07:12:38 +02:00