Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Matthias Drochner <drochner@netbsd.org>
List: source-changes
Date: 11/08/2006 20:18:33
Module Name:	src
Committed By:	drochner
Date:		Wed Nov  8 20:18:33 UTC 2006

Modified Files:
	src/sys/compat/netbsd32: netbsd32_signal.c
	src/sys/kern: kern_sig.c

Log Message:
-SUS says that a successful call to setcontext(2) does not return. This
 implies that _UC_CPU must be set in the context passed. Check for this
 and return EINVAL if not; this gives a cheap test for corrupted
 ucontexts eg on a signal handler stack which would go unnoticed otherwise.
-Don't ckeck for NULL ucontext pointers explicitely. This is an error,
 except in the swapcontext() case where it can be easily caught in
 userland.


To generate a diff of this commit:
cvs rdiff -r1.17 -r1.18 src/sys/compat/netbsd32/netbsd32_signal.c
cvs rdiff -r1.238 -r1.239 src/sys/kern/kern_sig.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.