summaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2022-08-15 17:19:26 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2022-08-17 22:42:10 +0200
commitd4e6d684f3bea46a2fc195765c77a3b26bcb080e (patch)
tree91f8cd07ebb4fc28ca138dc381a61486ca1759f3 /tools/lib/bpf/bpf.c
parent738a2f2f9130f98f92ccb3efd94d4879c0a0990c (diff)
downloadlinux-stable-d4e6d684f3bea46a2fc195765c77a3b26bcb080e.tar.gz
linux-stable-d4e6d684f3bea46a2fc195765c77a3b26bcb080e.tar.bz2
linux-stable-d4e6d684f3bea46a2fc195765c77a3b26bcb080e.zip
libbpf: Fix potential NULL dereference when parsing ELF
Fix if condition filtering empty ELF sections to prevent NULL dereference. Fixes: 47ea7417b074 ("libbpf: Skip empty sections in bpf_object__init_global_data_maps") Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Hao Luo <haoluo@google.com> Link: https://lore.kernel.org/bpf/20220816001929.369487-2-andrii@kernel.org
Diffstat (limited to 'tools/lib/bpf/bpf.c')
0 files changed, 0 insertions, 0 deletions