OSDN Git Service

Merge branch 'libbpf: fix fuzzer-reported issues'
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 13 Oct 2022 15:50:08 +0000 (08:50 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 13 Oct 2022 17:53:35 +0000 (10:53 -0700)
commite94e0a2d3730cd718a3a67682b038b05fa40d2a7
treef42662b1b505ba76f5f4e635ebd6d003295c8342
parent6e73e683b6e93f8d475ef6d6813928a860c8d124
parentd0d382f95a9270dcf803539d6781d6bd67e3f5b2
Merge branch 'libbpf: fix fuzzer-reported issues'

Shung-Hsi Yu says:

====================

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

- patch #1 fix out-of-bound heap write reported by oss-fuzz (currently
  incorrectly marked as fixed)

- patch #2 and #3 fix null-pointer dereference found by locally-run
  fuzzer.

v2:
- Rebase to bpf-next
- Move elf_getshdrnum() closer to where it's result is used in patch #1, as
  suggested by Andrii
  - Touch up the comment in bpf_object__elf_collect(), replacing mention of
    e_shnum with elf_getshdrnum()
- Minor wording change in commit message of patch #1 to for better readability
- Remove extra note that comes after commit message in patch #1

v1: https://lore.kernel.org/bpf/20221007174816.17536-1-shung-hsi.yu@suse.com/
====================

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>