Post #3544824
2026-06-18 05:40 UTC
Replies (2)
-
@iblech@mathstodon.xyz 2026-07-02 16:41
A quick follow-up to this key wiping bug: Ondrej Kozina from the cryptsetup team was very quick to pick this up. Ondrej has developed a patch for cryptsetup which works around the kernel bug, which is scheduled to land in the upcoming 2.8.7 release: https://gitlab.com/cryptsetup/cryptsetup/-/merge_requests/937 Also, while reviewing my proposed kernel patch, Ondrej discovered a related issue in the loop block device system: https://lore.kernel.org/all/ea67ab0e-a039-460e-ab5b-a448995bbd31@redhat.com/ This means in particular that my one-line kernel patch is incomplete. It only covers the common case of having the encrypted volume on a physical block device rather than a virtual loop device. I really enjoyed these open-source interactions and am grateful for the work of Ondrej and all the others :-)
-
@iblech@mathstodon.xyz 2026-06-21 22:28
@nixos_org@chaos.social @leah@blahaj.social @identical9213@mastodon.social Announcing experimental secure suspend-to-RAM for NixOS Normally (and somewhat embarrassingly, considering that it's the 21st century), full-disk encryption gives you no protection while your laptop is suspended: the keys sit in memory, susceptible to cold boot attacks and other ways of exfiltrating your RAM. This project fixes this, by resurrecting an old kernel patch by Pali Rohár to wipe the LUKS encryption keys on suspend. Inspired by Debian's cryptsetup-suspend, but, thanks to the kernel patch, without the (harmless but) inconvenient race condition which sometimes blocks the laptop from going to sleep, and with a couple of extra precautions. Fully supports the root filesystem being encrypted. Integration test available. Enjoy; bug reports are welcome! Both the kernel patch and the userspace tooling around it could be adapted to other Linux distributions. https://codeberg.org/iblech/secure-suspend