Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6153348iog; Thu, 23 Jun 2022 12:27:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1twkgKwVtxA3FFOAJCUqvCem8n+OgcUiRJS+WJMDdMnbIvhjIdDF1Q47sSYF7StowNv8+SP X-Received: by 2002:a05:6402:2752:b0:433:3a08:27b1 with SMTP id z18-20020a056402275200b004333a0827b1mr12694455edd.235.1656012455518; Thu, 23 Jun 2022 12:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656012455; cv=none; d=google.com; s=arc-20160816; b=HQK5vPqJk5WiqYj0mpDE2zy7Oe7q8wflZ+mdRlY87lQ+QLC/Oh9goevKjgwSCsO5tg YMJVau6cbcu/SNRxBITq2b/69NireYfARYWXQayUxWN0a8O3q96TXn5Fa0lakfQe4e1d gcwrv7KN15R9H7ouEMbxEstYTPQJNZs+XGiQD9/3voLftoG+FTf3fOHywCzYadrFdxou EyiqBXZFL6Yo5g4iEXXF0SGROqYNbrKd/bmPLCZxXrNZabS6Xx+E5MMmoVUU6Wpuk9qt bjqK4Zfmjmu26zR02rBz/8uUsdBXi4x2xKe6GVOFAOUMUNbzrKzL/gOKIaYrN+yTOLXI H3Eg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=8ScwKVdqRLSnQWJKmMBJYhZVoAIYVrtE12P27gCsVhA=; b=P/pYKdyka7LiJj40IJhM8sUiP0brMvsLs3AtUQzItbhTjpVi8r1vU5Shxe0uMasiOq Y9IWBqXCF1T1Y10i/COhcTQjrgXex+KY5dThIj/Erzzp9eezEUai13vSyOuT110a0STA mVmPzoXS8LHouKRR/YDyyHHstcGMw7AciOvtG1SQ4FKwm07jVqcVYYp/KJGQJQAoyjjk pkrMF8zEcofMeSvgM4y34hhmc728r12KQFQlWZhAxcaGnGQ1k4qojpAFo9IU/2M/I597 rN/zO7o7ZLqTv68uaY3Ayy/g8NBrQOu8cD++PgTeNhbCvQ3yhIgjMhp0lVg0fyRSMWIF sDfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VTJnq498; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020a05640235d300b004357514e6b7si436813edc.364.2022.06.23.12.27.10; Thu, 23 Jun 2022 12:27:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VTJnq498; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230322AbiFWT0o (ORCPT + 99 others); Thu, 23 Jun 2022 15:26:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230518AbiFWT0R (ORCPT ); Thu, 23 Jun 2022 15:26:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B0576809A; Thu, 23 Jun 2022 11:43:45 -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 dfw.source.kernel.org (Postfix) with ESMTPS id DCBBE6202D; Thu, 23 Jun 2022 18:43:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01E16C341C6; Thu, 23 Jun 2022 18:43:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656009824; bh=8JGe9eNXEurDtGUIOyQMri1/phHvJdA0fNLSfBzS7mg=; h=From:To:Cc:Subject:Date:From; b=VTJnq498YgKS82Dy0bbSmatOgnVDF5fX0zO6WkqQSxO7/cUtrNLUpUD3RYVr1HG+J hNgnkknImrSSx0uXv5u4q8wD0M3lMFo9z1qU63P0jME7UnfngZV7BFs7RkdADI9rQm yaYTneIIVB7GcYHU1ggRao+3v9HUJ74AKsGePil7zeQzeNZxTgwO8W0pEYsFBDMDxD ILgq52EVJbuSmwlwxkdLKtd13f+lPc2JTE3x3QWoyWeqPPwZPhcLd77OMyzACzSAdW mE3XkW3l8wn/cPzsnBfuik7KdC6d4v/vc3SqWveuKJaW+TxWJC/IKboN+Iwl90CZef DcjBfA35q7OQw== From: Eric Biggers To: fstests@vger.kernel.org Cc: linux-ext4@vger.kernel.org, linux-fscrypt@vger.kernel.org, Lukas Czerner Subject: [xfstests PATCH v2] ext4/053: test changing test_dummy_encryption on remount Date: Thu, 23 Jun 2022 11:41:13 -0700 Message-Id: <20220623184113.330183-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-ext4@vger.kernel.org From: Eric Biggers The test_dummy_encryption mount option isn't supposed to be settable or changeable via a remount, so add test cases for this. This is a regression test for a bug that was introduced in Linux v5.17 and fixed in v5.19-rc3 by commit 85456054e10b ("ext4: fix up test_dummy_encryption handling for new mount API"). Reviewed-by: Lukas Czerner Signed-off-by: Eric Biggers --- v2: added info about fixing commit, and added a Reviewed-by tag tests/ext4/053 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ext4/053 b/tests/ext4/053 index 23e553c5..555e474e 100755 --- a/tests/ext4/053 +++ b/tests/ext4/053 @@ -685,6 +685,9 @@ for fstype in ext2 ext3 ext4; do mnt test_dummy_encryption=v2 not_mnt test_dummy_encryption=bad not_mnt test_dummy_encryption= + # Can't be set or changed on remount. + mnt_then_not_remount defaults test_dummy_encryption + mnt_then_not_remount test_dummy_encryption=v1 test_dummy_encryption=v2 do_mkfs -O ^encrypt $SCRATCH_DEV ${SIZE}k fi not_mnt test_dummy_encryption base-commit: 0882b0913eae6fd6d2010323da1dde0ff96bf7d4 -- 2.36.1