Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6471716imd; Wed, 31 Oct 2018 12:13:23 -0700 (PDT) X-Google-Smtp-Source: AJdET5cMl9gKfuA6vKz+0mTJeAb1/FVmYLeYhTxonXFdu0lgQVrgQsbJV07RDMr1tQXJ7YvlrH9h X-Received: by 2002:a17:902:7282:: with SMTP id d2-v6mr4493203pll.272.1541013203427; Wed, 31 Oct 2018 12:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541013203; cv=none; d=google.com; s=arc-20160816; b=ueTiW+5D2nQ9u3Qy8t+rax6/RzVgXAh7bQHyMG6fTkixdzDzMwHwo9j2hvCYPaqFWg XdNfIbpwMsNDx54Oiwg+dT5jF76gMlNDW0icQxzalGmMWHrrOh8ozpIzscb6sa5zDEf0 1jLUrkumB5MkMRSTe4dZt742uaQWUYqzDPO96gMJV9AJqTNIuv5/HBXfgEfNFjLGlmO2 i2lwl8oP0PqZ/bRpQ6McKxtgIJHZp4ZfkAnqwNl1KD6fx0IpKg+0uyhVl7k6J/iAP5zW evTS1Xn49BX8lm0Qixwb2Gu27K00YkmfRsIVZ+kFBgjrth+ZMlRTx6CxqwsvRiAxBf42 A+Tw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from; bh=oyUfb2avyrhTfRJdXv881fF8WDESfaF1jYN12mgudf8=; b=x+L2QUzCUWRLnwpVfwezQgRSYoge2VeCGGx/cPIvllriArtNGhturXIR7A2SdM7Ag6 HxyxwDqN4B/1idFlGVS+Ncg2mCW4/Z+DGkBbo0N9Wm5EejDsWfsGVALcfsAt7wiK2Zxg mZBbSnH9oHntOuv7v3v3srs69iDM2pWAhspGQJCWzzmf4aXPbDab50KRsrrZpdOr5g8x sqQ5f5DQI5kFpovTMeBCiYfhJeqxLp1LGkd5Q7zhDbxc9EHi9UABUyyV3HIIwD6ipC/7 zQrYiKFlvCdJaHAJjeSQA7QOt/dhgX7loJjvLOBnGwGhrbSmvQuTeAdNmTP2FjIbJk76 vo2Q== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8-v6si2210331plk.39.2018.10.31.12.13.08; Wed, 31 Oct 2018 12:13:23 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726411AbeKAELw (ORCPT + 99 others); Thu, 1 Nov 2018 00:11:52 -0400 Received: from relay.sw.ru ([185.231.240.75]:47186 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725731AbeKAELw (ORCPT ); Thu, 1 Nov 2018 00:11:52 -0400 Received: from [172.16.24.21] by relay.sw.ru with esmtp (Exim 4.90_1) (envelope-from ) id 1gHvum-0006KG-12; Wed, 31 Oct 2018 22:12:28 +0300 From: Vasily Averin Subject: [PATCH 2/7] ext4: possible sbi->s_group_desc leak in ext4_fill_super To: linux-ext4@vger.kernel.org, Theodore Ts'o Cc: Andreas Dilger , linux-kernel@vger.kernel.org References: Message-ID: <4b554ca1-f46e-742e-4aaa-04b379baf5f9@virtuozzo.com> Date: Wed, 31 Oct 2018 22:12:27 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes bfe0a5f47ada ("ext4: add more mount time checks of the superblock") # 4.18 Signed-off-by: Vasily Averin --- fs/ext4/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index a221f1cdf704..ed4d36506ec2 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -4100,7 +4100,8 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) le32_to_cpu(es->s_inodes_count), ((u64)sbi->s_groups_count * sbi->s_inodes_per_group)); ret = -EINVAL; - goto failed_mount; + db_count = 0; + goto failed_mount2; } bgl_lock_init(sbi->s_blockgroup_lock); -- 2.17.1