summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2016-05-19no more v6only;Jason McIntyre
2016-05-19Add ASM_NOERR for syscalls that never fail and thus don't need the errnoPhilip Guenther
setting logic...which can significantly reduce the size of the stub on some archs; 20 syscalls get a trim with this. in snaps for a bit and ok deraadt@
2016-05-18Save and restore 'gbr' register when enter/leaving the kernel, and usePhilip Guenther
it for the TCB pointer. Eliminate __cerror. "looks good" kettenis@, testing and ok deraadt@
2016-05-18update links; from rayJason McIntyre
2016-05-18Reduce quadruple negation to double negation;Ingo Schwarze
from Edgar Pettijohn <edgar at pettijohn minus web dot com>. OK jmc@ deraadt@ While here, remove two instances of inconsistent future tense.
2016-05-18Remove obsolete caveat. OK deraadt@Todd C. Miller
2016-05-17Fix a one-byte buffer underflow (read access only).Ingo Schwarze
This change touches code that only runs when REG_BASIC is given and the regular expression is anchored with ^ _and_ uses backreferences. The segfault could only be triggered when the ^ anchor was inside a leading () subexpression quantified with *. OK martijn@ Patch also proofread by Pedro Giffuni <pfg at FreeBSD dot org>.
2016-05-16...and delete the GP setup. Should have been in previous commitPhilip Guenther
2016-05-16Eliminate cerror: use PAL_rdunique to get the TCB address directlyPhilip Guenther
ok deraadt@ kettenis@
2016-05-15Add END() to match ENTRY() macrosPhilip Guenther
ok kettenis@
2016-05-15TIB conversion is complete, so set errno in the syscall stub and eliminatePhilip Guenther
__cerror ok ketternis@
2016-05-14Revert previous commit. Converting bcopy into memcpy is never safe whenMark Kettenis
there is a big fat comment saying "Avoid alignment issues" immediately above them.
2016-05-13remove extra argument; from rafael nevesJason McIntyre
2016-05-13re-add the check we have in revision 1.12.Remi Pointel
ok jca@ (thanks).
2016-05-12more hppa64 cleaningTheo de Raadt
2016-05-12Using a 3-word buffer in the openbsd.randomdata segment, XOR swizzleTheo de Raadt
the PC/FP/SP registers in the jmpbuf. An old idea (around 1999?) but the random segment sure makes it easy. Lots of help from kettenis ok kettenis
2016-05-11remove hppa64 port, which we never got going beyond broken single users.Theo de Raadt
hppa reverse-stack gives us a valuable test case, but most developers don't have a 2nd one to proceed further with this. ok kettenis
2016-05-11Add RETURN VALUES section and .Xr to memmem(3).Ingo Schwarze
From Michal Mazurek <akfaew at jasminek dot net>. OK tedu@
2016-05-11convert bcopy to memcpy. ok dlg millertTed Unangst
2016-05-10Enable separate compilation while keeping internal interfaces hidden.Ingo Schwarze
Simplifies the build system and prevents modules from stomping on each other's static symbols. Based on a hint from guenther@, using feedback from kettenis@ and deraadt@.
2016-05-10Fix next_history() and previous_history():Ingo Schwarze
* The meaning of "next" and "previous" is exchanged in readline(3) with respect to editline(3); this part of the patch from Bastian Maerkisch. * next_history() can move beyond the newest entry; issue pointed out by Bastian Maerkisch, fix by me. While here, make the documentation of ed-next-history, ed-prev-history, H_NEXT, and H_PREV more precise. OK czarkoff@.
2016-05-10Fix history_get():Ingo Schwarze
* Respect history_base. * Bail out early for arguments that are too small. * Select entry by readline offset, not by editline event number. * Restore history cursor in case of failure. This fixes the test_remove() regression test. Based on a patch from Bastian Maerkisch <bmaerkisch at web dot de>. Dmitrij Czarkoff pointed out a flaw in it that i fixed. OK czarkoff@.
2016-05-10Oops: the caching of TCB address in single-threaded processes on archs withPhilip Guenther
slow TCB_GET (alpha, arm, mips64, sh) was broken when I switched CPP symbols.
2016-05-09libc stub is gone, so update the description to cover the remaining usePhilip Guenther
2016-05-09Remove sigreturn declaration and the now-unused libc syscall stubPhilip Guenther
2006-10-10Preliminary userland bits for OpenBSD/landisk, many things coming fromMiod Vallat
NetBSD.
2016-05-09update libexpat to 2.1.1.Remi Pointel
ok deraadt@ (thanks to sebastian[@]pipping[.]org for information).
2016-05-09Stop using sigreturn for longjmp, just set the signal mask and returnPhilip Guenther
registers ala _longjmp. In setjmp, stop saving the onstack from sigaltstack as it's been unused by longjmp for years. In sig{set,long}jmp, use the internal, hidden names for setjmp/_setjmp/etc to avoid creating PLT entries. build testing deraadt@
2016-05-09Don't use sigreturn(2) in longjmp(3). Instead use a similar approach as inMark Kettenis
_longjmp(3) but also restore the signal mask. ok deraadt@
2016-05-09Fix mangled function signatures.Joel Sing
From Carlin Bingham <cb at viennan dot net>, thanks!
2016-05-09Fix stifle_history(): Remove excessive entries, if any.Ingo Schwarze
Based on a patch from Bastian Maerkisch <bmaerkisch at web dot de>, with an additional fix for a memory leak by me. OK czarkoff@
2016-05-09remove mention of dbm(3) and surrounding cruft; ok jmc@Christian Weisgerber
2016-05-08Implement longjmp directly and not on top of sigreturn.Philip Guenther
Use the hidden symbols for internal calls to abort, longjmp, etc ok deraadt@
2016-05-08No, sigaltstack's onstack flag shouldn't be saved. Delete commentPhilip Guenther
wondering about that
2016-05-08Hide __fpu_* and make internal _Qp_* calls go direct.Philip Guenther
ok kettenis@
2016-05-08Simplify sig{set,long}jmp(): just Do The Job instead of calling othersPhilip Guenther
ok kettenis@
2016-05-08Change where_history() to agree with the GNU implementation:Ingo Schwarze
Return 0 for the oldest entry and increment by 1 for each newer, non-deleted entry. This fixes the test_where() regression test. Patch from Bastian Maerkisch <bmaerkisch at web dot de>. OK czarkoff@.
2016-05-08Make the history_set_pos() return values agree with the GNU implementation.Ingo Schwarze
Patch from Bastian Maerkisch <bmaerkisch at web dot de> with a minor tweak from Christos Zoulas. Fixes the test_set_pos_return_values() regression test. OK czarkoff@, also proofread by zhuk@ and by Christian Heckendorf <mbie at ulmus dot me>.
2016-05-08Use /dev/bpf0 instead of /dev/bpf (without loop though), as suggested byMartin Natano
sthen@. to make remote upgrades without media less painful. ok tb@
2016-05-07Unexport sigreturn. Nobody should use it anymore, and it will be removedMark Kettenis
from libc completely in the near future. Riding the libc bump that appeared a few moments ago. ok deraadt@
2016-05-07remove more dbm piecesChristian Weisgerber
2016-05-07remove ancient dbm functions (ndbm remains). nothing uses them in forever.Ted Unangst
2016-05-07stop opening the shadow database by default. only programs that request itTed Unangst
via the _shadow functions will open now, preventing some programs running as root from accidentally loading password hashes it into their memory. ok deraadt
2016-05-07Avoid a transient PLT entry for the internal __getcwd syscall stub forPhilip Guenther
slightly better code on some archs
2016-05-07Declare moncontrol(3) APIs in <sys/gmon.h>Philip Guenther
Export _gmonparam again. Make gcrt0.o use an reserved name for _monstartup() ok millert@
2016-05-07Use a Thread Information Block in both single and multi-threaded programs.Philip Guenther
This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable! Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now! Clean up libpthread's symbol exports like libc. On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec. Testing by various, particularly sthen@ and patrick@ ok kettenis@
2016-05-06typos in comments; from Pedro Giffuni (FreeBSD) via Christos Zoulas (NetBSD)Ingo Schwarze
2016-05-06Replace the generated file "fcns.c" by a simpler header "func.h"Ingo Schwarze
included only in the one file needing it, "map.c". That allows to define el_action_t directly in "map.h", which in turn allows to stop including "fcns.h" from "el.h" and include it only in the modules needing it. Now we no longer autogenerate any C files. Feedback and OK martijn@. First version also proofread by Christian Heckendorf <mbie at ulmus dot me>.
2016-05-04fix for integer overflow in encode and encrypt update functions.Ted Unangst
additionally, in EncodeUpdate, if the amount written would overflow, return 0 instead to prevent bugs in the caller. CVE-2016-2105 and CVE-2016-2106 from openssl.
2016-05-04fix a padding oracle in aesni cbc mac check. there must be enough dataTed Unangst
for both the mac and padding bytes. CVE-2016-2107 from openssl