llvm-project/llvm/lib
Alexei Starovoitov e4975487f5 [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>
llvm-svn: 292204
2017-01-17 07:26:17 +00:00
..
Analysis [TLI] Add prototype checking for all remaining LibFuncs. 2017-01-17 03:10:02 +00:00
AsmParser ASMParser: use range-based for loops (NFC) 2016-12-27 18:35:22 +00:00
Bitcode Remove unused lambda captures. NFC 2017-01-13 17:12:16 +00:00
CodeGen Revert "[TLI] Robustize SDAG proto checking by merging it into TLI." 2017-01-17 03:31:00 +00:00
DebugInfo PDB: Add a class to create the /names stream contents. 2017-01-15 00:36:02 +00:00
Demangle Demangle: remove references to allocator for default allocator 2016-11-20 00:20:27 +00:00
ExecutionEngine [Orc][RPC] Add an RPCFunctionNotSupported error type and return it from 2017-01-15 06:34:25 +00:00
Fuzzer [libFuzzer] remove dead code, NFC 2017-01-06 00:09:40 +00:00
IR Reverted: Track validity of pass results 2017-01-15 10:23:18 +00:00
IRReader Timer: Track name and description. 2016-11-18 19:43:18 +00:00
LTO Apply clang-tidy's performance-unnecessary-value-param to LLVM. 2017-01-13 14:39:03 +00:00
LibDriver LibDriver: Allow resource files to be archive members. 2016-12-15 19:37:46 +00:00
LineEditor
Linker [ThinLTO] Import only necessary DICompileUnit fields 2016-12-12 16:09:30 +00:00
MC Apply clang-tidy's performance-unnecessary-value-param to LLVM. 2017-01-13 14:39:03 +00:00
Object Revert r291903 and r291898. Reason: they break check-lld on the bots. 2017-01-13 16:45:15 +00:00
ObjectYAML [ObjectYAML] Pull yaml2dwarf out of yaml2obj for reuse 2017-01-12 21:35:21 +00:00
Option Generalize ArgList::AddAllArgs more 2016-09-29 19:47:58 +00:00
Passes [PM] Separate the LoopAnalysisManager from the LoopPassManager and move 2017-01-11 09:43:56 +00:00
ProfileData Resubmit "[PGO] Turn off comdat renaming in IR PGO by default" 2017-01-11 20:19:41 +00:00
Support Revert r291903 and r291898. Reason: they break check-lld on the bots. 2017-01-13 16:45:15 +00:00
TableGen [Hexagon, TableGen] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-04 02:02:05 +00:00
Target [bpf] error when unknown bpf helper is called 2017-01-17 07:26:17 +00:00
Transforms [InstCombine] Don't DSE across readnone functions that may throw 2017-01-17 05:45:09 +00:00
XRay Avoid std::errc::protocol_* to appease mingw 2017-01-12 18:33:14 +00:00
CMakeLists.txt [XRay] Define the library for XRay trace logs 2017-01-11 06:39:09 +00:00
LLVMBuild.txt Add an c++ itanium demangler to llvm. 2016-09-06 19:16:48 +00:00