Re: [PATCH] fsverity: support verifying data from large folios

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 27, 2023 at 02:15:29PM -0800, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@xxxxxxxxxx>
> 
> 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 <ebiggers@xxxxxxxxxx>
> ---
> 
> 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



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux