Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp405747imm; Thu, 13 Sep 2018 01:37:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYwYg3HCA4K48Ips7gk+bSYxkiOmqcKuOVgJwv37s2u1Cz7sJSWChbHTreiDFftGsiCZBkg X-Received: by 2002:a63:5845:: with SMTP id i5-v6mr6084931pgm.272.1536827875961; Thu, 13 Sep 2018 01:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536827875; cv=none; d=google.com; s=arc-20160816; b=lHZFh2MkHPEEPip4HTaCTzTxBM/Zcpk/RXC2BbJb6LyYtO0Vadh/mbpXSb0fkpNG2Z A6KDJHZDthg0wz2twWTyT6bLa6OFFEOyg9Hbg/NRFeN/9YyJAzHFsY81CshxjbBIbFt9 2ubHStTEJnAz/cTbSRku4CCK6uiOqrLOKO7z1cikmhZf6CO1SIEeSMVSyKJ8eqpTvIPa SDvOI+ayVyqcXQVVRTfKizwlQW85EzQOpHfOYQSQczOPWLOS0rxOEWEyvDn/rJXLZpFM YSw2CRDvc8mjg8EVY1HKylmtFp2NWkZWxFfpjogcjQvK3t++evRH6PnANlyoRllU7iB3 vrNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=EGG9Chk/nJqy3nhsk4ZITgc+YhrVXo5esCIsPphlMFU=; b=UUR3ZyGqb3m5bRaj4JVRBzkCg8uISPv3UyA/NOkSFgYqljzqmDZtx+mrs8VyzVUaBO tNqBpuSBd25M+z6MfCd3tfVbvjwunmsRRhJpd9CDyjkpXvcdg88We2Y8RO6iKqFbDh0c +sVwF0sTuozghooNzlNQwKQaVWQWVdeobilrQ7HhWclncgqg3OqiXgODAA3zzU1zfvph nVBAw/sAgctqfx+3uhPZ5QFhRBAwoGEoMgQc2IwjWnxGygAy40bpVLbaKNmwr+K5CtDP a8ID0RqhsdR8bDZKdSGCWJDTL0nBHZT0k7rBV4ciZPWL+VIC1x0HVVXRl3FanizsxCSR Gu6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k20-v6si3715199pgg.7.2018.09.13.01.37.41; Thu, 13 Sep 2018 01:37:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727841AbeIMNpx (ORCPT + 99 others); Thu, 13 Sep 2018 09:45:53 -0400 Received: from smtp.nue.novell.com ([195.135.221.5]:58527 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726932AbeIMNpx (ORCPT ); Thu, 13 Sep 2018 09:45:53 -0400 Received: from linux-l9pv.suse (unknown.telstraglobal.net [134.159.103.118]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Thu, 13 Sep 2018 10:37:20 +0200 Date: Thu, 13 Sep 2018 16:37:09 +0800 From: joeyli To: Randy Dunlap Cc: "Lee, Chun-Yi" , "Rafael J . Wysocki" , Pavel Machek , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Chen Yu , Oliver Neukum , Ryan Chen , David Howells , Giovanni Gherdovich Subject: Re: [PATCH 5/5] PM / hibernate: An option to request that snapshot image must be authenticated Message-ID: <20180913083709.GD3593@linux-l9pv.suse> References: <20180912142337.21955-1-jlee@suse.com> <20180912142337.21955-6-jlee@suse.com> <0ee402c0-bd0e-ea84-9def-f6355b83b4f5@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0ee402c0-bd0e-ea84-9def-f6355b83b4f5@infradead.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy, On Wed, Sep 12, 2018 at 09:24:38AM -0700, Randy Dunlap wrote: > Hi, > > On 9/12/18 7:23 AM, Lee, Chun-Yi wrote: > > diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig > > index 7c5c30149dbc..3c998fd6dc4c 100644 > > --- a/kernel/power/Kconfig > > +++ b/kernel/power/Kconfig > > @@ -90,6 +90,17 @@ config HIBERNATION_ENC_AUTH > > master key of hibernation. The TPM trusted key depends on TPM. The > > security of user defined key relies on user space. > > > > +config HIBERNATION_ENC_AUTH_FORCE > > + bool "Require hibernate snapshot image to be validly signed" > > + depends on HIBERNATION_ENC_AUTH > > + help > > + This option will prevent that a snapshot image without (valid) > > + signature be restored. Without this option, a unauthenticated > > an > > > + snapshot image can be restored but the restored kernel will be > > + tainted. Which also means that the hibernation can be triggered > > s/Which/This/ > > or like this: > tainted, which also > Thanks for your review and suggestion! I will update the description in next version. Regards Joey Lee