Skip to content

Fix segfaults related to missing BTF support

Arnaldo Carvalho de Melo dwarves 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5core: Add method to get the vmlinux BTF filename, allow overriding it via env vardwarves.c dwarves.h man-pages/pahole.1 +1 more+22 -30 replies
2/5tests default_vmlinux_btf: Introduce test for using BTF by defaulttests/default_vmlinux_btf.sh+21 -00 replies
3/5pahole: Honour exclusive BTF loadingdwarves.c pahole.c+21 -36 replies
4/5tests default_vmlinux_btf: Cover the no args segfault tootests/default_vmlinux_btf.sh+11 -00 replies
5/5core, libctf: Check if constructor arguments are NULL before using themdwarves.c libctf.c+6 -00 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchAlan MaguireEduard Zingerman
1/5
2/5
3/5R-b T-b A-b
4/5
5/5

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

Read the v1 thread

Cover letter [PATCH 0/5] Fix segfaults related to missing BTF support

Sorry for the top post: Only the cover letter ended up reaching the mailing list, so resending to have it there :-\

Hi,

While looking for reports to fix before release 1.28 I got to
Matthias reports about segfaults in systems where BTF isn't present, so I introduced a regression test and infrastructure to allow testing handling such a system, please take a look.

Thanks,

- Arnaldo

Arnaldo Carvalho de Melo (5):
core: Add method to get the vmlinux BTF filename, allow overriding it via env var tests default_vmlinux_btf: Introduce test for using BTF by default
pahole: Honour exclusive BTF loading
tests default_vmlinux_btf: Cover the no args segfault too
core, libctf: Check if constructor arguments are NULL before using them

 dwarves.c                    | 33 ++++++++++++++++++++++++++++++---
 dwarves.h                    |  2 ++
 libctf.c                     |  3 +++
 man-pages/pahole.1           |  4 ++++
 pahole.c                     | 11 +++++++++--
 tests/default_vmlinux_btf.sh | 32 ++++++++++++++++++++++++++++++++
 6 files changed, 80 insertions(+), 5 deletions(-)
 create mode 100755 tests/default_vmlinux_btf.sh
Signature · 1 line
2.47.0