dm-integrity recovery mode
dm-integrity recovery mode is a Linux device-mapper access mode that bypasses integrity checks and journal replay while disallowing writes through the mapping.
Linux v6.12 documents this mode for recovery when ordinary activation fails; obtaining bytes does not authenticate them. [1] The v6.12 sync_rw_sb implementation also skips superblock MAC checking in this mode. [2] Because the journal is not replayed, writes held only in journal sections are not applied; each section begins with a 4 KiB metadata area, and each journal data sector keeps 504 bytes of data while its last 8 bytes sit in the journal entry. It is distinct from normal verified read-only access and from recalculation, which generates replacement tags. [1]
Relations
Advantages
- Data can still be read from a device whose tags or journal would otherwise prevent activation. [1]
Limitations
- The mode reads data as stored and does not repair content or regenerate tags. [1]
Citations
- Linux v6.12 documentation: dm-integrity, integrity-tag ownership and journal/direct modes
- Linux v6.12 dm-integrity.c: dm_integrity_disable_recalculate and sync_rw_sb
Further reading
Sources & caveats
- dm-integrity-source is the Linux v6.12 dm-integrity documentation, re-read 2026-10-23 for the R mode text and the journal section layout.
- The freshness and write-blocking caveats follow a companion analysis of integrity recovery, kept as a listed citation.
- The btrfs-read-only-subvolume entry links here because both are read-only scopes, and recovery mode additionally skips verification for the whole mapping.