HomePhabricator

[bpf] error when unknown bpf helper is called

Description

[bpf] error when unknown bpf helper is called

Emit error when BPF backend sees a call to a global function or to an external symbol.
The kernel verifier only allows calls to predefined helpers from bpf.h
which are defined in 'enum bpf_func_id'. Such calls in assembler must
look like 'call [1-9]+' where number matches bpf_func_id.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>

Details

Committed
astJan 16 2017, 11:26 PM
Parents
rL292203: [utils] Add libc++ and libc++abi config to llvm-lit
Branches
Unknown
Tags
Unknown