svn commit: r245218 - stable/9/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Wed Jan 9 05:49:53 UTC 2013
Author: kib
Date: Wed Jan 9 05:49:52 2013
New Revision: 245218
URL: http://svnweb.freebsd.org/changeset/base/245218
Log:
MFC r245104:
Protect the p->p_pgrp dereference with the process lock.
Modified:
stable/9/sys/kern/kern_exit.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/kern/kern_exit.c
==============================================================================
--- stable/9/sys/kern/kern_exit.c Wed Jan 9 05:44:55 2013 (r245217)
+++ stable/9/sys/kern/kern_exit.c Wed Jan 9 05:49:52 2013 (r245218)
@@ -1069,7 +1069,9 @@ kern_wait6(struct thread *td, idtype_t i
q = td->td_proc;
if ((pid_t)id == WAIT_MYPGRP && (idtype == P_PID || idtype == P_PGID)) {
+ PROC_LOCK(q);
id = (id_t)q->p_pgid;
+ PROC_UNLOCK(q);
idtype = P_PGID;
}
More information about the svn-src-stable-9
mailing list