linux/drivers/nvme/host
Ruozhu Li 9817d763db nvme-rdma: destroy cm id before destroy qp to avoid use after free
We should always destroy cm_id before destroy qp to avoid to get cma
event after qp was destroyed, which may lead to use after free.
In RDMA connection establishment error flow, don't destroy qp in cm
event handler.Just report cm_error to upper level, qp will be destroy
in nvme_rdma_alloc_queue() after destroy cm id.

Signed-off-by: Ruozhu Li <liruozhu@huawei.com>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2021-09-14 10:32:04 +02:00
..
core.c nvme: avoid race in shutdown namespace removal 2021-09-13 17:04:04 +02:00
fabrics.c nvme-fabrics: remove superfluous nvmf_host_put in nvmf_parse_options 2021-08-16 14:42:23 +02:00
fabrics.h nvme: use blk_execute_rq() for passthrough commands 2021-06-30 15:35:38 -06:00
fault_inject.c nvme: enable to inject errors into admin commands 2019-06-21 11:15:50 +02:00
fc.c block-5.14-2021-07-08 2021-07-09 12:05:33 -07:00
fc.h nvme-fc: Update header and host for common definitions for LS handling 2020-05-09 16:18:33 -06:00
hwmon.c nvme-hwmon: Return error code when registration fails 2021-03-05 13:41:03 +01:00
ioctl.c remove the lightnvm subsystem 2021-08-14 15:54:09 -06:00
Kconfig nvme: Have NVME_FABRICS select NVME_CORE instead of transport drivers 2021-08-16 21:03:18 +02:00
Makefile remove the lightnvm subsystem 2021-08-14 15:54:09 -06:00
multipath.c nvme-multipath: fix ANA state updates when a namespace is not present 2021-09-14 10:32:04 +02:00
nvme.h nvme: move nvme_multi_css into nvme.h 2021-09-06 09:59:02 +02:00
pci.c nvme: allow user toggling hmb usage 2021-08-16 14:42:24 +02:00
rdma.c nvme-rdma: destroy cm id before destroy qp to avoid use after free 2021-09-14 10:32:04 +02:00
tcp.c nvme-tcp: Do not reset transport on data digest errors 2021-09-06 10:03:11 +02:00
trace.c nvme: add set feature tracing support 2021-08-16 14:42:23 +02:00
trace.h nvme: fix nvme_setup_command metadata trace event 2021-07-21 09:55:44 +02:00
zns.c nvme: split nvme_report_zones 2021-06-03 10:29:26 +03:00