From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Subject: [PATCH 0/3] dm-crypt: Adds support for wiping key when doing suspend/hibernation Date: Sun, 5 Apr 2015 19:20:16 +0200 Message-ID: <1428254419-7334-1-git-send-email-pali.rohar@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Sender: linux-pm-owner@vger.kernel.org To: Alasdair Kergon , Mike Snitzer , Neil Brown , "Rafael J. Wysocki" , Len Brown , Pavel Machek Cc: dm-devel@redhat.com, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, =?UTF-8?q?Pali=20Roh=C3=A1r?= List-Id: linux-raid.ids This patch series increase security of suspend and hibernate actions. I= t allows user to safely wipe crypto keys before suspend and hibernate actions st= arts without race conditions on userspace process with heavy I/O. To automatically wipe cryto key for before hibernate action ca= ll: $ dmsetup message 0 key wipe_on_hibernation 1 To automatically wipe cryto key for before suspend action call= : $ dmsetup message 0 key wipe_on_suspend 1 (Value 0 after wipe_* string reverts original behaviour - to not wipe k= ey) Pali Roh=C3=A1r (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 | 109 ++++++++++++++++++++++++++++++++++++++= +++++--- 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, 120 insertions(+), 8 deletions(-) --=20 1.7.9.5