nvme-rdma: fix crash due to incorrect cqe
mainline inclusion from mainline-v5.10-rc1 commit a87da50f category: bugfix bugzilla: NA CVE: NA Link: https://gitee.com/openeuler/kernel/issues/I1WGZE ------------------------------------------------- A crash happened due to injecting error test. The cqe has incorrect command id, host may find a request which already be freed. req->mr->rkey cause a crash in nvme_rdma_process_nvme_rsp. Because the mr is already freed. Add a check for the mr to fix it. Signed-off-by:Shusong Tao <taoshusong@huawei.com> Reviewed-by:
Chao Leng <lengchao@huawei.com> Reviewed-by:
Jike Cheng <chengjike.cheng@huawei.com> Signed-off-by:
Lijie <lijie34@huawei.com> Acked-by:
Hanjun Guo <guohanjun@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Loading
Please sign in to comment