diff options
author | Colin Ian King <[email protected]> | 2022-12-02 13:51:49 +0000 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2022-12-27 12:44:00 +0100 |
commit | 08245672cdc6505550d1a5020603b0a8d4a6dcc7 (patch) | |
tree | 98a01f344a7b4888c3247ae02b5329a486883a5b /scripts/gdb/linux/cpus.py | |
parent | f841b682baef90ee144df8b12e2c76aa460717c1 (diff) |
perf/x86/amd: fix potential integer overflow on shift of a int
The left shift of int 32 bit integer constant 1 is evaluated using 32 bit
arithmetic and then passed as a 64 bit function argument. In the case where
i is 32 or more this can lead to an overflow. Avoid this by shifting
using the BIT_ULL macro instead.
Fixes: 471af006a747 ("perf/x86/amd: Constrain Large Increment per Cycle events")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Ian Rogers <[email protected]>
Acked-by: Kim Phillips <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/cpus.py')
0 files changed, 0 insertions, 0 deletions