bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf 0/3] libbpf: fix fuzzer-reported issues
@ 2022-10-07 17:48 Shung-Hsi Yu
  2022-10-07 17:48 ` [PATCH bpf 1/3] libbpf: use elf_getshdrnum() instead of e_shnum Shung-Hsi Yu
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Shung-Hsi Yu @ 2022-10-07 17:48 UTC (permalink / raw)
  To: bpf, Andrii Nakryiko
  Cc: Shung-Hsi Yu, Alexei Starovoitov, Daniel Borkmann,
	Martin KaFai Lau, Song Liu, Yonghong Song, John Fastabend,
	KP Singh, Stanislav Fomichev, Hao Luo, Jiri Olsa

Hi, this patch set fixes several fuzzer-reported issues of libbpf when
dealing with (malformed) BPF object file.

The 1st patch fix out-of-bound heap write reported by oss-fuzz
(currently incorrectly marked as fixed). The 2nd and 3rd patch fix
null-pointer dereference found by locally-run fuzzer.

Suggest at least taking the 1st fix in this patch set or apply an
alternative fix for it (see the extra note after its commit message for
detail).

Shung-Hsi Yu (3):
  libbpf: use elf_getshdrnum() instead of e_shnum
  libbpf: fix null-pointer dereference in find_prog_by_sec_insn()
  libbpf: deal with section with no data gracefully

 tools/lib/bpf/libbpf.c | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)


base-commit: 0326074ff4652329f2a1a9c8685104576bd8d131
--
2.37.3


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-10-12  1:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-07 17:48 [PATCH bpf 0/3] libbpf: fix fuzzer-reported issues Shung-Hsi Yu
2022-10-07 17:48 ` [PATCH bpf 1/3] libbpf: use elf_getshdrnum() instead of e_shnum Shung-Hsi Yu
2022-10-11  0:44   ` Andrii Nakryiko
2022-10-11  3:55     ` Shung-Hsi Yu
2022-10-11 14:53       ` Shung-Hsi Yu
2022-10-11 16:06         ` Andrii Nakryiko
2022-10-12  1:50           ` Shung-Hsi Yu
2022-10-07 17:48 ` [PATCH bpf 2/3] libbpf: fix null-pointer dereference in find_prog_by_sec_insn() Shung-Hsi Yu
2022-10-07 17:48 ` [PATCH bpf 3/3] libbpf: deal with section with no data gracefully Shung-Hsi Yu
2022-10-11  0:47 ` [PATCH bpf 0/3] libbpf: fix fuzzer-reported issues Andrii Nakryiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).