Up to [cvs.NetBSD.org] / src / tests / lib / libc / sys
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: yamt-pagecache-base5
Revision 1.23 / (download) - annotate - [select for diffs], Mon May 21 14:15:19 2012 UTC (11 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base5
Changes since 1.22: +2 -1
lines
Diff to previous 1.22 (colored)
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.