bpf: free up BPF_JMP | BPF_CALL | BPF_X opcode
free up BPF_JMP | BPF_CALL | BPF_X opcode to be used by actual indirect call by register and use kernel internal opcode to mark call instruction into bpf_tail_call() helper. Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
d2e0ef493a
commit
71189fa9b0
@@ -877,7 +877,7 @@ xadd: if (is_imm8(insn->off))
|
||||
}
|
||||
break;
|
||||
|
||||
case BPF_JMP | BPF_CALL | BPF_X:
|
||||
case BPF_JMP | BPF_TAIL_CALL:
|
||||
emit_bpf_tail_call(&prog);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user