Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2298779iof; Wed, 8 Jun 2022 01:49:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAybc+1tQibiH7P4VIhPcosEGVNNmQq/LURD6aMwfEz4mNmRMYTdqeZDATDszozUTTEsSW X-Received: by 2002:a17:90b:4b05:b0:1e4:2964:b261 with SMTP id lx5-20020a17090b4b0500b001e42964b261mr35671672pjb.205.1654678180045; Wed, 08 Jun 2022 01:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654678180; cv=none; d=google.com; s=arc-20160816; b=Q0tk/LSDo3im0lVSFSXYakz/KaiFIOzGXCBTYPbyBTAhyTVDrN59ymHYYUd6HLuD1F YAzlkNC21Cv6Y4NSCag1S51yIUMhCsFbNYGg4q5mkD+r79AfGsvWOejmR+S10XCA6T8l La0jKBgjuYYaX3gAb3gsdiyZnxh2nwQgkxqF4PJ6IVOwwEPGfK9g+zCXtXg20Ay5f7b6 vvFPsWd5enmH1BJDOLVzI1THCP68jCz3G6cFJVyHKbYJho5mSEUAIThwUtDSAM//xbvA b/bzhfkTcMX/C5P/GX/Ym8VNEwWHgsu3Rz62iKmcJZypAeLk5jNjXu8oRBoJPJ4j0/9P OCkA== 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=Zp1spaM3jNLMBkq+M6Lss1zvaCi9/Sj3qHA0Bf31Ar8=; b=oqRUkfSmVWgC78fJApKqUyc1wD5epWvk/YQHOddKjyCu6rL2kwQLvI70xhpkQCdrMY WmlNMbnvVCz169OwYt2XjaNreIN1tbEgMB93AyvkN4ymRTi+3fAwEm9/qA10RXL+2MOY KXcn8XijVgRCn4N32CwpY9iefmMcrLCRqXqHHCn/ygGY5YWrX0dQuZ5VCnByFc0S/2tx 09l0XwUoEIU0IEH/c3rWdi0wgxcHpzw0d0W+7fylXj44mV8nrvTPa8s75xLk46K4gSet eTYm8smLatK3d2WTvDIgTg30M9wXegnTLWIFePwlI6Gh+uDWEkV1uj0vIpsZtzIhZRAw 4pwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lF7ecVSE; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id rj8-20020a17090b3e8800b001e34f5e0399si11665790pjb.66.2022.06.08.01.49.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:49:40 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lF7ecVSE; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 E638038719D; Wed, 8 Jun 2022 01:12:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348037AbiFGRoE (ORCPT + 99 others); Tue, 7 Jun 2022 13:44:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347947AbiFGRbZ (ORCPT ); Tue, 7 Jun 2022 13:31:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D42E11CA22; Tue, 7 Jun 2022 10:28:53 -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 D779BB82285; Tue, 7 Jun 2022 17:28:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DA95C34115; Tue, 7 Jun 2022 17:28:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654622930; bh=DtHJIM0o0kZFOpi+gNqdluDzT/TvC0d1gsK1qWbUl+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lF7ecVSEAgOf80oJkXLHlGAEAtTfqymtGU1PCYq51C9awWda4RVbqwy6zRbOumUIN GB8anvEtnwkAbXIK7MjAB3PG1gS/KeLnWH8iE19yHGf3bQegWafapFlEtFMYQM69TG vaPY9bPpceYmazS41ZR6Ndd0vyBpFET7j+a9frWQ= 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.10 233/452] ext4: reject the commit option on ext2 filesystems Date: Tue, 7 Jun 2022 19:01:30 +0200 Message-Id: <20220607164915.505202877@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@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 3e26edeca8c7..35d990adefc6 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -1960,6 +1960,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