summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
AgeCommit message (Collapse)Author
2018-08-16When installing the link to rcs2log, set the owner on the link itselfTodd C. Miller
and not the file it points to. OK deraadt@ tb@
2018-08-12Add retguard for arm64.mortimer
ok deraadt@
2018-08-12Refactor retguard to make adding additional arches easier.mortimer
2018-07-28Add -fno-ret-protector for arm64.mortimer
Prompted by deraadt
2018-07-26Add infrastructure to install lld as the default linker. The old GNU linkerMark Kettenis
will be installed as /usr/bin/ld.bfd on supported systems. This allows users to fall back on the old linker by using the -fuse-ld=bfd option on systems where lld is the default linker. Switch armv7 to use lld as the default linker. On arm64 we already use lld as the default linker. Other platforms will keep using the GNU linker for now. ok patrick@, deraadt@, phessler@
2018-07-11do not pick up groff from /usr/local/bin in configure, noticed by benno@;Christian Weisgerber
ok benno@ jca@
2018-07-10Fix a few, but not all, clang warnings: Use "%s" to print modifiableTheo Buehler
strings, add a couple of braces, ansify a few functions, add and remove a few extra parens. ok jcs
1998-02-22Latest version from CyclicThorsten Lockert
1995-12-19raw import of cvs-1.6Theo de Raadt
2018-07-10Drop the ignored selectors (tf_[defg]s) from the trap and interrupt frames.Philip Guenther
ok mlarkin@ deraadt@ mpi@ kettenis@
2018-07-03Make intrframe the exact same size as trapframe: instead of pushingPhilip Guenther
the PPL on top, store it where trapframe puts the trap number. This makes interrupt handlers get called with the correct stack alignment. Also, document the use of if_err to differentiate resumed/recursed interrupts from 'real' ones. tested in snaps ok deraadt@
2018-06-19Avoid Archive::Tar directory traversalAndrew Fresh
Addresses CVE-2018-12015 From Silamael <silamael () coronamundi ! de> Original bug reports: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900834 https://rt.cpan.org/Public/Bug/Display.html?id=125523 Original commit with the fix: https://github.com/jib/archive-tar-new/commit/ae65651eab053fc6dc4590dbb863a268215c1fc5 OK bluhm@, they should already be committed! deraadt@
2018-06-06Add RETGUARD to clang for amd64. This security mechanism uses per-functionmortimer
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@
2018-05-21Add --localize-hidden option to objcopy.Mark Kettenis
From Sebastien Marie
2018-04-30The trapframe layout is no longer exactly the same as the sigcontextPhilip Guenther
layout. Simplify how we identify which frames have trapframes while here. ok kettenis@
2018-04-28Add a clang pass that identifies potential ROP gadgets and replaces ROPmortimer
friendly instructions with safe alternatives. This initial commit fixes 3 instruction forms that will lower to include a c3 (return) byte. Additional problematic instructions can be fixed incrementally using this framework. ok deraadt@
2018-04-24Make our ancient binutils recognize .gnu.hash sections such that our toolsMark Kettenis
don't barf on binaries created by ld.lld(1). From FreeBSD. ok millert@, deraadt@, guenther@
2018-04-20revert to 2018/04/20 10:00:00, before oopsChristian Weisgerber
2018-04-20syncTheo de Raadt
2018-04-14Correct heap overflow bugs in perlAndrew Fresh
* RT #131844: [CVE-2018-6913] heap-buffer-overflow in S_pack_rec Reported by GwanYeong Kim, fixed by Tony Cook. * RT #132063: [CVE-2018-6798] Heap-buffer-overflow in Perl__byte_dump_string (utf8.c) Reported by Nguyen Duc Manh, fixed by Karl Williamson, Yves Orton, and Tony Cook. * RT #132227: [CVE-2018-6797] heap-buffer-overflow (WRITE of size 1) in S_regatom (regcomp.c) Reported by Brian Carpenter, fixed by Yves Orton, Karl Williamson, and Tony Cook. Many thanks to deraadt@ tj@ bluhm@ tb@ robert@
2018-04-07Install a bunch more headers included by intrin.h, fixes at least libvpxLandry Breuil
and probably firefox on amd64/i386. ok patrick@
2018-04-07regenJonathan Gray
2018-04-06Install clwbintrin.h as it is needed by immintrin.h.Patrick Wildt
Noticed by sthen@
2018-04-06Move Version.inc to the correct folder.Patrick Wildt
Noticed by sthen@
2018-04-06Patch binutils 2.17 so that it passes option -Wno-null-pointer-arithmeticPatrick Wildt
when compiling with LLVM 6.0.0. This is a good enough temporary fix. "where's the kaboom?" deraadt@
2018-04-06Update clang build infrastructure for LLVM 6.0.0.Patrick Wildt
2018-04-01LLVM 6.0.0's -Wextra warnings now complain if you do arithmetics on NULLPatrick Wildt
pointers. Since binutils 2.17 is compiled with -Werror, this breaks the build. Change the function to return -1 as suggested by the comment in said function. ok kettenis@
2018-03-02Add a manual page for lld from lld svn rev 326463 with options notJonathan Gray
present in lld 5.0.1 removed (--build-id=fast, -z muldefs, -z retpolineplt). This includes a bunch of mdoc changes suggested by schwarze@ that were recently committed upstream. ok jmc@ schwarze@ kettenis@ deraadt@
2018-01-25Fix perl build not to install libperl* twice. This has caused anYASUOKA Masahiko
actual error if "install" was done parallelly. ok espie todd andrew1, input andrew1
2018-01-23Revise 'struct fpreg' such that it can actually represent the full VFPv3-D32Mark Kettenis
state. ok patrick@
2018-01-22regenJonathan Gray
2018-01-04Add ARM EABI aliases and remove functions that are also provided by our libc.Mark Kettenis
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@
2017-12-24Update to LLVM 5.0.1 which apparently includes plenty of bugfixes.Patrick Wildt
Requested by Brad Tested by me on amd64 Tested by bluhm on i386 Tested by kettenis on arm64, armv7 and sparc64
2017-12-12Avoid undefined behaviour in rorate_left() macro. From NetBSD via FreeBSD.Mark Kettenis
Makes gas work when compiled with clang. ok patrick@, millert@
2017-11-20Support Time::HiRes::utime in File::CopyAndrew Fresh
Fixes issues with cross-device moves, noticed with autoconf
2017-11-09Use the proper macros in AUTHORS, and delete the bogus BUGS section.Ingo Schwarze
Reporting OpenBSD bugs to GNU makes no sense...
2017-11-07Format string fix from upstream.Kevin Lo
ok millert@
2017-11-04Revert recent changes to unbreak ports/net/sambaJeremie Courreges-Anglas
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@
2017-10-31Make -zdefs and --no-undefined no-ops for now, to unblock ports devs at p2k17.Philip 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@
2017-10-29Apply pre-built unicore patch, remove excess files - perl-5.24.3Andrew Fresh
ok bluhm@
2017-10-29Apply local patches, remove excess files - perl-5.24.3Andrew Fresh
OK bluhm@
2017-10-29Fix merge issues, remove excess files - match perl-5.24.3 distAndrew Fresh
ok bluhm@
2017-10-29Import perl-5.24.3Andrew Fresh
ok bluhm@
2017-10-29Unify protoize.1 install process on gcc3 arch (luna88k).Kenji Aoyama
ok guenther@
2017-10-24R_AARCH64_NONE should be zero, not 256. The latter was a deprecatedPhilip Guenther
assignment and isn't used by clang/lld. ok jsg@
2017-10-23Extend support for DWARF2 CFI expressions. Needed to support llvm/clang onMark Kettenis
sparc64 where it doesn't use the integrated assembler (yet). ok mpi@, patrick@, guenther@
2017-10-23Teach readelf the arm64 dynamic relocation we use, as well as thePhilip Guenther
m88k-specific dynamic tags ok deraadt@ jsg@
2017-10-11Add missing file.Mark Kettenis
ok patrick@
2017-10-04Update clang build infrastructure for LLVM 5.0.0.Patrick Wildt
2017-09-29Rev. 1.2 enabled UTF-8 by default.Ingo Schwarze
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@.