summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJacob Moroni <jmoroni@google.com>2026-10-29 13:27:40 +0000
committerLeon Romanovsky <leon@kernel.org>2026-11-03 08:17:32 -0500
commita7ff66ebcb81abf65967513cc51788e5bdb32a92 (patch)
treee831b5393059ee620edbc0ec476f06782cd65cb1 /tools/perf/scripts/python
parentcefc2270e42baed46d64d7d79fa23172bbad9533 (diff)
RDMA/mlx4: Fix stale umem and MTT state after rereg_mr failures
During rereg_mr, the umem is released in various failure cases but mmr->umem was left pointing to a freed umem, so it could end up getting double-freed when the MR is finally deregistered, or cause a UAF in ib_umem_check_rereg() if another rereg_mr attempt is made. Fix this by setting mmr->umem to NULL after ib_umem_release(). Additionally, when mlx4_mr_rereg_mem_write() fails, mtt.order is left set but with an invalid offset, so during dereg, mlx4_mtt_cleanup() ends up freeing an MTT range that was never allocated. Fix this by resetting mtt.order to -1 in that path. Fixes: 9376932d0c26 ("IB/mlx4_ib: Add support for user MR re-registration") Signed-off-by: Jacob Moroni <jmoroni@google.com> Link: https://patch.msgid.link/20261029132740.1169950-1-jmoroni@google.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions