summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorEduard Zingerman <eddyz87@gmail.com>2026-09-04 01:33:21 -0700
committerKumar Kartikeya Dwivedi <memxor@gmail.com>2026-09-04 12:58:03 +0200
commitbc412b3fb185540112fcc99ac91a14e57418d28e (patch)
tree4d1b54773557d65a059157a025b70dcd2cab9597 /scripts/Makefile.thinlto
parent73a98f96811e2cb0f4210b1caa8cb322f92f2a2b (diff)
downloadlinux-bc412b3fb185540112fcc99ac91a14e57418d28e.tar.gz
linux-bc412b3fb185540112fcc99ac91a14e57418d28e.zip
selftests/bpf: Check the linked regs cap for the compared register
linked_regs_too_many_regs checks that collect_linked_regs() ties at most LINKED_REGS_MAX registers for a single jump. Compare r5 instead of r0, so that the register the jump compares is itself the member that does not fit, and check that it comes out of the jump unlinked. W/o the previous patch env->{false,true}_reg{1,2} bring r5's id back and insn 7 is logged as "R5=scalar(id=1,...)". Reported-by: Nicholas Carlini <npc@anthropic.com> Suggested-by: Nicholas Carlini <npc@anthropic.com> Signed-off-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://lore.kernel.org/bpf/20260904083325.2083493-4-eddyz87@gmail.com Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions