From owner-svn-src-all@FreeBSD.ORG Wed May 27 13:09:16 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EB927D32; Wed, 27 May 2015 13:09:15 +0000 (UTC) (envelope-from bjkfbsd@gmail.com) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 94B6EC10; Wed, 27 May 2015 13:09:15 +0000 (UTC) (envelope-from bjkfbsd@gmail.com) Received: by wicmx19 with SMTP id mx19so110746053wic.0; Wed, 27 May 2015 06:09:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=juPsOCPv4MNfMtQdnZYsnEe/47+sESD04osWu3YLc0g=; b=V2NelC7p5QglhD1IovdkAu7BqghtzLzH/JHBonewWUyuCPXKoiSh6aMuWU2WEW42k1 uCbZ4xASGfroGWO1FuWKKUaQ0Qj4+WBQSh55QSuNiMJFgHVb2XnrrTIXRLsYI30KCUw3 mtfsw2C93meL3kUKHzHzrNHlXiwdjlv5VL8SIOBCPSfW4Tt71PQzuiRsgubgAmeuqbMW t2P8EZKFpanULgopWuVHtkfLoo5irKE1ubzYnObD2wvFCAXqQQdel3p4nmE71895ByQP klOT+Vqi/f1oSrNucI6I6EwVZ+T76bqvAwjPKbVp00Jmm2dSRrVNZ1QMR1lDx9FLpepD eAGg== MIME-Version: 1.0 X-Received: by 10.195.13.113 with SMTP id ex17mr47191623wjd.17.1432732154042; Wed, 27 May 2015 06:09:14 -0700 (PDT) Received: by 10.27.77.201 with HTTP; Wed, 27 May 2015 06:09:13 -0700 (PDT) In-Reply-To: <201505270922.t4R9MoZv065205@svn.freebsd.org> References: <201505270922.t4R9MoZv065205@svn.freebsd.org> Date: Wed, 27 May 2015 09:09:13 -0400 Message-ID: Subject: Re: svn commit: r283602 - in head/sys: cddl/contrib/opensolaris/uts/common/fs/zfs kern From: Benjamin Kaduk To: Konstantin Belousov Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2015 13:09:16 -0000 On Wed, May 27, 2015 at 5:22 AM, Konstantin Belousov wrote: > Author: kib > Date: Wed May 27 09:22:50 2015 > New Revision: 283602 > URL: https://svnweb.freebsd.org/changeset/base/283602 > > Log: > Right now, dounmount() is called with unreferenced mount point. > Nothing stops a parallel unmount to suceed before the given call to > dounmount() checks and locks the covered vnode. Prevent dounmount() > from acting on the freed (although type-stable) memory by changing the > interface to require the mount point to be referenced. dounmount() > consumes the reference on return, regardless of the sucessfull or > erronous result. > Should __FreeBSD_version get bumped? -Ben