summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/Target/X86/X86MCInstLower.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove LLVM 8.0.1 files.patrick2020-08-031-2274/+0
|
* Merge LLVM 8.0.0 release.patrick2019-06-231-113/+79
| | | | | | | | | Prepared with help from jsg@ and mortimer@ Tested on amd64 by bcallah@, krw@, naddy@ Tested on arm64 by patrick@ Tested on macppc by kettenis@ Tested on octeon by visa@ Tested on sparc64 by claudio@
* Emit variable length trap padding in retguard epilogue.mortimer2019-04-021-0/+21
| | | | | | | This adds more trap padding before the return while ensuring that the return is still in the same cache line. ok deraadt@
* Improve the X86FixupGadgets pass:mortimer2019-02-221-0/+11
| | | | | | | | | | - Target all four kinds of return bytes (c2, c3, ca, cb) - Fix up instructions using both ModR/M and SIB bytes - Force alignment before instructions with return bytes in immediates - Force alignment before instructions that have return bytes in their encoding - Add a command line switch to toggle the functionality. ok deraadt@
* Merge LLVM 7.0.1 release.patrick2019-01-271-248/+476
| | | | | With fixes from mortimer@ (thanks!) Tested by many, especially naddy@ (thanks!)
* Add RETGUARD to clang for amd64. This security mechanism uses per-functionmortimer2018-06-061-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | random cookies to protect access to function return instructions, with the effect that the integrity of the return address is protected, and function return instructions are harder to use in ROP gadgets. On function entry the return address is combined with a per-function random cookie and stored in the stack frame. The integrity of this value is verified before function return, and if this check fails, the program aborts. In this way RETGUARD is an improved stack protector, since the cookies are per-function. The verification routine is constructed such that the binary space immediately before each ret instruction is padded with int03 instructions, which makes these return instructions difficult to use in ROP gadgets. In the kernel, this has the effect of removing approximately 50% of total ROP gadgets, and 15% of unique ROP gadgets compared to the 6.3 release kernel. Function epilogues are essentially gadget free, leaving only the polymorphic gadgets that result from jumping into the instruction stream partway through other instructions. Work to remove these gadgets will continue through other mechanisms. Remaining work includes adding this mechanism to assembly routines, which must be done by hand. Many thanks to all those who helped test and provide feedback, especially deaadt, tb, espie and naddy. ok deraadt@
* Merge LLVM 6.0.0 release.patrick2018-04-061-70/+133
|
* Merge LLVM 5.0.0 release.patrick2017-10-041-77/+308
|
* Use int3 trap padding between functions instead of trapsleds with a leading jump.mortimer2017-08-011-0/+6
| | | | ok deraadt@
* Import LLVM 4.0.0 release including clang and lld.patrick2017-03-141-8/+1
|
* Import LLVM 4.0.0 rc1 including clang and lld to help the currentpatrick2017-01-241-107/+166
| | | | development effort on OpenBSD/arm64.
* Import LLVM 3.9.1 including clang and lld.patrick2017-01-141-204/+431
|
* Use the space freed up by sparc and zaurus to import LLVM.pascal2016-09-031-0/+1459
ok hackroom@