aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-11-06 18:08:55 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2019-11-07 16:20:38 +0100
commit98e527af30a62cfb1e26f2a0ca76289bc7aba4d2 (patch)
treee7d3e842476215e3aa5c5642dad4f081cb723d76 /tools/perf/scripts/python/exported-sql-viewer.py
parentlibbpf: Make btf__resolve_size logic always check size error condition (diff)
downloadlinux-98e527af30a62cfb1e26f2a0ca76289bc7aba4d2.tar.gz
linux-98e527af30a62cfb1e26f2a0ca76289bc7aba4d2.zip
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 <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20191107020855.3834758-6-andriin@fb.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions