Skip to content

libbpf ELF sanity checking improvements

Andrii Nakryiko bpf 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v15 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- address Yonghong's feedback.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5libbpf: detect corrupted ELF symbols sectiontools/lib/bpf/libbpf.c+1 -10 replies
2/5libbpf: improve sanity checking during BTF fix uptools/lib/bpf/libbpf.c+2 -30 replies
3/5libbpf: validate that .BTF and .BTF.ext sections contain datatools/lib/bpf/libbpf.c+4 -00 replies
4/5libbpf: fix section counting logictools/lib/bpf/libbpf.c+4 -40 replies
5/5libbpf: improve ELF relo sanitizationtools/lib/bpf/libbpf.c+19 -50 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchYonghong Song
1/5A-b
2/5A-b
3/5A-b
4/5A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 bpf-next 0/5] libbpf ELF sanity checking improvements

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(-)
Signature · 1 line
2.30.2