linux/drivers/nvme/host
Jianchao Wang 2e050f00a0 nvme-rdma: stop admin queue before freeing it
For any failure after nvme_rdma_start_queue in
nvme_rdma_configure_admin_queue, the admin queue will be freed with the
NVME_RDMA_Q_LIVE flag still set.  Once nvme_rdma_stop_queue is invoked,
that will cause a use-after-free.
BUG: KASAN: use-after-free in rdma_disconnect+0x1f/0xe0 [rdma_cm]

To fix it, call nvme_rdma_stop_queue for all the failed cases after
nvme_rdma_start_queue.

Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Suggested-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2018-05-25 16:50:12 +02:00
..
core.c nvme: host: core: fix precedence of ternary operator 2018-05-23 09:11:37 -06:00
fabrics.c nvme: fix potential memory leak in option parsing 2018-05-03 09:37:50 -06:00
fabrics.h nvme: expand nvmf_check_if_ready checks 2018-04-12 09:58:27 -06:00
fault_inject.c nvme: Add fault injection feature 2018-03-26 08:53:43 -06:00
fc.c nvme: fc: provide a descriptive error 2018-04-26 13:25:58 -06:00
Kconfig nvme: depend on INFINIBAND_ADDR_TRANS 2018-04-27 11:15:43 -04:00
lightnvm.c lightnvm: remove function name in strings 2018-03-29 17:29:09 -06:00
Makefile nvme: Add fault injection feature 2018-03-26 08:53:43 -06:00
multipath.c nvme/multipath: Fix multipath disabled naming collisions 2018-05-03 09:37:50 -06:00
nvme.h nvme: fix lockdep warning in nvme_mpath_clear_current_path 2018-05-23 08:58:27 -06:00
pci.c nvme-pci: Fix AER reset handling 2018-05-25 16:50:12 +02:00
rdma.c nvme-rdma: stop admin queue before freeing it 2018-05-25 16:50:12 +02:00
trace.c nvme: add tracepoint for nvme_setup_cmd 2018-01-26 12:34:40 +01:00
trace.h nvme: change order of qid and cmdid in completion trace 2018-04-26 13:30:08 -06:00