linux/drivers/infiniband
Jason Gunthorpe 0c99acbc8b RDMA/hns: Fix unlocked call to hns_roce_qp_remove()
Sashiko points out that hns_roce_qp_remove() requires the caller to hold
locks.  The error flow in hns_roce_create_qp_common() doesn't hold those
locks for the error unwind so it risks corrupting memory.

Grab the same locks the other two callers use.

Cc: stable@vger.kernel.org
Fixes: e088a685ea ("RDMA/hns: Support rq record doorbell for the user space")
Link: https://sashiko.dev/#/patchset/0-v2-1c49eeb88c48%2B91-rdma_udata_rep_jgg%40nvidia.com?part=9
Link: https://patch.msgid.link/r/15-v1-41f3135e5565+9d2-rdma_ai_fixes1_jgg@nvidia.com
Reviewed-by: Junxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2026-05-02 15:30:48 -03:00
..
core RDMA/core: Fix rereg_mr use-after-free race 2026-04-29 16:37:12 -03:00
hw RDMA/hns: Fix unlocked call to hns_roce_qp_remove() 2026-05-02 15:30:48 -03:00
sw RDMA/rxe: Reject non-8-byte ATOMIC_WRITE payloads 2026-04-28 11:41:23 -03:00
ulp SCSI misc on 20260421 2026-04-21 08:22:18 -07:00
Kconfig RDMA v7.1 merge window 2026-04-20 11:20:35 -07:00
Makefile