aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorSong Liu <[email protected]>2025-02-18 08:02:40 +0000
committerAlexei Starovoitov <[email protected]>2025-02-23 21:04:02 +0000
commit239860828f8660e2be487e2fbdae2640cce3fd67 (patch)
treeecc8125e4d4516b5f1575e107010072c7625b517 /tools/lib/bpf/libbpf.c
parentbpf: Refactor check_ctx_access() (diff)
downloadkernel-239860828f8660e2be487e2fbdae2640cce3fd67.tar.gz
kernel-239860828f8660e2be487e2fbdae2640cce3fd67.zip
bpf: arm64: Silence "UBSAN: negation-overflow" warning
With UBSAN, test_bpf.ko triggers warnings like: UBSAN: negation-overflow in arch/arm64/net/bpf_jit_comp.c:1333:28 negation of -2147483648 cannot be represented in type 's32' (aka 'int'): Silence these warnings by casting imm to u32 first. Reported-by: Breno Leitao <[email protected]> Signed-off-by: Song Liu <[email protected]> Tested-by: Breno Leitao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions