From owner-cvs-all Tue Apr 9 13:11: 4 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D219837B41F; Tue, 9 Apr 2002 13:10:46 -0700 (PDT) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g39KAkf98593; Tue, 9 Apr 2002 13:10:46 -0700 (PDT) (envelope-from jhb) Message-Id: <200204092010.g39KAkf98593@freefall.freebsd.org> From: John Baldwin Date: Tue, 9 Apr 2002 13:10:46 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/linprocfs linprocfs.c src/sys/compat/pecoff imgact_pecoff.c src/sys/kern imgact_aout.c kern_proc.c sys_process.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jhb 2002/04/09 13:10:46 PDT Modified files: sys/compat/linprocfs linprocfs.c sys/compat/pecoff imgact_pecoff.c sys/kern imgact_aout.c kern_proc.c sys_process.c Log: - Change fill_kinfo_proc() to require that the process is locked when it is called. - Change sysctl_out_proc() to require that the process is locked when it is called and to drop the lock before it returns. If this proves too complex we can change sysctl_out_proc() to simply acquire the lock at the very end and have the calling code drop the lock right after it returns. - Lock the process we are going to export before the p_cansee() in the loop in sysctl_kern_proc() and hold the lock until we call sysctl_out_proc(). - Don't call p_cansee() on the process about to be exported twice in the aforementioned loop. Revision Changes Path 1.50 +2 -2 src/sys/compat/linprocfs/linprocfs.c 1.15 +5 -2 src/sys/compat/pecoff/imgact_pecoff.c 1.77 +2 -0 src/sys/kern/imgact_aout.c 1.128 +20 -14 src/sys/kern/kern_proc.c 1.88 +2 -0 src/sys/kern/sys_process.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message