kernel_samsung_a53x/drivers/infiniband
Selvin Xavier 1cd8a0be9f RDMA/bnxt_re: synchronize the qp-handle table array
[ Upstream commit 76d3ddff7153cc0bcc14a63798d19f5d0693ea71 ]

There is a race between the CREQ tasklet and destroy qp when accessing the
qp-handle table. There is a chance of reading a valid qp-handle in the
CREQ tasklet handler while the QP is already moving ahead with the
destruction.

Fixing this race by implementing a table-lock to synchronize the access.

Fixes: f218d67ef004 ("RDMA/bnxt_re: Allow posting when QPs are in error")
Fixes: 84cf229f4001 ("RDMA/bnxt_re: Fix the qp table indexing")
Link: https://patch.msgid.link/r/1728912975-19346-3-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:22:03 +01:00
..
core RDMA/mad: Improve handling of timed out WRs of mad agent 2024-11-23 23:21:49 +01:00
hw RDMA/bnxt_re: synchronize the qp-handle table array 2024-11-23 23:22:03 +01:00
sw RDMA/rxe: Fix seg fault in rxe_comp_queue_pkt 2024-11-23 23:21:50 +01:00
ulp RDMA/rtrs: Fix the problem of variable not initialized fully 2024-11-23 23:20:44 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00