aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-03-07 12:51:27 +0300
committerLeon Romanovsky <[email protected]>2023-03-19 11:35:46 +0200
commitd50b3c73f1ac20dabc53dc6e9d64ce9c79a331eb (patch)
tree690907cdfcc481ac9caa8af5f396e3114fa5cbc4 /tools/perf/scripts/python/libxed.py
parentfaa63656fc361e78ebccb288c0be638a6a4ffe35 (diff)
RDMA/mlx4: Prevent shift wrapping in set_user_sq_size()
The ucmd->log_sq_bb_count variable is controlled by the user so this shift can wrap. Fix it by using check_shl_overflow() in the same way that it was done in commit 515f60004ed9 ("RDMA/hns: Prevent undefined behavior in hns_roce_set_user_sq_size()"). Fixes: 839041329fd3 ("IB/mlx4: Sanity check userspace send queue sizes") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions