Few patches fixing various issues discovered by oss-fuzz project fuzzing bpf_object__open() call. Fixes are mostly focused around additional simple sanity checks of ELF format: symbols, relos, etc. v1->v2: - address Yonghong's feedback. Andrii Nakryiko (5): libbpf: detect corrupted ELF symbols section libbpf: improve sanity checking during BTF fix up libbpf: validate that .BTF and .BTF.ext sections contain data libbpf: fix section counting logic libbpf: improve ELF relo sanitization tools/lib/bpf/libbpf.c | 43 +++++++++++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 13 deletions(-) -- 2.30.2