Date: Tue, 9 Apr 2002 13:10:46 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> 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 Message-ID: <200204092010.g39KAkf98593@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204092010.g39KAkf98593>