summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSiddharth Chintamaneni <sidchintamaneni@gmail.com>2026-09-02 17:14:13 +0000
committerAlexei Starovoitov <ast@kernel.org>2026-09-12 10:26:05 -0700
commit0d7823cd4cda35f2060a685fa276ff7709915abc (patch)
tree029e1226d57c32239502a6c41f83bff28450b3a1 /tools/perf/scripts/python
parent15071f2a1263e82150c77eeb1e94dbfc31950a8e (diff)
downloadlinux-next-0d7823cd4cda35f2060a685fa276ff7709915abc.tar.gz
linux-next-0d7823cd4cda35f2060a685fa276ff7709915abc.zip
bpf: Allow terminal gotox instructions
check_subprogs() treats gotox as a direct jump and validates its reserved zero offset. When gotox is the final instruction, this produces a synthetic successor one instruction past the end of the subprogram and rejects an otherwise valid program. Skip direct-offset validation for gotox and accept it as a non-fallthrough terminal instruction. Its actual targets remain validated from the instruction-array jump table during CFG construction. Fixes: 493d9e0d6083 ("bpf, x86: add support for indirect jumps") Signed-off-by: Siddharth Chintamaneni <sidchintamaneni@gmail.com> Reviewed-by: Anton Protopopov <a.s.protopopov@gmail.com> Link: https://lore.kernel.org/r/20260902171414.96165-1-sidchintamaneni@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions