mbox series

[v2,bpf-next,0/5] libbpf ELF sanity checking improvements

Message ID 20211103173213.1376990-1-andrii@kernel.org (mailing list archive)
Headers show
Series libbpf ELF sanity checking improvements | expand

Message

Andrii Nakryiko Nov. 3, 2021, 5:32 p.m. UTC
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(-)