From owner-cvs-src@FreeBSD.ORG Wed Feb 7 10:30:51 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DCC9C16A403; Wed, 7 Feb 2007 10:30:49 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id B681913C49D; Wed, 7 Feb 2007 10:30:49 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l17AUnAO000279; Wed, 7 Feb 2007 10:30:49 GMT (envelope-from kib@repoman.freebsd.org) Received: (from kib@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l17AUn4a000278; Wed, 7 Feb 2007 10:30:49 GMT (envelope-from kib) Message-Id: <200702071030.l17AUn4a000278@repoman.freebsd.org> From: Konstantin Belousov Date: Wed, 7 Feb 2007 10:30:49 +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/fs/procfs procfs.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Feb 2007 10:30:51 -0000 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//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