[PATCH] D47311: [X86][CET] Shadow stack fix for setjmp/longjmp
    Mikhail Dvoretckii via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu May 24 00:57:38 PDT 2018
    
    
  
mike.dvoretsky created this revision.
mike.dvoretsky added a reviewer: craig.topper.
Herald added subscribers: llvm-commits, hiraditya.
This is the new version of https://reviews.llvm.org/D46181, allowing setjmp/longjmp to work correctly with the Intel CET shadow stack by storing SSP on setjmp and fixing it on longjmp. The patch has been updated to use the cf-protection-return module flag instead of HasSHSTK, and the bug that caused https://reviews.llvm.org/D46181 to be reverted has been fixed with the test expanded to track that fix.
Repository:
  rL LLVM
https://reviews.llvm.org/D47311
Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.h
  llvm/test/CodeGen/X86/shadow-stack.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47311.148349.patch
Type: text/x-patch
Size: 21755 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180524/6b190d47/attachment.bin>
    
    
More information about the llvm-commits
mailing list