NetBSD/sys/compat
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
..
aoutm68k Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! 2012-02-19 21:05:51 +00:00
common Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with 2012-03-13 18:40:26 +00:00
freebsd P1003_1B_SEMAPHORE is no longer optional. 2012-03-10 21:51:48 +00:00
ibcs2 Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! 2012-02-19 21:05:51 +00:00
linux define LINUX_DEBUGLINK_SIGNATURE for i386 too. 2012-03-21 03:20:22 +00:00
linux32 regen 2012-05-10 19:41:52 +00:00
m68k4k buildfix: #include <sys/exec_aout.h> 2009-08-17 06:00:05 +00:00
ndis ansi prototypes 2012-02-03 23:39:59 +00:00
net Add a new AF/PF_ROUTE which is 64-bit clean which makes the routing socket 2011-02-01 01:39:19 +00:00
netbsd32 Calling _lwp_create() with a bogus ucontext could trigger a kernel 2012-05-21 14:15:16 +00:00
netinet6
osf1 Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! 2012-02-19 21:05:51 +00:00
ossaudio Change the vnode locking protocol of VOP_GETATTR() to request at least 2011-10-14 09:23:28 +00:00
sunos Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! 2012-02-19 21:05:51 +00:00
sunos32 Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! 2012-02-19 21:05:51 +00:00
svr4 Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! 2012-02-19 21:05:51 +00:00
svr4_32 Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! 2012-02-19 21:05:51 +00:00
sys Calling _lwp_create() with a bogus ucontext could trigger a kernel 2012-05-21 14:15:16 +00:00
ultrix Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! 2012-02-19 21:05:51 +00:00
vax1k Include <sys/exec_aout.h> explicitly instead of relying on <sys/exec.h> to 2009-08-15 23:39:35 +00:00
Makefile