svn commit: r226206 - stable/8/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Mon Oct 10 13:16:39 UTC 2011
Author: kib
Date: Mon Oct 10 13:16:39 2011
New Revision: 226206
URL: http://svn.freebsd.org/changeset/base/226206
Log:
MFC r225942:
Assert that exiting process does not return to usermode.
Modified:
stable/8/sys/kern/subr_trap.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/kern/subr_trap.c
==============================================================================
--- stable/8/sys/kern/subr_trap.c Mon Oct 10 13:03:14 2011 (r226205)
+++ stable/8/sys/kern/subr_trap.c Mon Oct 10 13:16:39 2011 (r226206)
@@ -96,6 +96,8 @@ userret(struct thread *td, struct trapfr
CTR3(KTR_SYSC, "userret: thread %p (pid %d, %s)", td, p->p_pid,
td->td_name);
+ KASSERT((p->p_flag & P_WEXIT) == 0,
+ ("Exiting process returns to usermode"));
#if 0
#ifdef DIAGNOSTIC
/* Check that we called signotify() enough. */
More information about the svn-src-stable
mailing list