Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp537868rwi; Wed, 2 Nov 2022 15:08:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5NIGIk/e2tbCqhs9QOsNEV4/W6p8gFU0PnCVMOQyNdoPxHgIsD0nzZDZW1nZDSPnd+b/pe X-Received: by 2002:a17:907:782:b0:740:7120:c6e7 with SMTP id xd2-20020a170907078200b007407120c6e7mr25560731ejb.313.1667426899721; Wed, 02 Nov 2022 15:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667426899; cv=none; d=google.com; s=arc-20160816; b=eQEe0MDAT4itZJDnKAX8KqIJMidKv1MW41hrabFNCvsawDp0yh19+F4ZEw+VdDYNoL JCS5Jxcj6BMTkWfX2Pyv4oSibadpJ+BZcYbfyJiXajFVSC9NMLOA9rOh9ABs/oD2Pcnr fnxcPB08woU1iw2Qk7OouTPSe6MQ9xwNU7oNhPshdyntxLWKwCubnDXvnOEfHsQhLOvc CCZ4y1Dlgy00+gNi4+uNx15ExvHEi9L3m0r7hWJui9o5u8RATXPza+XDHZ3PddeXrRes /HSNPPnJZlBVthlLxr+WDdrjCOFCgA1aTVXZTnOK19tQQstDWrhfRa+d6RWOhoLopKX/ TLyA== 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:dkim-signature; bh=bp95Ag1XszYB9D68BWJPiz83ZXZvEnNBMJ3XCIOPqk0=; b=P8bI8MgjMET7xraaJyCiVq3j6xSJaDNAhiNQ/ifWvFRANn4r4aO1jyLJgbzliA2Hl+ RgyZpEsnw5dsTeU8dTvNRndFkUwsCO01IK1lC9A5ziniXKmYetF0OGMM93vIQfyULxOz 4fJHwCyIumcQk7EDNAlLHHHVJanpgb2Kf4D5u7wubz7WVXseEqhb07CxlbjW5MvnNUNe 5a2cmLTP7rI7CxWEJ5TC9kP8ZULoDFr1Scwjju0qh6Awh2FoT8x//atzDppoBhWoyRM/ c1nDnLocKObSRiu24VbHhr6qxY9g1ZuKsNvCI0RzcS8rBS35HPw6TIHTDz3RnqE2/NmR /28Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QD8BMwRM; 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 y14-20020a056402270e00b004511d552be3si19213800edd.4.2022.11.02.15.07.41; Wed, 02 Nov 2022 15:08:19 -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=QD8BMwRM; 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 S230468AbiKBWHU (ORCPT + 99 others); Wed, 2 Nov 2022 18:07:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229681AbiKBWHT (ORCPT ); Wed, 2 Nov 2022 18:07:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FFF7A44F; Wed, 2 Nov 2022 15:07:18 -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 06DF061C4E; Wed, 2 Nov 2022 22:07:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A208C433C1; Wed, 2 Nov 2022 22:07:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667426837; bh=01juTMGfzuscVFYhZemJDxSax5NWxtO7tsiIbM5KTQI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QD8BMwRMfnGHqvKhNzuT1f9X44RTCkTQIkSm4+n5Y7XgzOHZHdqsldypj8IhNv9uo 0GJ6asSG66Wk2RKvSjjq07zDMeA7hdEvZ1H/zHe9ldWdkHPqLGG4Lx0HN/vVSWqDV0 79l0RrYzLcFMphbmP6VSddWALuJ7sJiQyS26wX31McASf67vyT6ZQvTgRDdtpCDGMI 7ApqYiM7hvu/YtB3m82/+ANNzPcLigXvg0yeDI+0r3HOvOhtdLLx3DYHQFvPkzUn+L VM6T9HMkXY++GdqLZLa5ZjYEQLmn4DUh1XTb9Ud5eJ7rRKZv+Z/ckmO8hd6am+/uaP Pug54Shs2Dz+g== Date: Wed, 2 Nov 2022 15:07:15 -0700 From: Eric Biggers To: Andreas Dilger Cc: linux-ext4@vger.kernel.org, linux-fscrypt@vger.kernel.org Subject: Re: [e2fsprogs PATCH] e2fsck: don't allow journal inode to have encrypt flag Message-ID: References: <20221102053554.190282-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-8.1 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 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 On Wed, Nov 02, 2022 at 02:55:05PM -0600, Andreas Dilger wrote: > On Nov 1, 2022, at 11:35 PM, Eric Biggers wrote: > > > > From: Eric Biggers > > > > Since the kernel is being fixed to consider journal inodes with the > > 'encrypt' flag set to be invalid, also update e2fsck accordingly. > > > > Signed-off-by: Eric Biggers > > --- > > e2fsck/journal.c | 3 ++- > > tests/f_badjour_encrypted/expect.1 | 30 +++++++++++++++++++++++++++++ > > tests/f_badjour_encrypted/expect.2 | 7 +++++++ > > tests/f_badjour_encrypted/image.gz | Bin 0 -> 2637 bytes > > Good to have a test case for this. > > In the past Ted has asked that new test cases are generated via mke2fs > and debugfs in "f_XXX/script" file rather than a binary image, if possible. I didn't realize the test suite supported this. Done in v2, thanks! - Eric