dm-verity

3 posts tagged dm-verity, newest first.

Tagged dm-verity

3 posts
23 Sep 2026
9 min

dm-verity on a signed rootfs, and two console messages that were simply untrue

You cannot put a filesystem's hash inside that filesystem. Two U-Boot messages that were lies — “press any key to stop autoboot” when no key worked, and quotes vanishing from the kernel command line. Four attempts, three instructive failures, and a hardware SHA engine I did not know I was using.

dm-verityembeddedlinuxsecure-bootstm32mp1u-boot
23 Sep 2026
5 min

Breaking dm-verity on purpose: one bit in 52 MB, and the board refuses

The negative test that proves the chain is real: flip a single bit in a 52 MB root filesystem, get `data block 0 is corrupted`, and watch the board refuse. Why you cannot sabotage your own firmware the two obvious ways.

dm-verityembeddedlinuxsecure-bootstm32mp1testing
23 Sep 2026
6 min

Moving the kernel out of the rootfs, and feeding the bootloader garbage

The hash of a filesystem cannot live inside it, so the kernel had to move somewhere signed. Then the two-command test: hand the bootloader rubbish and watch the kernel ignore it entirely. What that cost, and where the chain now ends.

dm-verityembeddedlinuxsecure-bootstm32mp1u-boot