NetBSD/sys/arch/sh3
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
..
conf Build sh3/sh3/sh3_bus_space.c only for mmeye. 2011-07-26 16:24:43 +00:00
dev Entropy-pool implementation move and cleanup. 2012-02-02 19:42:57 +00:00
include - Normalize inclusion protection (remove) 2012-03-28 17:03:27 +00:00
sh3 Calling _lwp_create() with a bogus ucontext could trigger a kernel 2012-05-21 14:15:16 +00:00
Makefile
Makefile.inc