diff options
| author | Andrii Nakryiko <[email protected]> | 2021-11-03 17:32:13 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-11-03 20:25:37 +0000 |
| commit | b7332d2820d394dd2ac127df1567b4da597355a1 (patch) | |
| tree | 64263576d847b957e2aecf13e6a9438afa6b852d /tools/lib/bpf/libbpf_common.h | |
| parent | libbpf: Fix section counting logic (diff) | |
| download | kernel-b7332d2820d394dd2ac127df1567b4da597355a1.tar.gz kernel-b7332d2820d394dd2ac127df1567b4da597355a1.zip | |
libbpf: Improve ELF relo sanitization
Add few sanity checks for relocations to prevent div-by-zero and
out-of-bounds array accesses in libbpf.
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 'tools/lib/bpf/libbpf_common.h')
0 files changed, 0 insertions, 0 deletions
