Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1727622rwd; Tue, 16 May 2023 23:58:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6fUyWCUp1fIO+9i69VZA3jYOBTSP54OGNuweNfXqxYe3C5vaeMWb7oJytnEeelmVc77vUJ X-Received: by 2002:a05:6a00:168b:b0:63d:2d7d:b6f2 with SMTP id k11-20020a056a00168b00b0063d2d7db6f2mr51915913pfc.4.1684306681897; Tue, 16 May 2023 23:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684306681; cv=none; d=google.com; s=arc-20160816; b=r2IT/+ufeZcvW7FaNKyXYqMRt2FZ5tRB6Ceb82Q1u16BtOLbmxh7dFLKXXgYolauhj etp3fBnEAthtCmyaZpO1+27oupWorofT0JriHMRxZVXxsxmD0pL6nw5UVhAujQ4I3rIK MmjEtv8BXu4uEX1Gy/Ecv9HRvc9KztOQROefO4mgdiVhEQUbPYEkLS+Z4nBv+HEQ3MW7 8J3DCKcgEHXw5CpS6aZF2c6X3s8ZxVFUFyOh0GjBffFXYQrDpX96/il6Y0+okVc0yBWM QBUR2JYwUVheJEo/yMuCt+Uv0ZND+GqPHEetMVQouSQzgVHc0XS2RmEn0Nv0UuA5IfKE 4TYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:subject:cc:to:from:message-id:date :dkim-signature; bh=FPHixe8a57Z56CXMJx/dB4Z/ixMlZuaiWC2ESfIzmQk=; b=gsDNzC7+9VHZOoMDO5u2/BwbIIbR62bIrWazZvKgXjGS+NtV6k83Cene87UItJTMj5 n9bICLvw39qvrt0yRuU7YODsJEDaZxeEmqboCWYP2kQPjRGWQssmrZ/xMDLAOAzsCe7d Nq/vCLVNYvWnUHHEAAF+7MEyn58ADiJOHVwkq0bTJkwhaWKoCfI9Ua1QCyqYt6JXdPty eg/qJppKr5BepdfQxMNzViat9bVLdvDxaSDo2IwgRI6D2k38JQJOSh9PUFj123eP/5vT csBeOI1RzlOS/2RTO4eYpSNs09qtXFPzcEblePduFIyBOuX2uS/kao3ZOSq5qyWEmskX 6cPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=jhzcOM9Y; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b24-20020aa79518000000b006434a04f2fcsi21328461pfp.297.2023.05.16.23.57.43; Tue, 16 May 2023 23:58:01 -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=@gmail.com header.s=20221208 header.b=jhzcOM9Y; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229530AbjEQGq0 (ORCPT + 99 others); Wed, 17 May 2023 02:46:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjEQGq0 (ORCPT ); Wed, 17 May 2023 02:46:26 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78D5AE4; Tue, 16 May 2023 23:46:25 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-64395e741fcso334546b3a.2; Tue, 16 May 2023 23:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684305985; x=1686897985; h=in-reply-to:subject:cc:to:from:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=FPHixe8a57Z56CXMJx/dB4Z/ixMlZuaiWC2ESfIzmQk=; b=jhzcOM9YxiKVOkHZYC+sZS1l4fpdFpiYJ6tNLNMezIDPyuFPrZtw0nGgmik6GT4+1u +vDoSp/bfinXKa9fMObRs9UelvAewwK/+C5DMbywuMPbo8E8vgVxZSp+pDjT7C1SwPts 4MIii/J2t4FcJBsyeabZoZukhQnHcjFul9ViWCKo5mGMGekmZj2N/AEipZNBywf7lvLq HbdIgxWnDcL+1Fk818nAVRilqUSrR9ADMcAFxqIVV/l34oHeN0qsQVC2oOEPSRQbjvr9 suq5i9UeCwi/fD34QIgcbjLK1rcsr1wanL4FlMhskTSqaWgaMN4ZfLksCi89m4Qpzd32 atew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684305985; x=1686897985; h=in-reply-to:subject:cc:to:from:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=FPHixe8a57Z56CXMJx/dB4Z/ixMlZuaiWC2ESfIzmQk=; b=HFB+fWB9dkTcuREyXWxvcqu0yjdVU0wue29y4iGfFejN9qCxd5Vqul49wulldviZKY tMRF9psj7ro+JMPZJ1xribEX12DOWsps7TqairRWpB7vpAHim12DftB6Q/m/EXScSkuT kw1kyZJQzPL7BKQr5R61NrXw+KuGtpp0Tqsylxv1Be7kT5vwtEiQZGeY1itVphGiJykw 435VP0/jhgyFCjZmzDLDfe1X7dxpUivmRqji+o6uPvYBlgKT6GlRIWEtuToEiJFULGfd hUUhElVv17Mu8xSzv9gqg57TZnqrXypI2+t68hcCq1w4XUBCFdcfmjn8HaoDiWeCbYOZ 8YJA== X-Gm-Message-State: AC+VfDzyx47vLQ62m2OTWhUkIQmJb2+ZY3cpV2bE5QJ2Qz62jrWZU7Sb g37w0/wcVFPULGZsc2tiw+jkZj/Hmrs= X-Received: by 2002:a05:6a00:17a3:b0:636:f5f4:5308 with SMTP id s35-20020a056a0017a300b00636f5f45308mr55631513pfg.7.1684305984832; Tue, 16 May 2023 23:46:24 -0700 (PDT) Received: from rh-tp ([49.207.220.159]) by smtp.gmail.com with ESMTPSA id c19-20020aa781d3000000b0064ca1fa8442sm5155622pfn.178.2023.05.16.23.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 23:46:24 -0700 (PDT) Date: Wed, 17 May 2023 12:15:38 +0530 Message-Id: <878rdn5uct.fsf@doe.com> From: Ritesh Harjani (IBM) To: "Matthew Wilcox (Oracle)" , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, Ojaswin Mujoo , Disha Goel Cc: "Matthew Wilcox (Oracle)" , Eric Biggers Subject: Re: [PATCH 6/5] ext4: Call fsverity_verify_folio() In-Reply-To: <20230516192713.1070469-1-willy@infradead.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 "Matthew Wilcox (Oracle)" writes: > Now that fsverity supports working on entire folios, call > fsverity_verify_folio() instead of fsverity_verify_page() Thanks for catching it. > > Reported-by: Eric Biggers > Signed-off-by: Matthew Wilcox (Oracle) > --- > fs/ext4/readpage.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I agree that we could use fsverity_verify_folio() instead of fsverity_verify_page() here. Reviewed-by: Ritesh Harjani (IBM) > > 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); > -- > 2.39.2