diff options
author | Alexei Starovoitov <ast@fb.com> | 2017-05-30 13:31:27 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-31 19:29:47 -0400 |
commit | 71189fa9b092ef125ee741eccb2f5fa916798afd (patch) | |
tree | 6a2f3dd82c3332011d215d85d9b56d38502e8864 /arch/arm64/net | |
parent | d2e0ef493ad953048bdf562b06cc4330b3fd9fb7 (diff) | |
download | talos-obmc-linux-71189fa9b092ef125ee741eccb2f5fa916798afd.tar.gz talos-obmc-linux-71189fa9b092ef125ee741eccb2f5fa916798afd.zip |
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>
Diffstat (limited to 'arch/arm64/net')
-rw-r--r-- | arch/arm64/net/bpf_jit_comp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/net/bpf_jit_comp.c b/arch/arm64/net/bpf_jit_comp.c index 71f930501ade..b1d38eeb24f6 100644 --- a/arch/arm64/net/bpf_jit_comp.c +++ b/arch/arm64/net/bpf_jit_comp.c @@ -586,7 +586,7 @@ emit_cond_jmp: break; } /* tail call */ - case BPF_JMP | BPF_CALL | BPF_X: + case BPF_JMP | BPF_TAIL_CALL: if (emit_bpf_tail_call(ctx)) return -EFAULT; break; |