[LLVMdev] [PATCH] Protection against stack-based memory corruption errors using SafeStack

Volodymyr Kuznetsov vova.kuznetsov at epfl.ch
Mon Nov 17 09:36:34 PST 2014


Hi Kostya,

On Sat, Nov 15, 2014 at 1:53 PM, Volodymyr Kuznetsov <vova.kuznetsov at epfl.ch>
wrote:
> Do you think moving the pass to lib/Transform/Instrumentation but
> scheduling it during code generation would make sense ? If so, we'll
> do that and change the safestack tests to use opt instead of llc.

I tried to move the SafeStack to lib/Transform/Instrumentation, but I
realized that the SafeStack pass depends on TargetMachine: it gets the
stack alignment from TargetFrameLowering and the location of the unsafe
stack pointer from TargetLowering. It seems that making TargetMachine
available in opt would require opt to depend on more things from CodeGen
than it normally should.

- Vova
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141117/81aa7c7d/attachment.html>


More information about the llvm-dev mailing list