memfd_secret() in 5.14
memfd_secret() in 5.14
Posted Aug 7, 2021 8:40 UTC (Sat) by khim (subscriber, #9252)In reply to: memfd_secret() in 5.14 by mb
Parent article: memfd_secret() in 5.14
Usually it's encrypted with the key which can be found in kernel memory somewhere and if we are protecting app from the kernel then it's assumed that whole kernel-visible memory is readable to the attacker.
It's probably possible to create a different hibernation scheme where some entity external to the kernel copies the whole RAM to disk and encrypts everything, but that wouldn't be usual hibernation module anyway and it wouldn't be affected by kernel options at all.
