From owner-svn-src-head@FreeBSD.ORG Fri Mar 21 01:30:34 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9D5482F8; Fri, 21 Mar 2014 01:30:34 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8B1771ED; Fri, 21 Mar 2014 01:30:34 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2L1UY3B030561; Fri, 21 Mar 2014 01:30:34 GMT (envelope-from mjg@svn.freebsd.org) Received: (from mjg@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2L1UXH9030560; Fri, 21 Mar 2014 01:30:33 GMT (envelope-from mjg@svn.freebsd.org) Message-Id: <201403210130.s2L1UXH9030560@svn.freebsd.org> From: Mateusz Guzik Date: Fri, 21 Mar 2014 01:30:33 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r263458 - head/sys/security/audit X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2014 01:30:34 -0000 Author: mjg Date: Fri Mar 21 01:30:33 2014 New Revision: 263458 URL: http://svnweb.freebsd.org/changeset/base/263458 Log: audit: plug FILEDESC_LOCK leak in audit_canon_path. MFC after: 3 days Modified: head/sys/security/audit/audit_bsm_klib.c Modified: head/sys/security/audit/audit_bsm_klib.c ============================================================================== --- head/sys/security/audit/audit_bsm_klib.c Fri Mar 21 00:56:56 2014 (r263457) +++ head/sys/security/audit/audit_bsm_klib.c Fri Mar 21 01:30:33 2014 (r263458) @@ -497,6 +497,7 @@ audit_canon_path(struct thread *td, int /* XXX: fgetvp() that vhold()s vnode instead of vref()ing it would be better */ error = fgetvp(td, dirfd, NULL, &cvnp); if (error) { + FILEDESC_SUNLOCK(fdp); cpath[0] = '\0'; if (rvnp != NULL) vdrop(rvnp);