kernel_samsung_a53x/drivers/infiniband/hw/bnxt_re
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
..
bnxt_re.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_counters.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_counters.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_verbs.c bnxt_re: Fix imm_data endianness 2024-11-23 23:20:11 +01:00
ib_verbs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
main.c RDMA/bnxt_re: Correct module description string 2024-11-18 12:11:41 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qplib_fp.c RDMA/bnxt_re: synchronize the qp-handle table array 2024-11-23 23:22:03 +01:00
qplib_fp.h RDMA/bnxt_re: Fix incorrect AVID type in WQE structure 2024-11-23 23:21:58 +01:00
qplib_rcfw.c RDMA/bnxt_re: synchronize the qp-handle table array 2024-11-23 23:22:03 +01:00
qplib_rcfw.h RDMA/bnxt_re: synchronize the qp-handle table array 2024-11-23 23:22:03 +01:00
qplib_res.c RDMA/bnxt_re: Fix a bug while setting up Level-2 PBL pages 2024-11-23 23:21:58 +01:00
qplib_res.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qplib_sp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qplib_sp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
roce_hsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00