Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754883AbdDFUMr (ORCPT ); Thu, 6 Apr 2017 16:12:47 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:33702 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752018AbdDFUMj (ORCPT ); Thu, 6 Apr 2017 16:12:39 -0400 MIME-Version: 1.0 In-Reply-To: References: <149142326734.5101.4596394505987813763.stgit@warthog.procyon.org.uk> <149142336965.5101.2946578135980499557.stgit@warthog.procyon.org.uk> <1491460792.1645.1.camel@suse.com> <14980.1491468060@warthog.procyon.org.uk> From: "Rafael J. Wysocki" Date: Thu, 6 Apr 2017 22:12:38 +0200 X-Google-Sender-Auth: Q6ViXx56e4PdYzoq-M4aOXP0Bbc Message-ID: Subject: Re: [PATCH 11/24] uswsusp: Disable when the kernel is locked down To: "Rafael J. Wysocki" Cc: David Howells , Oliver Neukum , Linux Kernel Mailing List , Matthew Garrett , linux-efi@vger.kernel.org, gnomes@lxorguk.ukuu.org.uk, Greg Kroah-Hartman , Linux PM , linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, matthew.garrett@nebula.com, Jiri Kosina Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 859 Lines: 25 On Thu, Apr 6, 2017 at 10:09 PM, Rafael J. Wysocki wrote: > On Thu, Apr 6, 2017 at 10:41 AM, David Howells wrote: >> Oliver Neukum wrote: >> >>> Your swap partition may be located on an NVDIMM or be encrypted. >> >> An NVDIMM should be considered the same as any other persistent storage. >> >> It may be encrypted, but where's the key stored, how easy is it to retrieve >> and does the swapout code know this? >> >>> Isn't this a bit overly drastic? >> >> Perhaps, but if it's on disk and it's not encrypted, then maybe not. > > Right. > > Swap encryption is not mandatory and I'm not sure how the hibernate > code can verify whether or not it is in use. BTW, SUSE has patches adding secure boot support to the hibernate code and Jiri promised me to post them last year even. :-) Thanks, Rafael