Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12884924rwl; Tue, 3 Jan 2023 23:39:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXvMRqJWcKNhXjm2h6otM6gSthsN0sDzfbMetZZmwWQxXGUzHVv97A+Z6XE/2cjEuZ5lF7Td X-Received: by 2002:a05:6402:d9:b0:48e:c83d:a935 with SMTP id i25-20020a05640200d900b0048ec83da935mr3945527edu.29.1672817994647; Tue, 03 Jan 2023 23:39:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672817994; cv=none; d=google.com; s=arc-20160816; b=pXv4Z75SNdQ+i6oVf4c2q9d6sVdKg0CQtzv+p9znqiZKvgUZsCEFOwux74Jg3VgtF2 9N7Sqpv6yNSeVQC68Sr5fUcGqVVP0Qn5zJ6Ter8LF1QwALlv5iVPulbyzjm8+lp+MS5f oOoib6jGOKj7qzfT8JF2gf0BWiZZlVeUs52AYhTtwvPfd5YnO/6N+KwpV7Z3a9OVtFZ6 beqbuFRq3jbmXcM7zkb05yQY/Pyf8zIwO9wDz8sMAVNQTW4FWztYyvC01yYVtORN/NjK 2BFQLinRMTOX12hUamV7YOnGds0jrlNh8jsPAsZfE28a/I1ZZBmLpYLLBOGnZvzJwsl9 vW1w== 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=cceV+AtJ9MtZMomS+IjwOz6z8srT60OwVpOFRGB8GZM=; b=Sb6fTvcnSVa+DBS2WU6j8CCqVPj63vmNMJlD/4H2eRmOQ/4OnSGbIq2yb81cma5Kwa 6QrK+sy6t5ywkV62HLGNWtI1VTF8v6nXxcGNL9RwRSQmt0efpkdwies4s9BG/s2xkafl j9ASJ8cWBxXHsHWaScLsE5Rj/BL1NE1Q73pUmUNMwBPgCf134ky4A26yM+WBlEEUhkrH 9E03LebtDphjQqTqHS8CIqwY9LiaQeXoQs4yB+WQ2j7t45uCLi8cpxXzfZtd1aG9Tiko 13Y+95jFA8220XiAt97x5aiDDBMogrZ1kL5gHk2+QiD8St6T7R6GS7r3KTbZ4IPcmp8a TIaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y8eevhPl; 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 fd16-20020a056402389000b0046ba3001425si27337434edb.60.2023.01.03.23.39.27; Tue, 03 Jan 2023 23:39:54 -0800 (PST) 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=Y8eevhPl; 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 S233257AbjADHZY (ORCPT + 99 others); Wed, 4 Jan 2023 02:25:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230387AbjADHZY (ORCPT ); Wed, 4 Jan 2023 02:25:24 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D022A44D; Tue, 3 Jan 2023 23:25:23 -0800 (PST) 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 B2E51B811A3; Wed, 4 Jan 2023 07:25:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AFCBC433D2; Wed, 4 Jan 2023 07:25:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672817120; bh=EY0QIS6ah2VRlLsuBHHzFqCxhBDp5eEMXYtwzaAjNBw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y8eevhPlbLQQByJxtZSN0ftIYXlnqoyA5BJUM6AP5KbL8Hdw0HMg2nuBQ5sdlamXc LExL2VFObRchVEVgRsCm15mnz4C6rXRbtTsMN2cr4b6oRiHMmmABbSNflU3EWaJhst 5J1PEpb3DqjERtGwRqlzrEMz3WeV19T0b43MtEWOjh9knfnp7tviL6qmTp7aHZSXLT IEN/P6uhszJ2K9eZEk+XPP3yijgHtnJlqNNbbV7wSwv2r5oqXKVzoj6Y3IR7JL9E+a vEiPUYFi+z+qSUbJ0/w3bVi8IcSNUBhhDXmmHc9rII8AQDlMi9JWlYLQi6CtdvuVhT N9g/5kMqBLp7w== Date: Tue, 3 Jan 2023 23:25:18 -0800 From: Eric Biggers To: Ojaswin Mujoo Cc: linux-fscrypt@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-btrfs@vger.kernel.org, linux-xfs@vger.kernel.org, Andrey Albershteyn Subject: Re: [PATCH v2 00/11] fsverity: support for non-4K pages Message-ID: References: <20221223203638.41293-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=-7.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, Jan 04, 2023 at 12:08:09PM +0530, Ojaswin Mujoo wrote: > Hi Eric, > > I have roughly gone through the series and run the (patched) xfstests on > this patchset on a powerpc machine with 64k pagesize and 64k,4k and 1k > merkle tree size on EXT4 and everything seems to work correctly. > > Just for records, test generic/692 takes a lot of time to complete with > 64k merkel tree size due to the calculations assuming it to be 4k, > however I was able to manually test that particular scenario. (I'll try > to send a patch to fix the fstest later). > > Anyways, feel free to add: > > Tested-by: Ojaswin Mujoo > > Since I was not very familiar with the fsverty codebase, I'll try to > take some more time to review the code and get back with any > comments/RVBs. > > Regards, > ojaswin Thanks Ojaswin! That's a good point about generic/692. The right fix for it is to make it use $FSV_BLOCK_SIZE instead of 4K in its calculations. I suppose you saw that issue by running the test on ext4 with fs_block_size == page_size == 64K, causing xfstests to use merkle_tree_block_size == 64K by default. Thanks for doing that; that's something I haven't been able to test yet. My focus has been on merkle_tree_block_size < page_size. merkle_tree_block_size > 4K should just work, though, assuming merkle_tree_block_size <= min(fs_block_size, page_size). (Or merkle_tree_block_size == fs_block_size == page_size before this patch series.) - Eric