summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2018-12-20 00:01:01 +0300
committerAlexei Starovoitov <ast@kernel.org>2018-12-20 02:42:55 +0300
commitfdbaa0beb78b7c8847e261fe2c32816e9d1c54cc (patch)
treeb99ead4b2f848949b21d9b5a0cb552b4ac6a9972 /tools/perf/scripts/python
parent9e88b9312acb9b80554c48b58668fb144720333a (diff)
downloadlinux-fdbaa0beb78b7c8847e261fe2c32816e9d1c54cc.tar.xz
bpf: Ensure line_info.insn_off cannot point to insn with zero code
This patch rejects a line_info if the bpf insn code referred by line_info.insn_off is 0. F.e. a broken userspace tool might generate a line_info.insn_off that points to the second 8 bytes of a BPF_LD_IMM64. Signed-off-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions