Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2414913imu; Tue, 6 Nov 2018 14:15:45 -0800 (PST) X-Google-Smtp-Source: AJdET5fPzA70WG1fzC+7ioVUYLQCKJiZAzbLBKvKI+RY/1oZpDtfQqNKMgFJPcgfZKD5m/1crQdt X-Received: by 2002:a63:c942:: with SMTP id y2mr25118361pgg.331.1541542545103; Tue, 06 Nov 2018 14:15:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541542545; cv=none; d=google.com; s=arc-20160816; b=lEbzkLawTD+jjmO4lYpcE78E4Mm68eix7qjv4deQnnshSY4zFVs2oVdfuWpJ7SeY48 v+E7R+nU8iVEhFw9e5j85IhpPSgHKlxWI+0H2SHwW2eGe/H1XC9U3mPOQLry8cOh1ryn 9juMiYsJfBZ5I5CPHU3+WKfp67si97IPhwrL1QFX5xU8RMyeIzAG+D08/VXpbAQH6Ogk NcRff7gM8pY84GtMCJzpcKiN8xfgXgacmGk2ILLWfvNl8y8jnhTkh9kXhaNv8v62Ooo8 fRnnriXq/bPfk+/ENFWlVoqZACYMPiEZPXaZIKsmQqOBt0ka4kqlGKdTj7e76YqjScIt wz1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=d40P+8HSx4cdpppxbcKMcJCiPYf6zaozDj5RvfsIW58=; b=F6DbDCJjTGHREhYJVIRH2M9BwEpQW/71pjVDAWjWrq1ysU7hZ0CA+iw6QCLTQZA86x 1dpDQj+dEso/Y0l8P04US9OS+EK7r3+mpiDzHbq+5m5BWGVfGL+n6tpOH6GsuTEUZpZs aFqR3habBxudqsiefxjfq3NqiACL1/Rlvt54WbpHPp4LjfDhsr7Byfoc+nVWyv3eBUyJ +t+4GK+1ghA/0j7Umk5xTluWYZjYwxl849WTLoy5bjUP9Z1DqqErWXeLIOLF9QUz75wP 6vWrvioosjnaTD4AnaOPnQEaXPo6E+GfZ5JeZ4E+VX77v6VEM9KYqH6TCFNYXeb+2UzJ z5OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=Af8sauTZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l186si1073107pge.205.2018.11.06.14.15.28; Tue, 06 Nov 2018 14:15:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=Af8sauTZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730773AbeKGHb5 (ORCPT + 99 others); Wed, 7 Nov 2018 02:31:57 -0500 Received: from imap.thunk.org ([74.207.234.97]:46112 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbeKGHb5 (ORCPT ); Wed, 7 Nov 2018 02:31:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=d40P+8HSx4cdpppxbcKMcJCiPYf6zaozDj5RvfsIW58=; b=Af8sauTZ407iIieDZFUhsZzK7/ gl+aHUVMZ7bQUcFleIC/KLm3ifbmYdD/owmZF9W5pGAehACuDzm0aXJcRfuH0nZPjXXY+7VcccnaE 9NvT0gzMtczUBuyUtIBNsdFCAG0/rWDP0Q4VCqe9Ny0DINV2q0HYFORCtRUOgvo09mOY=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1gK9Sc-00067L-Dh; Tue, 06 Nov 2018 22:04:34 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 6D8567A7C2C; Tue, 6 Nov 2018 17:04:33 -0500 (EST) Date: Tue, 6 Nov 2018 17:04:33 -0500 From: "Theodore Y. Ts'o" To: Vasily Averin Cc: linux-ext4@vger.kernel.org, Andreas Dilger , linux-kernel@vger.kernel.org, Dmitry Monakhov Subject: Re: [PATCH v2 08/11] ext4: lost brelse in ext4_orphan_add() Message-ID: <20181106220433.GG2570@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , Vasily Averin , linux-ext4@vger.kernel.org, Andreas Dilger , linux-kernel@vger.kernel.org, Dmitry Monakhov References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 31, 2018 at 12:58:31AM +0300, Vasily Averin wrote: > iloc.bh os taken in ext4_reserve_inode_write(). > If (dirty == true) it is released in ext4_mark_iloc_dirty(), > however it is not released in (dirty == false) case. > > Fixes d745a8c20c1f ("ext4: reduce contention on s_orphan_lock") > however iloc.bh count balance was broken earlier by > Fixes 6e3617e579e0 ("ext4: Handle non empty on-disk orphan link") #2.6.34 > > cc: Dmitry Monakhov > Signed-off-by: Vasily Averin Thanks, applied. I fixed up the commit description and Fixes/Cc trailers. I used the one-line description: ext4: avoid buffer leak in ext4_orphan_add() after prior errors - Ted