diff options
author | Andrii Nakryiko <[email protected]> | 2019-11-06 18:08:55 -0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2019-11-07 16:20:38 +0100 |
commit | 98e527af30a62cfb1e26f2a0ca76289bc7aba4d2 (patch) | |
tree | e7d3e842476215e3aa5c5642dad4f081cb723d76 /scripts/gdb/linux/tasks.py | |
parent | 994021a7e08477f7e51285920aac99fc967fae8a (diff) |
libbpf: Improve handling of corrupted ELF during map initialization
If we get ELF file with "maps" section, but no symbols pointing to it, we'll
end up with division by zero. Add check against this situation and exit early
with error. Found by Coverity scan against Github libbpf sources.
Fixes: bf82927125dd ("libbpf: refactor map initialization")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions