From: Alexei Starovoitov Date: Fri, 26 Sep 2014 07:17:01 +0000 (-0700) Subject: bpf: handle pseudo BPF_CALL insn X-Git-Tag: fixes-against-v3.18-rc2~81^2~1^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a542a86d73b1577e7d4f55fc95dcffd3fe62643;p=pandora-kernel.git bpf: handle pseudo BPF_CALL insn in native eBPF programs userspace is using pseudo BPF_CALL instructions which encode one of 'enum bpf_func_id' inside insn->imm field. Verifier checks that program using correct function arguments to given func_id. If all checks passed, kernel needs to fixup BPF_CALL->imm fields by replacing func_id with in-kernel function pointer. eBPF interpreter just calls the function. In-kernel eBPF users continue to use generic BPF_CALL. Signed-off-by: Alexei Starovoitov Signed-off-by: David S. Miller --- Reading git-diff-tree failed