Date: Wed, 9 Jan 2013 05:49:53 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r245218 - stable/9/sys/kern Message-ID: <201301090549.r095nrY8056418@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301090549.r095nrY8056418>