From owner-cvs-all@FreeBSD.ORG Sat Jun 9 18:56:12 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2596016A468; Sat, 9 Jun 2007 18:56:12 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 1722F13C458; Sat, 9 Jun 2007 18:56:12 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l59IuBnu064948; Sat, 9 Jun 2007 18:56:11 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from attilio@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l59IuBRC064947; Sat, 9 Jun 2007 18:56:11 GMT (envelope-from attilio) Message-Id: <200706091856.l59IuBRC064947@repoman.freebsd.org> From: Attilio Rao Date: Sat, 9 Jun 2007 18:56:11 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/compat/svr4 svr4_misc.c src/sys/kern init_main.c kern_exit.c kern_resource.c kern_thread.c src/sys/sys proc.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2007 18:56:12 -0000 attilio 2007-06-09 18:56:11 UTC FreeBSD src repository Modified files: sys/compat/svr4 svr4_misc.c sys/kern init_main.c kern_exit.c kern_resource.c kern_thread.c sys/sys proc.h Log: The current rusage code show peculiar problems: - Unsafeness on ruadd() in thread_exit() - Unatomicity of thread_exiit() in the exit1() operations This patch addresses these problems allocating p_fd as part of the process and modifying the way it is accessed. A small chunk of this patch, resolves a race about p_state in kern_wait(), since we have to be sure about the zombif-ing process. Submitted by: jeff Approved by: jeff (mentor) Revision Changes Path 1.95 +5 -4 src/sys/compat/svr4/svr4_misc.c 1.281 +5 -0 src/sys/kern/init_main.c 1.302 +8 -31 src/sys/kern/kern_exit.c 1.175 +3 -6 src/sys/kern/kern_resource.c 1.248 +4 -6 src/sys/kern/kern_thread.c 1.482 +1 -1 src/sys/sys/proc.h