kernel_optimize_test/kernel/bpf
Alexei Starovoitov 0a542a86d7 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 <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-09-26 15:05:14 -04:00
..
core.c bpf: expand BPF syscall with program load/unload 2014-09-26 15:05:14 -04:00
Makefile bpf: introduce BPF syscall and maps 2014-09-26 15:05:14 -04:00
syscall.c bpf: handle pseudo BPF_CALL insn 2014-09-26 15:05:14 -04:00