summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorEduard Zingerman <eddyz87@gmail.com>2026-09-02 00:28:34 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2026-09-02 15:54:53 +0200
commit387b1baefbb776e3f48dc2261e77a49213f470f7 (patch)
tree8e3cf1769c44cc98f345d300a97c980afbbd15b1 /scripts/Makefile.thinlto
parent28d75dd3eb60812b3a87cbdf0d52c42f51b28a78 (diff)
downloadlinux-387b1baefbb776e3f48dc2261e77a49213f470f7.tar.gz
linux-387b1baefbb776e3f48dc2261e77a49213f470f7.zip
bpf: backtrack_insn(): Handle ld_{abs,ind} subprog exit edge
Nicholas Carlini reported a bug in precision backtracking mechanism for BPF_LD | BPF_{IND,ABS} instructions. These instructions are modelled as two branches: - fallthrough; - implicit exit from current subprogram. The implicit exit case was not handled by the backtrack_insn() function. When backtracking such a path backtrack_insn() did not call bt_subprog_enter(), which meant that backtracking continued manipulating precision marks in a caller frame, while looking at instructions in a callee frame. This lead to segmentation faults during verification (see the selftest), or unsound state pruning. Fixes: ee861486e377 ("bpf: Fix ld_{abs,ind} failure path analysis in subprogs") Reported-by: Nicholas Carlini <npc@anthropic.com> Suggested-by: Nicholas Carlini <npc@anthropic.com> Signed-off-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20260901-bug-016-backtrack-ld-abs-v1-1-59368f1be435@gmail.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions