Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2194940iof; Tue, 7 Jun 2022 22:50:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhdcvScM0wd6lSAnqRIx300pAf1neFgV+us2bovf0IBaELJVms9CVSOVFzAq3VRLaVH6JB X-Received: by 2002:a17:90b:4d90:b0:1e8:951b:40c8 with SMTP id oj16-20020a17090b4d9000b001e8951b40c8mr11106336pjb.130.1654667430726; Tue, 07 Jun 2022 22:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667430; cv=none; d=google.com; s=arc-20160816; b=HYKfiLuvxs5U29LehgCT8CjKSzNoC9FOS3ysplAeUV23CMsJPni25wZ247R8WL7uwr ceLVOePTBzjEqMnPLrwZHdgDycp5jHguoBdqxil+lnQHNKBmMaVFLLbtLE3Gv1M5ShTq xWXA7zCqBnh/UtZUbbtB2W6iDDwJA/qAKZemT96XWkuaHPtX/MDtRAoOS58N4a2x4/LE aJnWTgj+P2sRXzccmdWfo0WIZ7EFCAwmrQGK4iHiKqU1oPZ2B2Mea7WYvoTUgbalbj65 YAD5VtA+KcjCG0m5e5syyz2UkyUuLGz1uk3iyubi+g1L/N4XBl6WSNOGJhgKmrl7DCEB tEAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=f5A2nMmo726TYJXqBXk3PbQBW3RfVPl9zQO9D4NLLkI=; b=kMmURSNptn5LmLiRzuh81TCctjy0mP92XuSJJRhCo6HFaCu6wnj8CAymcUdf+Zwg7J UmkyzDn5GSaorV1e9jqy3JvjhMlyVpG/E21q0NOsBFEPbvZ9SAbyrJLIEfsAQ2C4h3dr 0YTytOjxyto5i2IfR+VZ7Mdgs2By+wDRZ7aWR+nPqTc9ciQeK17ghkeNrEUp80MZE41Q KWGu89PJfonj5t5PwTVdf/gP6VqDRQ14rg7d29AxqdXtYUq9Z4e5r5v++lUJ+BsJ9RIL cxOnJXyUU0su4icAwinLSLhlFk9cxbR3yBmILEObtl6T0Yr3icnkHhTNauzA1mU5A5je Z6Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VGSA83ur; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q7-20020a056a00084700b0051c67ce537dsi1024096pfk.337.2022.06.07.22.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:50:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VGSA83ur; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0301C4A5D3E; Tue, 7 Jun 2022 22:17:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386277AbiFHApG (ORCPT + 99 others); Tue, 7 Jun 2022 20:45:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382039AbiFGVqK (ORCPT ); Tue, 7 Jun 2022 17:46:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AAFB23527D; Tue, 7 Jun 2022 12:07:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C2AD9B82182; Tue, 7 Jun 2022 19:07:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AF90C385A2; Tue, 7 Jun 2022 19:07:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628860; bh=QawVH5XJK4WTWh1gfW7u/zbDDesGoYCTL7NMv1kBu1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VGSA83ur1RUaD47cykhYEYnNwuAGvz/dtqhgcutak0SYt9nuodoqemhRWRvn9q8Up CsTpt9fKZpqTmE9sqhQ4bazTQFY5C83PkXRXFEtgsLtJy47elPTKWcTg4dROeO/yC0 +3uPxf1r37SJTTuiKTSuYwi6/cqYFzt5rFjb0aUU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Biggers , Ritesh Harjani , Lukas Czerner , Sasha Levin Subject: [PATCH 5.18 482/879] ext4: reject the commit option on ext2 filesystems Date: Tue, 7 Jun 2022 19:00:00 +0200 Message-Id: <20220607165016.865680072@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eric Biggers [ Upstream commit cb8435dc8ba33bcafa41cf2aa253794320a3b8df ] The 'commit' option is only applicable for ext3 and ext4 filesystems, and has never been accepted by the ext2 filesystem driver, so the ext4 driver shouldn't allow it on ext2 filesystems. This fixes a failure in xfstest ext4/053. Fixes: 8dc0aa8cf0f7 ("ext4: check incompatible mount options while mounting ext2/3") Signed-off-by: Eric Biggers Reviewed-by: Ritesh Harjani Reviewed-by: Lukas Czerner Link: https://lore.kernel.org/r/20220510183232.172615-1-ebiggers@kernel.org Signed-off-by: Sasha Levin --- fs/ext4/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 1466fbdbc8e3..f1987c0690a4 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -1913,6 +1913,7 @@ static const struct mount_opts { MOPT_EXT4_ONLY | MOPT_CLEAR}, {Opt_warn_on_error, EXT4_MOUNT_WARN_ON_ERROR, MOPT_SET}, {Opt_nowarn_on_error, EXT4_MOUNT_WARN_ON_ERROR, MOPT_CLEAR}, + {Opt_commit, 0, MOPT_NO_EXT2}, {Opt_nojournal_checksum, EXT4_MOUNT_JOURNAL_CHECKSUM, MOPT_EXT4_ONLY | MOPT_CLEAR}, {Opt_journal_checksum, EXT4_MOUNT_JOURNAL_CHECKSUM, -- 2.35.1