WSL2-Linux-Kernel/arch/arm64/net
Zi Shen Lim 51c9fbb1b1 arm64: bpf: lift restriction on last instruction
Earlier implementation assumed last instruction is BPF_EXIT.
Since this is no longer a restriction in eBPF, we remove this
limitation.

Per Alexei Starovoitov [1]:
> classic BPF has a restriction that last insn is always BPF_RET.
> eBPF doesn't have BPF_RET instruction and this restriction.
> It has BPF_EXIT insn which can appear anywhere in the program
> one or more times and it doesn't have to be last insn.

[1] https://lkml.org/lkml/2014/11/27/2

Fixes: e54bcde3d6 ("arm64: eBPF JIT compiler")
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2014-12-03 18:04:09 +00:00
..
Makefile arm64: eBPF JIT compiler 2014-09-08 14:39:21 +01:00
bpf_jit.h arm64: bpf: add 'shift by register' instructions 2014-10-20 17:47:03 +01:00
bpf_jit_comp.c arm64: bpf: lift restriction on last instruction 2014-12-03 18:04:09 +00:00