diff options
| author | 2026-09-16 18:44:00 +0000 | |
|---|---|---|
| committer | 2026-09-23 04:34:59 -0400 | |
| commit | ef15197f81ffedf29560edf2221199d92fd83dc2 (patch) | |
| tree | f4c3e371408ed002af37f031b9fbf8978f227c18 /scripts/Makefile.thinlto | |
| parent | RDMA/mlx5: Fix RQ resource reference leak in mlx5_ib_wq_event() (diff) | |
RDMA/siw: Fix qp use-after-free in siw_get_base_qp()
The reference taken by siw_qp_id2obj() is dropped before the address
of the embedded ib_qp is taken from the QP. If that reference was
the last one the QP is freed and the pointer returned to the iwarp
core is dangling; the core only pins the QP with iw_add_ref() after
the call has returned.
Copy the pointer while the reference is still held.
Fixes: 6c52fdc244b5 ("rdma/siw: connection management")
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20260916184400.2093106-1-vulab@iscas.ac.cn
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
