Date: Wed, 7 Feb 2007 10:30:49 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/procfs procfs.c Message-ID: <200702071030.l17AUn4a000278@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2007-02-07 10:30:49 UTC FreeBSD src repository Modified files: sys/fs/procfs procfs.c Log: Fix the race of dereferencing /proc/<pid>/file with execve(2) by caching the value of p_textvp. This way, we always unlock the locked vnode. While there, vhold() the vnode around the vn_lock(). Reported and tested by: Guy Helmer (ghelmer palisadesys com) Approved by: des (procfs maintainer) MFC after: 1 week Revision Changes Path 1.15 +11 -3 src/sys/fs/procfs/procfs.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702071030.l17AUn4a000278>