aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <[email protected]>2019-12-10 19:14:12 +0100
committerDaniel Borkmann <[email protected]>2019-12-11 13:57:26 +0100
commit5b79bcdf03628a3a9ee04d9cd5fabcf61a8e20be (patch)
treec3f21a9c363b0b320e5678a69b1d847d733cb5ef /tools/perf/scripts/python/failed-syscalls-by-pid.py
parent4c80c7bc583a87ded5f61906f81256b57c795806 (diff)
bpftool: Don't crash on missing jited insns or ksyms
When the kptr_restrict sysctl is set, the kernel can fail to return jited_ksyms or jited_prog_insns, but still have positive values in nr_jited_ksyms and jited_prog_len. This causes bpftool to crash when trying to dump the program because it only checks the len fields not the actual pointers to the instructions and ksyms. Fix this by adding the missing checks. Fixes: 71bb428fe2c1 ("tools: bpf: add bpftool") Fixes: f84192ee00b7 ("tools: bpftool: resolve calls without using imm field") Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Martin KaFai Lau <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions