Re: [PATCH] PM: hibernate: Allow hibernation opt-in when locked down
From: Nicolas Bouchinet <nicolas.bouchinet@oss.cyber.gouv.fr>
Date: 2026-07-10 13:09:52
Also in:
linux-doc, linux-pm, lkml
On Thu, Jul 09, 2026 at 04:33:38PM -0400, Sean Rhodes wrote:
Please ignore this patch; the approach was wrong. I'll follow up with a v2. On Thu, 9 Jul 2026 12:23:11 -0700, Sean Rhodes [off-list ref] wrote:quoted
Kernel lockdown disables hibernation because the resume image cannot be verified before it is restored. On systems where external platform or storage policy protects the hibernation image from offline modification, users may still need hibernation while lockdown is active. Add a hibernate=allow_locked_down command line option to make that opt-in explicit. This only bypasses the LOCKDOWN_HIBERNATION gate; nohibernate, secretmem and CXL memory restrictions still apply. The kernel does not validate the external policy or authenticate the image with this option. Build-tested with Fedora config: make O=../linux-lockdown-hibernate-build kernel/power/hibernate.o
Hi Sean, thanks for your contribution. While I understand the frustration of Lockdown disabling hibernation, it really is necessary in order to protect against the root user which is in Lockdown's threat model. Similar discussions already happened in this patch set [1]. About Lockdown hibernation support, some work have started some time ago by Matthew, it blog post [2] describe really well the security issue of hibernation. This has then lead to a first implementation [3] that has been recently bumped [4] but sadly no news have been given since. Some interesting discussion also happened recently about this subject on mastodon [5]. If a solution have to be implemented, it definitively should take a different approach than just disabling Lockdown. If your interested by working on the original patch, I'd gladly review it. [1]: https://lore.kernel.org/all/20250728111517.134116-1-nik.borisov@suse.com/ (local) [2]: https://mjg59.dreamwidth.org/55845.html [3]: https://lore.kernel.org/lkml/20210220013255.1083202-1-matthewgarrett@google.com/ (local) [4]: https://lore.kernel.org/all/IA1PR14MB62243E515C24AE8BF40E36BCB14BA@IA1PR14MB6224.namprd14.prod.outlook.com/ (local) [5]: https://nondeterministic.computer/@mjg59/115491928573781876. Best regards, Nicolas