Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp408711imm; Thu, 13 Sep 2018 01:41:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaHAYEdjfMN1FQz7VuOvWazQAYyO6VmbdxNgC5OFinIOI6XFqPsAMoCDo8DjaTG6wFFvzkD X-Received: by 2002:a62:401:: with SMTP id 1-v6mr6324874pfe.28.1536828092897; Thu, 13 Sep 2018 01:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536828092; cv=none; d=google.com; s=arc-20160816; b=vCMTkJWn5Cssj7jK6qhX8xfIb73VsUQx2+0RTqVUmF/5zeFdi/SLLySJuRv9kqRtiU aLh3v/R95RrDOIpsKtHHcOTt+sFssbtVsSWvdhxgqMQv0gf/mwMvDKoCxH/UdWYY2wzZ MRWk54j4BKOWvXv+emQOC1GSqhUQyY11kbHifCbmgPZUXjnpThI+xYMEHhnxapIvQuDZ QI3tyvwxKiW8dwxEGsToNZIl+884qr1NKl9dVKkTZUvHPLm4SbEe9gXST6RlOBrtV+q2 5491VoVaP/7Bz1urIz/5OvD/tHiKJqbUe1qsYekkvYJZ5bsIlhGOlvGFCsmyy2I9boWm ogcw== 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=liTSYkJRvc6W+c4Lzt9j6zjPIwMrw9SMJGMCpmDoCQk=; b=mZW7ZALIOnsBGWCkRSW56EXYtrIkL6gW04RLPeN/8LXbRHmYvOrafOFb/cEti6/JcK PVt6BIHPqow26BV8zaZ04L0q+QU9+vJkck9d2sht/e+TR7wcV8g/ijI1D8/6CXX7vDoX Rlkf5Og83q1qajWzCwIQQHvd6eaAtdke6uWvhoU+qjJ7ohXn2suXrzrWJPVnOhn5TzDK uMlN5M/2MRDQbrIesaBCgjuWBwX7jScMW1pUxBSEY/F8YWeZaqkoyam8qn14SQTZnGYg ASGDx/QYRkUJxbNqbXPrRWlGjd2QNV37kMJQrblo/1ORr1kUB9aQhuo2jWd3sbU8dxwH saZw== 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 o18-v6si3729476pfa.15.2018.09.13.01.41.18; Thu, 13 Sep 2018 01:41:32 -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 S1727885AbeIMNsB (ORCPT + 99 others); Thu, 13 Sep 2018 09:48:01 -0400 Received: from smtp.nue.novell.com ([195.135.221.5]:53881 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726308AbeIMNsB (ORCPT ); Thu, 13 Sep 2018 09:48:01 -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:39:27 +0200 Date: Thu, 13 Sep 2018 16:39:16 +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 1/5] PM / hibernate: Create snapshot keys handler Message-ID: <20180913083916.GE3593@linux-l9pv.suse> References: <20180912142337.21955-1-jlee@suse.com> <20180912142337.21955-2-jlee@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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:27:27AM -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 3a6c2f87699e..7c5c30149dbc 100644 > > --- a/kernel/power/Kconfig > > +++ b/kernel/power/Kconfig > > @@ -76,6 +76,20 @@ config HIBERNATION > > > > For more information take a look at . > > > > +config HIBERNATION_ENC_AUTH > > + bool "Hibernation encryption and authentication" > > + depends on HIBERNATION > > + depends on TRUSTED_KEYS > > + select CRYPTO_AES > > + select CRYPTO_HMAC > > + select CRYPTO_SHA512 > > + help > > + This option will encrypt and authenticate the memory snapshot image > > + of hibernation. It prevents that the snapshot image be arbitrary > > arbitrarily > > > + modified. User can use TPMs trusted key or user defined key as the > > The user > or A user can use the TPM's trusted key > Thanks for your review! I will update it in next version. Joey Lee