Files
linux/drivers/infiniband/core
Jack Morgenstein 92a251c3df RDMA/cma: Fix hang when cma_netevent_callback fails to queue_work
The cited commit fixed a crash when cma_netevent_callback was called for
a cma_id while work on that id from a previous call had not yet started.
The work item was re-initialized in the second call, which corrupted the
work item currently in the work queue.

However, it left a problem when queue_work fails (because the item is
still pending in the work queue from a previous call). In this case,
cma_id_put (which is called in the work handler) is therefore not
called. This results in a userspace process hang (zombie process).

Fix this by calling cma_id_put() if queue_work fails.

Fixes: 45f5dcdd04 ("RDMA/cma: Fix workqueue crash in cma_netevent_work_handler")
Link: https://patch.msgid.link/r/4f3640b501e48d0166f312a64fdadf72b059bd04.1747827103.git.leon@kernel.org
Signed-off-by: Jack Morgenstein <[email protected]>
Signed-off-by: Feng Liu <[email protected]>
Reviewed-by: Vlad Dumitrescu <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Reviewed-by: Sharath Srinivasan <[email protected]>
Reviewed-by: Kalesh AP <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
2025-05-26 15:36:46 -03:00
..
…
…
…
2025-05-25 06:24:21 -04:00
…
…
…
…
…
2024-09-09 16:47:43 -07:00
…
…
…
…
2025-04-07 15:12:07 -03:00