Files
linux/include/linux
Eduard Zingerman 0b1c83dc3c bpf: don't rewrite bpf_fastcall patterns entered by a jump
mark_fastcall_pattern_for_call() must ensure that matched
"spill; call; fill" instruction series is not interrupted by a jump.
Otherwise the rewrite applied by bpf_remove_fastcall_spills_fills()
is not sound.

Record the instructions targeted by jumps in
insn_aux_data[*].jump_target when the CFG is built and use this flag
to stop growing a pattern at such an instruction. Jumps to the first
spill are fine.

Note that existing insn_aux_data[*].jmp_point field can't be reused,
as it marks subprogram return instructions.

Fixes: 5b5f51bff1 ("bpf: no_caller_saved_registers attribute for helper calls")
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/r/20260903205820.1743087-1-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2026-09-03 18:55:40 -07:00
..
2026-07-23 10:24:12 -07:00
2026-08-07 14:18:13 -03:00
2026-05-28 21:24:54 -07:00
2026-08-10 18:00:47 +01:00
2026-07-29 17:54:58 -07:00
2026-06-29 10:31:53 +02:00
2026-08-15 23:36:18 +02:00
2026-06-07 10:03:01 -07:00
2026-07-27 16:25:34 +02:00
2026-06-30 10:56:52 +02:00
2026-07-07 15:10:48 -04:00
2026-07-09 15:48:53 -07:00
2026-06-05 00:34:55 -04:00
2026-06-05 17:46:17 -07:00
2026-05-28 21:24:43 -07:00
2026-06-10 10:42:55 -04:00
2026-07-31 10:09:12 +02:00
2026-07-23 15:42:48 +02:00
2026-08-12 16:24:26 +02:00
2026-06-26 22:18:34 -04:00
2026-07-23 19:21:13 +01:00
2026-08-15 23:36:18 +02:00
2026-07-27 17:18:00 +02:00
2026-06-06 15:22:44 +02:00