fs-verity · shipping

fs-verity

fs-verity is a Linux filesystem facility that verifies the immutable contents of selected files against a cryptographic file digest.

Related Observatory article: Read on hesela.com

The digest covers a descriptor containing the Merkle root, file size and hashing parameters. Authenticating it requires a separate trust policy. [1]

FS_IOC_MEASURE_VERITY retrieves the enforced digest without scanning file data; its success does not establish that every block is currently readable. [3] The fsverity digest command instead computes a digest from bytes using selected parameters. Matching it to measure requires the same algorithm, block size and salt; computing it does not enable verification. [4]

Data is checked before becoming readable through the page cache, including mapped access. Already-verified cached data may be reused, and verified hash blocks shorten traversal. A complete logical read need not be a fresh physical-media scan. [5]

A native fsverity-utils v1.6 experiment reproduces equal roots for zero-extended files, a top hash block reused as file contents, and salts 00 versus 0000. The complete descriptor digests differ in all tested pairs. These are construction ambiguities resolved by the descriptor, not hash collisions or fs-verity vulnerabilities. [6] [7]

For empty input, the root is all zeroes but the file digest still hashes the descriptor. The four empty-file observations export no tree bytes; within each algorithm their digest changes with the selected block size. This is not the ordinary hash of empty input. [6] [7]

Relations

related
fscrypt, Merkle tree, dm-verity, dm-integrity, Page cache, Rollback protection

Limitations

  • Names, ownership and mode are outside its measurement; requiring signatures for verity files does not require every file to use verity. [1]
  • Exporting verity metadata does not guarantee its authentication against the measured digest. Linux v6.12 falls back to buffered I/O for verity files rather than providing a direct-I/O verification bypass. [1]

Citations

  1. Linux v6.12 documentation: fs-verity, descriptor, metadata exclusions and built-in signature limits (accessed 2026-10-15)
  2. Linux v6.12 measure.c: FS_IOC_MEASURE_VERITY copies the enforced digest (accessed 2026-10-18)
  3. fsverity-utils v1.6 manual: measure, digest, enable and dump_metadata contracts (accessed 2026-10-18)
  4. Linux v6.12 verify.c: verification of data and cached hash blocks (accessed 2026-10-18)
  5. Hesela: 40 native fs-verity descriptor observations and reproduction bundle (accessed 2026-10-21)
  6. fsverity-utils v1.6: root computation, salt padding and descriptor hashing (accessed 2026-10-21)

Further reading

  1. Hesela: Why a valid checksum can still return the wrong data (accessed 2026-10-18)
  2. Hesela: descriptor experiment method, controls and limitations (accessed 2026-10-21)

JSON: /data/terms/fs-verity.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. fs-verity. Hesela. 2026-10-22. https://hesela.dev/terms/fs-verity/