Displaying 1 result from an estimated 1 matches for "x86fixupseparatestack".
2016 May 31
0
[RFC] Using segmentation to harden SafeStack
..., such as PUSH, POP, CALL, and RET. This is also the case for memory operands that use SP/ESP or BP/EBP as a base register. Other instructions implicitly access DS or ES by default, which may result in crashes if they are used with pointers to a safe stack.
I developed a new MachineFunctionPass, X86FixupSeparateStack (http://reviews.llvm.org/D17095), that adds segment override prefixes or updates segment registers in X86-32 code to use the appropriate effective segment for each memory operand. It is enabled by the separate-stack-seg feature (http://reviews.llvm.org/D17092). The pass assumes that only ESP poin...