From owner-cvs-src-old@FreeBSD.ORG Thu Nov 13 15:00:54 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF73D1065718 for ; Thu, 13 Nov 2008 15:00:54 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C104F8FC17 for ; Thu, 13 Nov 2008 15:00:54 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mADF0s93032168 for ; Thu, 13 Nov 2008 15:00:54 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mADF0sRg032167 for cvs-src-old@freebsd.org; Thu, 13 Nov 2008 15:00:54 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200811131500.mADF0sRg032167@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Thu, 13 Nov 2008 15:00:40 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/compat/linux linux_emul.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 15:00:54 -0000 kib 2008-11-13 15:00:40 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/compat/linux linux_emul.c Log: SVN rev 184924 on 2008-11-13 15:00:40Z by kib MFC r184501: The code in linux_proc_exit() contains a race when multiple linux based processes exits at the same time. The linux_emuldata structure is freed but p->p_emuldata is left as a dangling pointer to the just freed memory. The check for W_EXIT in the loop scanning the child processes isn't safe since the state of the child process can change right afterwards. Lock the process and check the W_EXIT before delivering signal. Approved by: re (kensmith) Revision Changes Path 1.20.2.1 +3 -3 src/sys/compat/linux/linux_emul.c