summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSelvin Xavier <selvin.xavier@broadcom.com>2026-10-28 04:34:04 -0700
committerLeon Romanovsky <leon@kernel.org>2026-11-03 07:07:42 -0500
commitac39883b95322df170461d980953b0fcbf993332 (patch)
treede81b47c024b45e1c74011af7565c5513fd1e11a /tools/perf/scripts/python
parent6be33e5725ee7f0db72577104daaeb569f5938bb (diff)
RDMA/bnxt_re: Bound FRMR page list by max_num_sg
bnxt_re_set_page() checks against frpl->max_pg_ptrs, which is rounded up to a power of two, while mr->pages[] is allocated with max_num_sg entries. For a non-power-of-two max_num_sg, ib_sg_to_pages() can write past the end of mr->pages[]. Track the allocated size in mr->max_pages and bound against it. Also reject max_num_sg of 0. Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver") Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Link: https://patch.msgid.link/20261028113404.33289-8-selvin.xavier@broadcom.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions