Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754034AbbFULVc (ORCPT ); Sun, 21 Jun 2015 07:21:32 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:36629 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699AbbFULVZ (ORCPT ); Sun, 21 Jun 2015 07:21:25 -0400 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= 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?= Subject: [PATCH v2 0/3] dm-crypt: Adds support for wiping key when doing suspend/hibernation Date: Sun, 21 Jun 2015 13:20:31 +0200 Message-Id: <1434885634-19895-1-git-send-email-pali.rohar@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1428254419-7334-1-git-send-email-pali.rohar@gmail.com> References: <1428254419-7334-1-git-send-email-pali.rohar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1185 Lines: 31 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 before hibernate action call: $ dmsetup message 0 key wipe_on_hibernation To automatically wipe cryto key for before suspend action call: $ dmsetup message 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(-) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/