[LLVMbugs] [Bug 16175] New: Shadow-Stack C personality

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 29 08:32:50 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16175

            Bug ID: 16175
           Summary: Shadow-Stack C personality
           Product: new-bugs
           Version: 3.1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: humbug at deeptown.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The C personality function is hardcoded:

Constant *PersFn =
   F.getParent()->
   getOrInsertFunction("__gcc_personality_v0",
                       FunctionType::get(Type::getInt32Ty(C), true));

If there is another personality, ShadowStackGC pass invalidates IR:

Personality function doesn't match others in function
  %cleanup.lpad = landingpad { i8*, i32 } personality i32 (...)*
@__gcc_personality_v0
          cleanup
Broken module found, compilation aborted!
Stack dump:
0.    Running pass 'Function Pass Manager' on module '...'.
1.    Running pass 'Module Verifier' on function '...'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130529/450d7575/attachment.html>


More information about the llvm-bugs mailing list