Home
last modified time | relevance | path

Searched hist:"5 cbab6303b4791a3e6713dfe2c5fda6a867f9adc" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/nvme/target/
H A Drdma.cdiff 5cbab6303b4791a3e6713dfe2c5fda6a867f9adc Thu Jan 03 11:35:31 CST 2019 Raju Rangoju <rajur@chelsio.com> nvmet-rdma: fix null dereference under heavy load

Under heavy load if we don't have any pre-allocated rsps left, we
dynamically allocate a rsp, but we are not actually allocating memory
for nvme_completion (rsp->req.rsp). In such a case, accessing pointer
fields (req->rsp->status) in nvmet_req_init() will result in crash.

To fix this, allocate the memory for nvme_completion by calling
nvmet_rdma_alloc_rsp()

Fixes: 8407879c("nvmet-rdma:fix possible bogus dereference under heavy load")

Cc: <stable@vger.kernel.org>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Raju Rangoju <rajur@chelsio.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>