NetBSD/sys/compat/netbsd32
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
..
files.netbsd32 P1003_1B_SEMAPHORE is no longer optional. 2012-03-10 21:51:48 +00:00
Makefile Remove spurious bsd.kinc.mk include, which seems to not be needed here 2012-03-20 09:18:00 +00:00
netbsd32_compat_09.c
netbsd32_compat_10.c
netbsd32_compat_12.c
netbsd32_compat_13.c
netbsd32_compat_14.c
netbsd32_compat_20.c
netbsd32_compat_30.c
netbsd32_compat_43.c
netbsd32_compat_50.c
netbsd32_conv.h
netbsd32_core.c
netbsd32_event.c
netbsd32_exec_aout.c
netbsd32_exec_elf32.c Add a hook for freeing an ep_emul_arg. Add a wrapper routine 2012-02-03 20:11:53 +00:00
netbsd32_exec.h
netbsd32_execve.c Revert posix_spawn() clean up for now, there are some bugs. 2012-05-02 23:33:11 +00:00
netbsd32_fs.c allow mounting ext2fs and msdosfs 2012-03-06 07:37:05 +00:00
netbsd32_ioctl.c provide clockctl ioctl emulation 2012-05-11 19:00:36 +00:00
netbsd32_ioctl.h provide clockctl ioctl emulation 2012-05-11 19:00:36 +00:00
netbsd32_ipc.c
netbsd32_lwp.c Calling _lwp_create() with a bogus ucontext could trigger a kernel 2012-05-21 14:15:16 +00:00
netbsd32_mod.c
netbsd32_netbsd.c Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! 2012-02-19 21:05:51 +00:00
netbsd32_select.c
netbsd32_sem.c P1003_1B_SEMAPHORE is no longer optional. 2012-03-10 21:51:48 +00:00
netbsd32_signal.c Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! 2012-02-19 21:05:51 +00:00
netbsd32_socket.c Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions 2012-01-20 14:08:04 +00:00
netbsd32_syscall.h Regen (posix_spawn) 2012-04-08 11:28:12 +00:00
netbsd32_syscallargs.h Regen (posix_spawn) 2012-04-08 11:28:12 +00:00
netbsd32_syscalls.c Regen (posix_spawn) 2012-04-08 11:28:12 +00:00
netbsd32_sysctl.c Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions 2012-01-20 14:08:04 +00:00
netbsd32_sysctl.h
netbsd32_sysent.c Regen (posix_spawn) 2012-04-08 11:28:12 +00:00
netbsd32_time.c
netbsd32_wait.c
netbsd32.h Rework posix_spawn locking and memory management: 2012-04-08 11:27:44 +00:00
syscalls.conf
syscalls.master Rework posix_spawn locking and memory management: 2012-04-08 11:27:44 +00:00