aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-11-03 10:32:11 -0700
committerAlexei Starovoitov <[email protected]>2021-11-03 13:25:37 -0700
commit62554d52e71797eefa3fc15b54008038837bb2d4 (patch)
treebca9ea3dbbbc86ca5a738ed497a31dbc0b32871e /lib/test_overflow.c
parent88918dc12dc357a06d8d722a684617b1c87a4654 (diff)
libbpf: Validate that .BTF and .BTF.ext sections contain data
.BTF and .BTF.ext ELF sections should have SHT_PROGBITS type and contain data. If they are not, ELF is invalid or corrupted, so bail out. Otherwise this can lead to data->d_buf being NULL and SIGSEGV later on. Reported by oss-fuzz project. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions