Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83D58BA3F for ; Fri, 3 Feb 2023 21:58:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BA6EC433EF; Fri, 3 Feb 2023 21:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675461517; bh=hRBqqqesfuLo7VBuv3Yssw6Ibjh21u+vuMqun3IcqIo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZOQ881oYCknWoHFHHEV4kTkV57TEobDmtpbaCP2WLMbaiU2bVNoJe0cZ8fX1p+qTR CkqvpZuIFx0xxUmkZTpE8EUZ8SZDeWoZpWPxacMebTAR2lcZU4sk8krJk++NQrm2T7 bvdRCCCEDR1sQ2YVQWE+at8DuQPNeDLGNtJteePkdqZMUUhInDqrXJ9cCIl0WSMt9I B21HeTPK1sKq40M2T+uFUhWgxJyDJ6eD6upbB5/hRhN8QZY7oFhTTQJFtkjs6jY64q HVC5JoTJ4gCTkmWUifUXpnIh1yf8cR6pjmPhX2Yhj6aijiLCFlDc2sUrT5Fl6r8UZp ZRFcPwfglAMlw== Date: Fri, 3 Feb 2023 13:58:35 -0800 From: Eric Biggers To: fsverity@lists.linux.dev Cc: linux-fsdevel@vger.kernel.org, Matthew Wilcox Subject: Re: [PATCH] fsverity: support verifying data from large folios Message-ID: References: <20230127221529.299560-1-ebiggers@kernel.org> Precedence: bulk X-Mailing-List: fsverity@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230127221529.299560-1-ebiggers@kernel.org> On Fri, Jan 27, 2023 at 02:15:29PM -0800, Eric Biggers wrote: > From: Eric Biggers > > Try to make fs/verity/verify.c aware of large folios. This includes > making fsverity_verify_bio() support the case where the bio contains > large folios, and adding a function fsverity_verify_folio() which is the > equivalent of fsverity_verify_page(). > > There's no way to actually test this with large folios yet, but I've > tested that this doesn't cause any regressions. > > Signed-off-by: Eric Biggers > --- > > This patch is targeting 6.3, and it applies to > https://git.kernel.org/pub/scm/fs/fsverity/linux.git/log/?h=for-next > Note: to avoid a cross-tree dependency, in fs/buffer.c I used > page_folio(bh->b_page) instead of bh->b_folio. > > Documentation/filesystems/fsverity.rst | 20 ++++++------ > fs/buffer.c | 3 +- > fs/verity/verify.c | 43 +++++++++++++------------- > include/linux/fsverity.h | 15 ++++++--- > 4 files changed, 44 insertions(+), 37 deletions(-) Applied to https://git.kernel.org/pub/scm/fs/fsverity/linux.git/log/?h=for-next - Eric