diff options
author | 2021-11-23 16:23:19 -0800 | |
---|---|---|
committer | 2021-11-26 00:15:03 +0100 | |
commit | 486e648cb2f170702fc05f777c7b6b3d8ec662ce (patch) | |
tree | 9312bc4266d9c2fb51e405c8fa36eaff39c6e6e9 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | libbpf: Fix using invalidated memory in bpf_linker (diff) | |
download | wireguard-linux-486e648cb2f170702fc05f777c7b6b3d8ec662ce.tar.xz wireguard-linux-486e648cb2f170702fc05f777c7b6b3d8ec662ce.zip |
selftests/bpf: Fix UBSan complaint about signed __int128 overflow
Test is using __int128 variable as unsigned and highest order bit can be
set to 1 after bit shift. Use unsigned __int128 explicitly and prevent
UBSan from complaining.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211124002325.1737739-8-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions