Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4681031ioa; Wed, 27 Apr 2022 08:51:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5baNVl8+/h+bAW61Aj1dhms5pMwZYt4FSnky7Iv9a3hQVoOUSiOl+ajAJhyEd23dkQOpO X-Received: by 2002:a63:5551:0:b0:3ab:84c3:1a0 with SMTP id f17-20020a635551000000b003ab84c301a0mr9001666pgm.604.1651074679819; Wed, 27 Apr 2022 08:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651074679; cv=none; d=google.com; s=arc-20160816; b=Hh6uCvc21f7KTny76wSRZJ3ISfHikne5CZB2ZKcXzxL+Ax9qXSmTsSq2/l7qOxwL4h zp9N3+gVPRUSA337+HSzgyUIMTWD63ekH7Oc3bmat3MLtO4VVMmkoUrW1SXGHiRMMQQr OrSbcUIbV9sWoxn464wMmDuHG/WbtxDkZxfDMv2I3AoHOn4hEqN/Qp3fV8SPFlwWXxSm U96u0CaJl6E+ZEioSEe3kAEcdUPF6shvU4wGh8i5xC3IAohmIjX5FLIJCaaMldD2PRTx 9eMnv1Xb0Qk8GvLnc7WGpMe88Xw8379NrtF5XrZVwTYCBr9HhyjLvc9H0D8tR9H21KhJ wTLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=46B51yT/4t66tJm7Ok9eNCV5G2VQQY64zIIKiuCFOUs=; b=xATZQ8DLufW+3XT1mMTxDgfYq7VzGJsZQkBM2FRQHPYoQNl5ni8hrsaGGh56AARpwA VchR+ApD2oVSybU6CcHErg7DUjKP2BsjoTHchV5fSsANLaD0j4b1jbamGWB9G6x1cDZa sYUAh1e7pZXArnlxhwyGeI3f+rTP07ovh+5g+TaSrQbx3o5kujvjrvtZgXOcYNRFpu51 wqFer7zACKTaA0LV+XzIU51ZoutyNddX+4Yt8hOnDgZiiKPpeNbQQzcFcMVckk6NAGQI m/4aOv9ip3qoFHaGlmXm4/7QxkZcVhFFEXgvDPOwEMkBqfbwgotiutroxmuFqug8L9T6 cD4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 19-20020a170902ee5300b0015d3daeb0d2si1809993plo.152.2022.04.27.08.51.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 08:51:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9C0A530D870; Wed, 27 Apr 2022 08:24:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239626AbiD0P17 (ORCPT + 99 others); Wed, 27 Apr 2022 11:27:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239573AbiD0P16 (ORCPT ); Wed, 27 Apr 2022 11:27:58 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A3F330D49D; Wed, 27 Apr 2022 08:24:46 -0700 (PDT) Received: from cwcc.thunk.org (pool-108-7-220-252.bstnma.fios.verizon.net [108.7.220.252]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 23RFOXp5006539 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Apr 2022 11:24:34 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 968B715C3EA1; Wed, 27 Apr 2022 11:24:33 -0400 (EDT) Date: Wed, 27 Apr 2022 11:24:33 -0400 From: "Theodore Ts'o" To: Eric Biggers Cc: linux-ext4@vger.kernel.org, linux-fscrypt@vger.kernel.org, fstests@vger.kernel.org Subject: Re: [PATCH] ext4: make test_dummy_encryption require the encrypt feature Message-ID: References: <20220421184040.173802-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220421184040.173802-1-ebiggers@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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 On Thu, Apr 21, 2022 at 11:40:40AM -0700, Eric Biggers wrote: > From: Eric Biggers > > Make the test_dummy_encryption mount option require that the encrypt > feature flag be already enabled on the filesystem, rather than > automatically enabling it. Practically, this means that "-O encrypt" > will need to be included in MKFS_OPTIONS when running xfstests with the > test_dummy_encryption mount option. > > The motivation for this is that: > > - Having the filesystem auto-enable feature flags is problematic, as it > bypasses the usual sanity checks. The specific issue which came up > recently is that in kernel versions where ext4 supports casefold but > not encrypt+casefold (v5.1 through v5.10), the kernel will happily add > the encrypt flag to a filesystem that has the casefold flag, making it > unmountable -- but only for subsequent mounts, not the initial one. > This confused the casefold support detection in xfstests, causing > generic/556 to fail rather than be skipped. > > - The xfstests-bld test runners (kvm-xfstests et al.) already use the > required mkfs flag, so they will not be affected by this change. Only > users of test_dummy_encryption alone will be affected. But, this > option has always been for testing only, so it should be fine to > require that the few users of this option update their test scripts. One of the test scripts involved is xfstests's ext4/053, as the zero-day test rebot has remarked upon. Eric, could you look into submitting a patch to xfstests's ext4/053. Thanks! - Ted