Files
linux/drivers
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
..
2018-04-19 15:11:50 -07:00
2018-03-27 09:51:22 +02:00
2018-04-27 14:12:43 +02:00
2018-04-12 21:46:10 -04:00
2018-04-18 23:37:25 -04:00
2018-05-11 15:07:58 -06:00
2018-05-02 21:47:35 +02:00
2018-05-15 13:56:16 -06:00
2018-03-29 13:38:10 +03:00