WSL2-Linux-Kernel/drivers/infiniband/sw/rdmavt
Niels Dossche 4d809f6969 IB/rdmavt: add lock to call to rvt_error_qp to prevent a race condition
The documentation of the function rvt_error_qp says both r_lock and s_lock
need to be held when calling that function.  It also asserts using lockdep
that both of those locks are held.  However, the commit I referenced in
Fixes accidentally makes the call to rvt_error_qp in rvt_ruc_loopback no
longer covered by r_lock.  This results in the lockdep assertion failing
and also possibly in a race condition.

Fixes: d757c60eca ("IB/rdmavt: Fix concurrency panics in QP post_send and modify to error")
Link: https://lore.kernel.org/r/20220228165330.41546-1-dossche.niels@gmail.com
Signed-off-by: Niels Dossche <dossche.niels@gmail.com>
Acked-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2022-04-04 14:45:02 -03:00
..
Kconfig RDMA/core: remove use of dma_virt_ops 2020-11-17 15:22:07 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
ah.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
ah.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
cq.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
cq.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
mad.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
mad.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
mcast.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
mcast.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
mmap.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
mmap.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
mr.c Merge branch 'sg_nents' into rdma.git for-next 2021-08-30 09:49:59 -03:00
mr.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
pd.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
pd.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
qp.c IB/rdmavt: add lock to call to rvt_error_qp to prevent a race condition 2022-04-04 14:45:02 -03:00
qp.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
rc.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
srq.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
srq.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace_cq.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace_mr.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace_qp.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace_rc.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace_rvt.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace_tx.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
vt.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
vt.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00