Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp198004rwd; Fri, 19 May 2023 18:12:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5zGlElklWeCAPXIu0M0JPBgo/2oswWNjxiKOIB8Au0wuq8ymq+XJKyD58WQfuAuUpOR35B X-Received: by 2002:a05:6a00:130b:b0:64d:3e7f:7121 with SMTP id j11-20020a056a00130b00b0064d3e7f7121mr3373613pfu.22.1684545170625; Fri, 19 May 2023 18:12:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684545170; cv=none; d=google.com; s=arc-20160816; b=Ll3r4YJMTmwL0qSd4HSY9PF2mnpy+vnvD4Jz2kUOVgFJEyrz1xGCc8KQejItIXGBOf QtPv2TaKGbr2DpAlAj1bs6K/wz8k5WXKMow+AWjQLiN6NmEQLIWZUwjTD0++bhEPK1ke c/iw20z0jPXroStuXvXl6wVd7OHUGqMOc04vV9o+OZ6YbX2C2hLjL1MPyZjMZ4iYeFw4 FUIinA0kV935awGqpTCDAxvKkIrt93BQ0xqbnhvq40rnRPYoit+hpus2ueWmBuIPfLTM vy3QO9mfSDFdZWjEPKu4/ElIm6oLBNtux97ZTr3xgB5jbdn+HI0kp2pPl7BEECwq8KEq ALEA== 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=DCt2t4jVD1li3jCodaLm/uQO9gucusRmRwUXM51jgyY=; b=r1hY0CiuH1J+jXV9Y9N29WHfzk9OU2I5Dq0ITBa7ThhmJTahXg6aFmOxMFlLou7JD9 +JmbHogNCrASySnFQcSjSXe3OZAAMRa28CKkjhluSz5IP6OT0cNfwR1M0j/vprPmCw3N m8jw4jlqGrFvKC5EeOvy6asmQ6+ltr4lxpChdoVTW2Rb8DGNqmC2yTTIzzzxEHImwpae suL45MbsGjrgoxXI0TF8zMjZUW2EDTyQjg4KomV9ckUit6eK08RVcIUkk2nQWccHB6Iq DEn3ilTzn+dV/QPMj+pf4/HqTbetgDB07kjV+1h0SjhnRg7y6H7bvtsl06LI+3uYHGjZ gi7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NNIfKVKt; 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 q14-20020a638c4e000000b005347e036056si479629pgn.633.2023.05.19.18.12.31; Fri, 19 May 2023 18:12:50 -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=NNIfKVKt; 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 S230403AbjETBGn (ORCPT + 99 others); Fri, 19 May 2023 21:06:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjETBGm (ORCPT ); Fri, 19 May 2023 21:06:42 -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 AC824FA; Fri, 19 May 2023 18:06:41 -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 36450657F0; Sat, 20 May 2023 01:06:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C8FDC433D2; Sat, 20 May 2023 01:06:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684544800; bh=rso2Q4gXYI0YTNN43fHXcTzoQQl/M7xpKFkpD2wxPj0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NNIfKVKtYxOIsdU47u7w7tgGz1iKChFiTXI2RIwnMkRQjANq9mdQLXt7OK4GT4o7D RawRgAAazHT/HR+6IglKZd7ET8bvUT+CRKp3OxkyVSlNuS6E+l8Y2nEJ/rHaEOa7x6 N9lty5LoG/5xMiu0PafMA1k3HupB1p57Hbluht/iwQGEdyeIDoAPXQCqedY9dCqsmK DR61cdNk+wOSUwGQpCER/oSvB5e6ESMrSNGrrQgVIYsL8qbWfK7Wywp7tOpl4u34RE uAONlNNVnNEwtxnikgu1GJaiubsYDSsWIhxmb6YlJmnRXCaSr89npzMCSqQI1564iD l9n6l46KkDN5w== Date: Fri, 19 May 2023 18:06:38 -0700 From: Eric Biggers To: "Matthew Wilcox (Oracle)" Cc: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, Ojaswin Mujoo , Disha Goel , "Ritesh Harjani (IBM)" Subject: Re: [PATCH 6/5] ext4: Call fsverity_verify_folio() Message-ID: <20230520010638.GA836@sol.localdomain> References: <20230516192713.1070469-1-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230516192713.1070469-1-willy@infradead.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 On Tue, May 16, 2023 at 08:27:13PM +0100, Matthew Wilcox (Oracle) wrote: > Now that fsverity supports working on entire folios, call > fsverity_verify_folio() instead of fsverity_verify_page() > > Reported-by: Eric Biggers > Signed-off-by: Matthew Wilcox (Oracle) > --- > fs/ext4/readpage.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ext4/readpage.c b/fs/ext4/readpage.c > index 6f46823fba61..3e7d160f543f 100644 > --- a/fs/ext4/readpage.c > +++ b/fs/ext4/readpage.c > @@ -334,7 +334,7 @@ int ext4_mpage_readpages(struct inode *inode, > folio_size(folio)); > if (first_hole == 0) { > if (ext4_need_verity(inode, folio->index) && > - !fsverity_verify_page(&folio->page)) > + !fsverity_verify_folio(folio)) > goto set_error_page; > folio_mark_uptodate(folio); > folio_unlock(folio); > -- Reviewed-by: Eric Biggers (Though I must mention that doing weird things like "PATCH 6/5" makes life hard for scripts that operate on patch series...) - Eric