[PATCH] D61881: Deal with return-twice function such as vfork, setjmp when CET-IBT enabled

Xiang Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 13 23:00:02 PDT 2019


xiangzhangllvm created this revision.
xiangzhangllvm added reviewers: LuoYuanke, craig.topper, annita.zhang.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Return-twice functions will indirectly jump after the caller's position.
So when CET-IBT is enable, we should make sure these is endbr* instructions follow these Return-twice function caller. Like GCC does.


Repository:
  rL LLVM

https://reviews.llvm.org/D61881

Files:
  lib/Target/X86/X86IndirectBranchTracking.cpp
  test/CodeGen/X86/indirect-branch-tracking-r2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61881.199373.patch
Type: text/x-patch
Size: 7218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190514/ddc6a7ee/attachment.bin>


More information about the llvm-commits mailing list