From owner-cvs-src@FreeBSD.ORG Fri Aug 13 20:27:57 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00CFB16A4CE; Fri, 13 Aug 2004 20:27:57 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D60B643D45; Fri, 13 Aug 2004 20:27:56 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7DKRu44003714; Fri, 13 Aug 2004 20:27:56 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7DKRud6003713; Fri, 13 Aug 2004 20:27:56 GMT (envelope-from rwatson) Message-Id: <200408132027.i7DKRud6003713@repoman.freebsd.org> From: Robert Watson Date: Fri, 13 Aug 2004 20:27:56 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/fs/pseudofs pseudofs_vnops.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 13 Aug 2004 20:27:57 -0000 rwatson 2004-08-13 20:27:56 UTC FreeBSD src repository Modified files: sys/fs/pseudofs pseudofs_vnops.c Log: Commit a work-around for a more general bug involving process state: check whether p_ucred is NULL or not in pfs_getattr() before dereferencing the credential, and return ENOENT if there wasn't one. This is a symptom of a larger problem, wherein pfind() can return references to incompletely initialized processes, and we instead ought to not return them, or check the process state before acting on the process. Reported by: kris Discussed with: tjr, others Revision Changes Path 1.45 +11 -0 src/sys/fs/pseudofs/pseudofs_vnops.c