diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-16 18:44:00 +0000 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-09-23 04:34:59 -0400 |
| commit | ef15197f81ffedf29560edf2221199d92fd83dc2 (patch) | |
| tree | f4c3e371408ed002af37f031b9fbf8978f227c18 /tools/lib/python/kdoc | |
| parent | 65f3eab431944415bbe5e3af1bbb2736d4bb1523 (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 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
