diff options
| author | Serhat Kumral <serhatkumral1@gmail.com> | 2026-10-23 22:23:48 +0300 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-11-03 04:55:08 -0500 |
| commit | 0246639e79a4132b68cb41ba28e41333d7c742d0 (patch) | |
| tree | 90b3c57b5ffc323777ce8255d4eae1f7ee324b17 /tools/perf/scripts/python/bin | |
| parent | 013eb66a8ef25ef531bf41d79815948ab4938571 (diff) | |
RDMA/mthca: Fix off-by-one in mthca_map_user_db()
db_tab->page[] has uarc_size / MTHCA_ICM_PAGE_SIZE elements, so valid
doorbell indices are in the range [0, uarc_size / 8 - 1]. Allowing
index == uarc_size / 8 results in an out-of-bounds access at
db_tab->page[npages]. Use '>=' instead of '>' in the bounds check.
Fixes: 56483ec1b702 ("[PATCH] IB uverbs: add mthca user doorbell record support")
Signed-off-by: Serhat Kumral <serhatkumral1@gmail.com>
Link: https://patch.msgid.link/20261023192348.11070-1-serhatkumral1@gmail.com
Reviewed-by: Chenguang Zhao <zhaochenguang@kylinos.cn>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
