summaryrefslogtreecommitdiffstats
tag namefsverity-by-block_2024-04-09 (336fa3fa06e89ce888eed6fd162191b78d55750d)
tag date2024-04-09 17:17:02 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit f0eab2ef37...
downloadxfs-linux-fsverity-by-block_2024-04-09.tar.gz
fs-verity: support merkle tree access by blocks [v5.5 45/52]
I've split Andrey's fsverity patchset into two parts -- refactoring fsverity to support per-block (instead of per-page) access to merkle tree blocks, moving all filesystems to a per-superblock workqueue, and enhancing iomap to support validating readahead with fsverity data. This will hopefully address everything that Eric Biggers noted in his review of the v5 patchset. To eliminate the requirement of using a verified bitmap, I added to the fsverity_blockbuf object the ability to pass around verified bits so that the underlying implementation can remember if the fsverity common code actually validated a block. To support cleaning up stale/dead merkle trees and online repair, I've added a couple of patches to export enough of the merkle tree geometry to XFS so that it can erase remnants of previous attempts to enable verity. I've also augmented it to share with XFS the hash of a completely zeroed data block so that we can elide writing merkle leaves for sparse regions of a file. This might be useful for enabling fsverity on gold master disk images. This has been running on the djcloud for months with no problems. Enjoy! Signed-off-by: Darrick J. Wong <djwong@kernel.org> -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZhXafgAKCRBKO3ySh0YR puvfAP9Q65tpLSCoJratbQ85O5uRH1Hj3oC70fYaDkvlJUNZ3wEA3S+5ADrR26TX uFC3XIiOHpjmo+IBvTGIxT7gSJ9VQQY= =za8d -----END PGP SIGNATURE-----