linux/fs/verity
Eric Biggers a300000233 fsverity: add dependency on 64K or smaller pages
Currently, all filesystems that support fsverity (ext4, f2fs, and btrfs)
cache the Merkle tree in the pagecache at a 64K aligned offset after the
end of the file data.  This offset needs to be a multiple of the page
size, which is guaranteed only when the page size is 64K or smaller.

64K was chosen to be the "largest reasonable page size".  But it isn't
the largest *possible* page size: the hexagon and powerpc ports of Linux
support 256K pages, though that configuration is rarely used.

For now, just disable support for FS_VERITY in these odd configurations
to ensure it isn't used in cases where it would have incorrect behavior.

Fixes: 671e67b47e ("fs-verity: add Kconfig and the helper functions for hashing")
Reported-by: Christoph Hellwig <hch@lst.de>
Closes: https://lore.kernel.org/r/20260119063349.GA643@lst.de
Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Link: https://lore.kernel.org/r/20260221204525.30426-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
2026-03-02 21:05:34 -08:00
..
enable.c vfs-7.0-rc1.misc.2 2026-02-16 13:00:36 -08:00
fsverity_private.h vfs-7.0-rc1.misc.2 2026-02-16 13:00:36 -08:00
hash_algs.c fsverity: Remove inode parameter from fsverity_hash_block() 2025-09-17 13:09:40 -05:00
init.c fsverity: add tracepoints 2026-01-29 16:00:57 +01:00
Kconfig fsverity: add dependency on 64K or smaller pages 2026-03-02 21:05:34 -08:00
Makefile fsverity: start consolidating pagecache code 2026-01-29 09:39:41 -08:00
measure.c bpf: Remove redundant KF_TRUSTED_ARGS flag from all kfuncs 2026-01-02 12:04:28 -08:00
open.c fsverity: use a hashtable to find the fsverity_info 2026-02-04 11:31:54 -08:00
pagecache.c fsverity: kick off hash readahead at data I/O submission time 2026-02-02 17:15:26 -08:00
read_metadata.c fsverity: kick off hash readahead at data I/O submission time 2026-02-02 17:15:26 -08:00
signature.c fsverity: expose verified fsverity built-in signatures to LSMs 2024-08-20 14:03:18 -04:00
verify.c fsverity fixes for v7.0-rc1 2026-02-22 13:12:04 -08:00