aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKuan-Wei Chiu <visitorckw@gmail.com>2024-09-08 22:00:09 +0800
committerAndrii Nakryiko <andrii@kernel.org>2024-09-09 15:57:09 -0700
commit4cdc0e4ce5e893bc92255f5f734d983012f2bc2e (patch)
tree95ccd61a746435eab3bcb4ce2c320cdb9c674b64 /tools/perf/scripts/python/export-to-postgresql.py
parentlibbpf: Fixed getting wrong return address on arm64 architecture (diff)
downloadlinux-rng-4cdc0e4ce5e893bc92255f5f734d983012f2bc2e.tar.xz
linux-rng-4cdc0e4ce5e893bc92255f5f734d983012f2bc2e.zip
bpftool: Fix undefined behavior caused by shifting into the sign bit
Replace shifts of '1' with '1U' in bitwise operations within __show_dev_tc_bpf() to prevent undefined behavior caused by shifting into the sign bit of a signed integer. By using '1U', the operations are explicitly performed on unsigned integers, avoiding potential integer overflow or sign-related issues. Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Quentin Monnet <qmo@kernel.org> Link: https://lore.kernel.org/bpf/20240908140009.3149781-1-visitorckw@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions