summaryrefslogtreecommitdiff
path: root/tools/arch/xtensa/include
diff options
context:
space:
mode:
authorKuan-Wei Chiu <visitorckw@gmail.com>2024-09-08 17:00:09 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-10 13:03:40 +0300
commit77a82ae253ee7408611e3ef8a30c81e53ddd88c5 (patch)
tree23cebd4f2ee3291f0409642096be4727d253a356 /tools/arch/xtensa/include
parentd58a00e981d3118b91d503da263e640b7cde6729 (diff)
downloadlinux-77a82ae253ee7408611e3ef8a30c81e53ddd88c5.tar.xz
bpftool: Fix undefined behavior caused by shifting into the sign bit
[ Upstream commit 4cdc0e4ce5e893bc92255f5f734d983012f2bc2e ] 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 Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/arch/xtensa/include')
0 files changed, 0 insertions, 0 deletions