From: Zi Shen Lim Date: Wed, 3 Dec 2014 08:38:01 +0000 (+0000) Subject: arm64: bpf: lift restriction on last instruction X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~18^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51c9fbb1b146f3336a93d398c439b6fbfe5ab489;p=pandora-kernel.git 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: e54bcde3d69d ("arm64: eBPF JIT compiler") Acked-by: Alexei Starovoitov Signed-off-by: Zi Shen Lim Signed-off-by: Will Deacon --- Reading git-diff-tree failed