Skip to content

dm-crypt: Adds support for wiping key when doing suspend/hibernation

Pali Rohár dm-devel linux-pm linux-raid lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 18 repliesIn review
  2. v13 patches 25 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PM suspend/hibernate: Call notifier after freezing processesinclude/linux/suspend.h kernel/power/hibernate.c kernel/power/suspend.c+7 -19 replies
2/3dm: Export function dm_suspend_md()drivers/md/dm.c drivers/md/dm.h+11 -06 replies
3/3dm-crypt: Adds support for wiping key when doing suspend/hibernationdrivers/md/dm-crypt.c+118 -82 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] dm-crypt: Adds support for wiping key when doing suspend/hibernation

This patch series increase security of suspend and hibernate actions. It allows user to safely wipe crypto keys before suspend and hibernate actions starts without race conditions on userspace process with heavy I/O.

To automatically wipe cryto key for <device> before hibernate action call:

$ dmsetup message <device> 0 key wipe_on_hibernation

To automatically wipe cryto key for <device> before suspend action call:

$ dmsetup message <device> 0 key wipe_on_suspend

To disable automatic wipe call retain_on_suspend/retain_on_hibernation.

Pali Rohár (3):
PM suspend/hibernate: Call notifier after freezing processes
dm: Export function dm_suspend_md()
dm-crypt: Adds support for wiping key when doing suspend/hibernation

 drivers/md/dm-crypt.c    |  126 +++++++++++++++++++++++++++++++++++++++++++---
 drivers/md/dm.c          |    6 +++
 drivers/md/dm.h          |    5 ++
 include/linux/suspend.h  |    2 +
 kernel/power/hibernate.c |    2 +
 kernel/power/suspend.c   |    4 +-
 6 files changed, 136 insertions(+), 9 deletions(-)
Signature · 4 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in