NetBSD/lib/libc
martin 6c3cc552c2 Calling _lwp_create() with a bogus ucontext could trigger a kernel
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.

To avoid this, introduce a cpu_mcontext_validate() function and move all
sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
compat mess slightly and add a cpu_mcontext32_validate() cousin there.

Add an exhaustive atf test case, based partly on code from Joel Sing.

Should finally fix the remaining open part of PR kern/43903.
2012-05-21 14:15:16 +00:00
..
arch nbytes is now size_t 2012-03-29 21:21:04 +00:00
atomic Fix a typo. 2011-04-28 11:56:26 +00:00
cdb hack to silence lint 2012-03-17 17:59:58 +00:00
citrus Do not depend on failing malloc to set errno 2012-05-04 16:45:05 +00:00
compat use setenv so that we don't leak memory. 2012-04-22 15:55:41 +00:00
compat-43 move the most of description to an appropriate section, HISTORY. 2012-01-05 07:05:59 +00:00
db PR/45989: Martin Husemann: lint invocation does include -w only on i386 2012-03-13 21:13:30 +00:00
dlfcn PR/45989: Martin Husemann: lint invocation does include -w only on i386 2012-03-13 21:13:30 +00:00
gdtoa Use original indentation style in more places. 2012-05-16 17:48:59 +00:00
gen Drop obsolete pthread restriction. 2012-05-04 12:28:03 +00:00
gmon PR/45989: Martin Husemann: lint invocation does include -w only on i386 2012-03-13 21:13:30 +00:00
hash Use C89 definition. 2012-03-20 17:06:43 +00:00
iconv Remove code for CITRUS!=yes. 2012-01-20 16:31:29 +00:00
include name protection for getpassfd 2012-04-12 22:08:46 +00:00
inet Use C89 definitions 2012-03-20 17:08:13 +00:00
isc time_t casts 2012-03-21 00:34:54 +00:00
locale cast CHAR_MAX to (char) for unsigned character machines 2012-03-21 14:11:24 +00:00
md PR/45989: Martin Husemann: lint invocation does include -w only on i386 2012-03-13 21:13:30 +00:00
misc PR/45989: Martin Husemann: lint invocation does include -w only on i386 2012-03-13 21:13:30 +00:00
nameser PR/45989: Martin Husemann: lint invocation does include -w only on i386 2012-03-13 21:13:30 +00:00
net Use C89 Prototypes. 2012-03-20 17:44:17 +00:00
nls Use C89 Prototypes. 2012-03-20 17:44:17 +00:00
quad - change from size_t to unsigned int because we don't need the extra width 2012-03-25 19:53:18 +00:00
regex PR/45989: Martin Husemann: lint invocation does include -w only on i386 2012-03-13 21:13:30 +00:00
resolv time_t casts 2012-03-21 00:34:54 +00:00
rpc Remove unneeded commas in table. 2012-05-13 15:47:38 +00:00
softfloat Fix a bug introduced by lint cleanup. 2012-03-24 00:06:20 +00:00
ssp Fix xref; security(8) -> security(7). 2011-03-21 04:42:50 +00:00
stdio Small typo. 2012-05-11 17:14:12 +00:00
stdlib rename umax2s->size_t2s function per apb's request. 2012-03-21 14:32:22 +00:00
string Mark these obsolete as well. 2012-05-05 21:24:19 +00:00
sys Calling _lwp_create() with a bogus ucontext could trigger a kernel 2012-05-21 14:15:16 +00:00
termios Use .In for header files instead of .Ar Pa and variations. 2010-03-22 19:30:53 +00:00
thread-stub Use __dead 2011-09-16 16:05:58 +00:00
time Fix typo, from Bug Hunting. 2012-04-06 11:35:39 +00:00
tls Add a workaround for older crt0.o that overwrite r2 (tcb pointer). 2011-04-07 02:19:28 +00:00
uuid Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
yp Convert to use C89 prototypes. 2012-03-20 16:30:26 +00:00
libcincludes.mk put the code to find the libc include directories and define ARCHSUBDIR 2008-10-26 07:28:06 +00:00
Makefile Remove code for CITRUS!=yes. 2012-01-20 16:31:29 +00:00
Makefile.inc welcome to WARNS=5 2012-03-21 14:52:40 +00:00
shlib_version Implement sem_timedwait. 2012-03-08 21:59:24 +00:00