diff options
| author | Anton Protopopov <a.s.protopopov@gmail.com> | 2025-11-05 09:04:05 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2025-11-05 17:53:22 -0800 |
| commit | 5bef46ac9c574d6d37d53dd802f7dbf677141fc2 (patch) | |
| tree | 3361c5749f8119358079a28dd8f79d1f55fe848c /kernel/bpf/bpf_insn_array.c | |
| parent | ae48162a667b79fba19296e5f2ee4d6602c809f5 (diff) | |
bpf, x86: allow indirect jumps to r8...r15
Currently the emit_indirect_jump() function only accepts one of the
RAX, RCX, ..., RBP registers as the destination. Make it to accept
R8, R9, ..., R15 as well, and make callers to pass BPF registers, not
native registers. This is required to enable indirect jumps support
in eBPF.
Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20251105090410.1250500-8-a.s.protopopov@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/bpf_insn_array.c')
0 files changed, 0 insertions, 0 deletions