diff options
author | mortimer <mortimer@cvs.openbsd.org> | 2019-02-22 15:28:44 +0000 |
---|---|---|
committer | mortimer <mortimer@cvs.openbsd.org> | 2019-02-22 15:28:44 +0000 |
commit | 6d06e6de8cc3e1ece622e7567d539be59bd4906f (patch) | |
tree | 048f228a599c68e4cb9514419767eb855921717f /share | |
parent | f0a27d5e05ca4f65a2210e2f42e45b961603f013 (diff) |
Improve the X86FixupGadgets pass:
- 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@
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man1/clang-local.1 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/share/man/man1/clang-local.1 b/share/man/man1/clang-local.1 index 99ec0910fef..2d2bfe33102 100644 --- a/share/man/man1/clang-local.1 +++ b/share/man/man1/clang-local.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: clang-local.1,v 1.18 2018/12/31 00:07:22 jsg Exp $ +.\" $OpenBSD: clang-local.1,v 1.19 2019/02/22 15:28:43 mortimer Exp $ .\" .\" Copyright (c) 2016 Pascal Stumpf <pascal@stumpf.co> .\" @@ -15,7 +15,7 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .\" -.Dd $Mdocdate: December 31 2018 $ +.Dd $Mdocdate: February 22 2019 $ .Dt CLANG-LOCAL 1 .Os .Sh NAME @@ -107,8 +107,10 @@ these functions. .It .Nm clang includes a security pass that exchanges some ROP-friendly instructions -for safe alternatives on i386 and amd64 (X86FixupGadgets pass). -There is no option to disable this pass. +for safe alternatives on i386 and amd64. +This can be disabled with the +.Fl fno-fixup-gadgets +option. .It .Nm clang includes the retguard security feature on amd64 and arm64. |