2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 18:53:52 +08:00
linux-next/drivers/nvme/target
Elad Grupi bdaf132791 nvmet-tcp: fix a segmentation fault during io parsing error
In case there is an io that contains inline data and it goes to
parsing error flow, command response will free command and iov
before clearing the data on the socket buffer.
This will delay the command response until receive flow is completed.

Fixes: 872d26a391 ("nvmet-tcp: add NVMe over TCP target driver")
Signed-off-by: Elad Grupi <elad.grupi@dell.com>
Signed-off-by: Hou Pu <houpu.main@gmail.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2021-04-15 08:12:50 +02:00
..
admin-cmd.c nvmet: replace white spaces with tabs 2021-04-02 18:48:25 +02:00
configfs.c nvmet: do not allow model_number exceed 40 bytes 2021-04-02 18:48:27 +02:00
core.c nvmet: remove unnecessary ctrl parameter 2021-04-02 18:48:27 +02:00
discovery.c nvmet: return proper error code from discovery ctrl 2021-04-02 18:48:28 +02:00
fabrics-cmd.c nvmet: remove unnecessary ctrl parameter 2021-04-02 18:48:27 +02:00
fc.c nvmet-fc: update function documentation 2021-04-02 18:48:27 +02:00
fcloop.c nvme: constify static attribute_group structs 2021-02-02 10:26:10 +01:00
io-cmd-bdev.c block: Add bio_max_segs 2021-02-26 15:49:51 -07:00
io-cmd-file.c nvmet: use invalid cmd opcode helper 2021-02-10 16:38:05 +01:00
Kconfig nvmet: fix a spelling mistake "incuding" -> "including" in Kconfig 2020-12-01 20:36:37 +01:00
loop.c nvme: use driver pdu command for passthrough 2021-04-02 18:48:27 +02:00
Makefile
nvmet.h nvmet: do not allow model_number exceed 40 bytes 2021-04-02 18:48:27 +02:00
passthru.c block: rename BIO_MAX_PAGES to BIO_MAX_VECS 2021-03-11 07:47:48 -07:00
rdma.c nvme-rdma: Fix a use after free in nvmet_rdma_write_data_done 2021-03-11 11:48:35 +01:00
tcp.c nvmet-tcp: fix a segmentation fault during io parsing error 2021-04-15 08:12:50 +02:00
trace.c
trace.h nvmet: use min of device_path and disk len 2021-02-10 16:38:05 +01:00