Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2960432imu; Mon, 19 Nov 2018 08:39:19 -0800 (PST) X-Google-Smtp-Source: AJdET5fBYEpk3SwYAq2J5tvpHJr/zObiiq/8l4nCtznzWaz0lXTappF2aItDndyIJbBezQ0/2KM3 X-Received: by 2002:a63:9809:: with SMTP id q9mr20791886pgd.109.1542645559922; Mon, 19 Nov 2018 08:39:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542645559; cv=none; d=google.com; s=arc-20160816; b=gy1CrgLXR9Xx+XvuuBzSv2519rhzees5Lrd/6uoahYrvf3ZAhbV2A2yMV0+WCEbFyx Oji0qHBAHZNR5AAircv/YfDzAcXkxnEuydbVTYe92XuS+soofzPr5RJ3m3+PQXMbtSrg i+HavZIX2xYwKxDPU8YahMI28Wqyn6T8PiHkKCs2pAQPqytIDXQchVSFWYc7dMIEKwtY bDzjqP5MHREGD/AjebTD5EhtKRFqDR34/gTB6NUUvrZj4X7cqD6/Aci8vrMl1hmJCNT1 ZXDPyC7i4pf/aQTF0qUxvyLUtYXTw3cKu2vxNOcsi7ZJYRaWqNJTY7EBpm4P78fAhmPm fmvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=B95m8VDamzdIu+2ptal12QDHakYmcftKtXTIvzY7mV8=; b=DjeXBijhBivFvAcGrnhHZU6hAw7xeyWxJhtn/6nsZktrGWMCGM8gGgBKEuPPPaPxAO yEg6AeM5BSSM+1BQhYmYlXIEYGbqEP94HlADSokPQglAlnUcKb8bheOb6l4ecZMrFF2g yFX7H+dbN59gLLAqQ2uXpilbHa7XGDi8G0a8rY6wyjOxeEk2GO/+WduWEiSuCAlkQGEH iwpkRsSkmDMebRXCwwByFJXj05rYOITTb8ZpWGnzA9+1kVOHhw98SxrEiwILN/FEFYR1 06lN2PrFIX+8AJdCQTGgzRk1/p3xey3K2dRQviRf9KEWztmdXtr7N+sXXThgAKIxLLxq 0xnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cAUg+9Nw; 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 g63-v6si43102455pfc.187.2018.11.19.08.39.05; Mon, 19 Nov 2018 08:39:19 -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=pass header.i=@kernel.org header.s=default header.b=cAUg+9Nw; 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 S1731918AbeKTDAg (ORCPT + 99 others); Mon, 19 Nov 2018 22:00:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:60468 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731306AbeKTDAd (ORCPT ); Mon, 19 Nov 2018 22:00:33 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9E15E21479; Mon, 19 Nov 2018 16:36:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645385; bh=T0fkHj/V/eD5dQc4B+Pwb0aSmvDwnkr2n1SBSg05ZJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cAUg+9NwZjFCj40LUOl1rsHY7KP3MUr641f9vGhr1hFbrieGIccAneKndtUai17+r 8Rnw109OMeLaDPL8bT/HY20hiTikUT2+9CQwWIDCliyIjgs3Y3KiEP39PeblAeQSA6 eEA1fkft2NRPMgDhcvat3ju5zTJsj/9ozFy9o66Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vasily Averin , Theodore Tso , stable@kernel.org Subject: [PATCH 4.19 141/205] ext4: fix possible leak of s_journal_flag_rwsem in error path Date: Mon, 19 Nov 2018 17:27:28 +0100 Message-Id: <20181119162637.865198651@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162616.586062722@linuxfoundation.org> References: <20181119162616.586062722@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vasily Averin commit af18e35bfd01e6d65a5e3ef84ffe8b252d1628c5 upstream. Fixes: c8585c6fcaf2 ("ext4: fix races between changing inode journal ...") Signed-off-by: Vasily Averin Signed-off-by: Theodore Ts'o Cc: stable@kernel.org # 4.7 Signed-off-by: Greg Kroah-Hartman --- fs/ext4/super.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -4509,6 +4509,7 @@ failed_mount6: percpu_counter_destroy(&sbi->s_freeinodes_counter); percpu_counter_destroy(&sbi->s_dirs_counter); percpu_counter_destroy(&sbi->s_dirtyclusters_counter); + percpu_free_rwsem(&sbi->s_journal_flag_rwsem); failed_mount5: ext4_ext_release(sb); ext4_release_system_zone(sb);