]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Properly mark live registers for indirect jumps
authorAnton Protopopov <a.s.protopopov@gmail.com>
Wed, 14 Jan 2026 16:25:43 +0000 (16:25 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 15 Jan 2026 03:08:09 +0000 (19:08 -0800)
commitd1aab1ca576c90192ba961094d51b0be6355a4d6
tree5bc7060283a04e33124abebd90e3bb3304763850
parente3d0dbb3b5e8983d3be780199af1e5134c8a9c17
bpf: Properly mark live registers for indirect jumps

For a `gotox rX` instruction the rX register should be marked as used
in the compute_insn_live_regs() function. Fix this.

Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Link: https://lore.kernel.org/r/20260114162544.83253-2-a.s.protopopov@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c