NetBSD/sys/arch/hppa
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 Hook in ipifuncs.c 2012-04-05 19:53:35 +00:00
hppa Calling _lwp_create() with a bogus ucontext could trigger a kernel 2012-05-21 14:15:16 +00:00
include Provide hppa_{enable,disable}_irq 2012-05-21 07:42:51 +00:00
spmath -Wold-style-definition 2012-02-04 17:03:08 +00:00
Makefile