diff options
| author | Andrii Nakryiko <[email protected]> | 2020-08-20 06:14:09 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-08-20 14:45:09 +0000 |
| commit | dda1ec9fc7f8383cb469a82614dbce61f357f3f8 (patch) | |
| tree | 2003d136a95b6e9884d38d3bc108bac9ec8cafb1 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | libbpf: Fix detection of BPF helper call instruction (diff) | |
| download | kernel-dda1ec9fc7f8383cb469a82614dbce61f357f3f8.tar.gz kernel-dda1ec9fc7f8383cb469a82614dbce61f357f3f8.zip | |
libbpf: Fix libbpf build on compilers missing __builtin_mul_overflow
GCC compilers older than version 5 don't support __builtin_mul_overflow yet.
Given GCC 4.9 is the minimal supported compiler for building kernel and the
fact that libbpf is a dependency of resolve_btfids, which is dependency of
CONFIG_DEBUG_INFO_BTF=y, this needs to be handled. This patch fixes the issue
by falling back to slower detection of integer overflow in such cases.
Fixes: 029258d7b228 ("libbpf: Remove any use of reallocarray() in libbpf")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions
