From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758144AbbDWRCU (ORCPT ); Thu, 23 Apr 2015 13:02:20 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:36875 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750741AbbDWRCP (ORCPT ); Thu, 23 Apr 2015 13:02:15 -0400 Date: Thu, 23 Apr 2015 19:02:11 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Pavel Machek Cc: Mike Snitzer , Alasdair Kergon , Neil Brown , "Rafael J. Wysocki" , Len Brown , dm-devel@redhat.com, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 0/3] dm-crypt: Adds support for wiping key when doing suspend/hibernation Message-ID: <20150423170211.GI7646@pali> References: <1428254419-7334-1-git-send-email-pali.rohar@gmail.com> <20150406130045.GA18583@redhat.com> <201504061529.57299@pali> <20150409131208.GA9504@redhat.com> <20150409132836.GD12339@atrey.karlin.mff.cuni.cz> <20150409140842.GA9779@redhat.com> <20150409141633.GJ12339@atrey.karlin.mff.cuni.cz> <20150409142658.GA9839@redhat.com> <20150409143827.GK12339@atrey.karlin.mff.cuni.cz> <20150414065016.GB20597@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150414065016.GB20597@amd> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 14 April 2015 08:50:16 Pavel Machek wrote: > Hi! > > > > > > > So proper way is to wipe luks crypto keys *after* userspace processes > > > > > > are freezed. > > > > > > > > > > I know you believe that I'm just not accepting that at face value. > > > > > > > > If disks are synced before any DM suspend operation then we have higher > > > > chance of preventing data corruption. > > > > > > disks are already synced as part of the DM suspend operation! > > > > > > > Yes, but part of hibernate operation is also sync call. > > Yes. Maybe that was a mistake. > I think not. I do not see any reason why system should not sync disks... > > > > I still think that correct order is only: > > > > > > > > * freeze processes (which doing continous I/O) > > > > * fs & disk sync > > > > * DM suspend > > > > * wipe crypto keys > > > > * enter hibernate > > > > > > I just don't think that extreme is _required_ to have a hibernate/resume > > > that incorporates dm-crypt key wiping. > > > > Ok, and what other developers think? > > If someone can fix freezer to work with LUKS stopped, that would be a > good thing. Can you do it, Mike? Then we can look if it works well > enough for Pali. > Its not only LUKS devices. Its for all dm devices when are suspended. > But that might be too hard / impossible. And at that point, I think > Pali's patch is right thing to do. > Pavel Yes I think it is hard too... -- Pali Rohár pali.rohar@gmail.com