commit | e4bed26281965a0dd6634231a4a77507cc4e8113 | [log] [tgz] |
---|---|---|
author | Alexei Starovoitov <alexei.starovoitov@gmail.com> | Tue Jan 17 07:26:17 2017 +0000 |
committer | Alexei Starovoitov <alexei.starovoitov@gmail.com> | Tue Jan 17 07:26:17 2017 +0000 |
tree | 5ac4431f251dcd15597511637250362f64b98380 | |
parent | 54d04300edb5f7308aadfbc12d9b1b8bad672ae6 [diff] |
[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> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292204 91177308-0d34-0410-b5e6-96231b3b80d8