diff options
author | Jason Gunthorpe <[email protected]> | 2020-11-18 09:33:23 -0400 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2020-11-25 11:07:01 -0400 |
commit | dd37d2f59eb839d51b988f6668ce5f0d533b23fd (patch) | |
tree | e304d513f07dd8061673ba680ebaa89865b995c6 /net/lapb/lapb_subr.c | |
parent | 6f6e2dcbb82b9b2ea304fe32635789fedd4e9868 (diff) |
RDMA/cma: Fix deadlock on &lock in rdma_cma_listen_on_all() error unwind
rdma_detroy_id() cannot be called under &lock - we must instead keep the
error'd ID around until &lock can be released, then destroy it.
This is complicated by the usual way listen IDs are destroyed through
cma_process_remove() which can run at any time and will asynchronously
destroy the same ID.
Remove the ID from visiblity of cma_process_remove() before going down the
destroy path outside the locking.
Fixes: c80a0c52d85c ("RDMA/cma: Add missing error handling of listen_id")
Link: https://lore.kernel.org/r/[email protected]
Reported-by: [email protected]
Reviewed-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions