Integer overflow is intentional, silence the sanitizer. It works completely reliably on sane compilers and architectures. Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx> --- tools/lib/bpf/btf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/bpf/btf.c b/tools/lib/bpf/btf.c index 8024fe355ca8..be1dafd56a13 100644 --- a/tools/lib/bpf/btf.c +++ b/tools/lib/bpf/btf.c @@ -3127,6 +3127,7 @@ struct btf_dedup { struct strset *strs_set; }; +__attribute__((no_sanitize("signed-integer-overflow"))) static long hash_combine(long h, long value) { return h * 31 + value; -- 2.30.2