Age | Commit message (Collapse) | Author |
|
actual error if "install" was done parallelly.
ok espie todd andrew1, input andrew1
|
|
state.
ok patrick@
|
|
|
|
suggested by jmc@ ok patrick@
|
|
ok hackroom@
|
|
This allows linking code compiled by clang with the gcc compiler driver
and makes sure we always use the softfloat implementation in libc. The
libc softfloat implementation is preferred over the one in libgcc as it
implements rounding modes and floating point exceptions.
ok patrick@
|
|
the generation of gap.o.
ok patrick@
|
|
|
|
more closer to GNU linkers. This should help with autoconf/libtool
compatibility in ports.
Requested by Brad
"no objection" kettenis@
|
|
instructions to have side effects so the optimizer does not reorder
them across fnstcw/fldcw sequences. Fixes a bug seen in sqlite3 on
i386.
ok kettenis@
|
|
ok hackroom@
|
|
|
|
Requested by Brad
Tested by me on amd64
Tested by bluhm on i386
Tested by kettenis on arm64, armv7 and sparc64
|
|
|
|
|
|
Makes gas work when compiled with clang.
ok patrick@, millert@
|
|
order it chooses. Reasons for choosing one register before another usually incl
ude compiled instruction size (avoidance of REX prefixes, etc.) or usage convent
ions, but somehow haven't included security implications in the compiled bytecod
e. Some bytecode is more useful in polymorphic ROP sequences than others, so it
seems prudent to try to avoid that bytecode when possible.
This patch moves EBX/RBX towards the end of the allocation preference for 32 and
64 bit general purpose registers. Some instructions using RBX/EBX/BX/BL as a de
stination register end up with a ModR/M byte of C3 or CB, which is often useful
in ROP gadgets. Because these gadgets often occur in the middle of functions, th
ey exhibit somewhat higher diversity than some other C3/CB terminated gadgets. T
his change removes about 3% of total gadgets from the kernel, but about 6% of un
ique gadgets.
There are other possible changes in this direction. BX/BL are obvious next targe
ts for avoidance, and MM3/XMM3 may also be useful to try to avoid if possible.
ok deraadt@
|
|
ok hackroom@
|
|
Fixes issues with cross-device moves, noticed with autoconf
|
|
Reporting OpenBSD bugs to GNU makes no sense...
|
|
ok millert@
|
|
While it is not clear (to me) why that ports ends up with corrupted
shared libs, reverting those changes fixes the issue and should allow us
to close p2k17 more smoothly.
Discussed with a bunch, ok ajacoutot@ guenther@
|
|
We don't link libc into shared-libraries by default to avoid binding libraries
to specific libc majors, so those options have always suffered false positives
for us, but with the move of functions from libpthread to libc the problem has
gotten even worse. A version-agnostic binding to libc would solve this better
but it's on back-order behind the pony I requested.
tweak and ok deraadt@
|
|
ok bluhm@
|
|
OK bluhm@
|
|
ok bluhm@
|
|
ok bluhm@
|
|
ok guenther@
|
|
assignment and isn't used by clang/lld.
ok jsg@
|
|
ok kettenis@ deraadt@
|
|
|
|
sparc64 where it doesn't use the integrated assembler (yet).
ok mpi@, patrick@, guenther@
|
|
m88k-specific dynamic tags
ok deraadt@ jsg@
|
|
ok patrick@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ok hackroom@
|
|
During subsequent Perl updates, all the documentation changes etc.
got carried along, but the actual code change was deleted
in Rev. 1.3 and never restored. Restore it now.
Bug found by bentley@; OK afresh1@ bentley@.
|
|
This is mostly needed by syspatch at the moment to be
to be able to re-link in the same order as the original
libraries were linked with by relying on the readelf(1)
and without this .(s|S) assembly files were not getting
a file directive.
A bug reports has been filed as well:
https://bugs.llvm.org/show_bug.cgi?id=34019
ok deraadt@
|
|
ok hackroom@
|
|
a crash or memory leak.
Fixes
* CVE-2017-12883 (Buffer over-read)
* CVE-2017-12837 (Heap overflow when compiling case-insensitive regexp)
Patches by Karl Williamson
|
|
spotted by deraadt@, fix turns out to be identical to more recent binutils.
|
|
ok guenther@ deraadt@ giovanni@
|
|
OK afresh1@ sthen@
|
|
host name. Adapted from a MirBSD diff by Thorsten Glaser.
|
|
as full memory barriers.
|