Skip to content

encrypted swsusp image

Andreas Steinmetz lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 52 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3core functionalitykernel/power/swsusp.c+153 -1750 replies
2/3configurationkernel/power/Kconfig+11 -00 replies
3/3documentationDocumentation/power/swsusp.txt+7 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH encrypted swsusp 0/3] encrypted swsusp image

The following patches allow for encryption of the on-disk swsusp image to prevent data gathering of e.g. in-kernel keys or mlocked data after resume.

For this purpose the aes cipher must be compiled into the kernel as module load is not possible at resume time.

A random key is generated at suspend time, stored in the suspend header on disk and deleted from the header at resume time. If you don't resume a mkswap on the suspend partition will also delete the temporary key.

Only the data pages are encrypted as only these may contain sensitive data.

This works on my x86_64 laptop (64bit mode) and probably needs testing on other platforms.

Signature · 1 line
Andreas Steinmetz                       SPAMmers use [email protected]