[PATCH] D28824: Revert r292204 as it introduces a stack-use-after-scope issue.

Ivan Krasin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 17 13:07:24 PST 2017


krasin created this revision.
Herald added a subscriber: mgorny.

Revert [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.


https://reviews.llvm.org/D28824

Files:
  cmake/modules/HandleLLVMOptions.cmake
  lib/Target/BPF/BPFISelLowering.cpp
  lib/Target/BPF/BPFInstrInfo.td
  lib/Target/BPF/BPFMCInstLower.cpp
  lib/Target/BPF/BPFMCInstLower.h
  test/CodeGen/BPF/cc_args.ll
  test/CodeGen/BPF/cc_args_be.ll
  test/CodeGen/BPF/cc_ret.ll
  test/CodeGen/BPF/fi_ri.ll
  test/CodeGen/BPF/intrinsics.ll
  test/CodeGen/BPF/objdump_intrinsics.ll
  test/CodeGen/BPF/objdump_trivial.ll
  test/CodeGen/BPF/sanity.ll
  test/CodeGen/BPF/undef.ll
  test/CodeGen/BPF/warn-call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28824.84730.patch
Type: text/x-patch
Size: 12450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170117/b51696af/attachment.bin>


More information about the llvm-commits mailing list