diff options
author | Alexei Starovoitov <ast@plumgrid.com> | 2014-09-26 00:17:01 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-26 15:05:14 -0400 |
commit | 0a542a86d73b1577e7d4f55fc95dcffd3fe62643 (patch) | |
tree | 8d42f33a9d472940f47e56e404d25f9ebe1c5560 /Kconfig | |
parent | 09756af46893c18839062976c3252e93a1beeba7 (diff) | |
download | linux-0a542a86d73b1577e7d4f55fc95dcffd3fe62643.tar.gz linux-0a542a86d73b1577e7d4f55fc95dcffd3fe62643.tar.bz2 linux-0a542a86d73b1577e7d4f55fc95dcffd3fe62643.zip |
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>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions