Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5681226imm; Wed, 12 Sep 2018 09:28:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaOeUB+/J+kLjVZ6u/a/QBLwoq7dPEfDEs0MG7fEi8gE0xX8kH3oGFtEgPZIqiZTKrEFTSC X-Received: by 2002:a63:f849:: with SMTP id v9-v6mr3189350pgj.71.1536769723368; Wed, 12 Sep 2018 09:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536769723; cv=none; d=google.com; s=arc-20160816; b=PCUC5P6DgwOrfCSKFUtr0JiVOLXD6UHY+IGV+5GMrKW9T0E//iRZnuFhVeb+vx8bnE n1BsVPRweAGM2pSudXUpASEcsAagvcbekXtZLDiuWY/oiHWr+K4mdEXsjg5RwzarRboJ tLNx2q7YoGb+cVf5pl6dQ6V0dZyCFrjIqD9XntACpo/Q7GDbGUDIsF00CFGNEHb7dC2z e02PwE23+IbW3URA+ubG5y1k55yQuAhCI/lX2zz/CXGr6vK4HCsSGYokvQbAohX1KBSg 2xWG+h1FyW7CC99cUL5xWHQUyrBLulZvJC3odNwRL2/4l+AKdYw6n12jyAKspaEhpI1b VzKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=TeOwPBlB5LDZYvE6pmp/IrHRyLIL3dfdD8wBK7H4DpY=; b=SYynteRshoBolI7OqQqy5F92Lm0m01BubWxDcatfM1L1RJETAVIwAup5ALmt1+9qU8 Zkra913BiOkgjiJcTNSJP554aDPcKZrcXZV4q4Cg+1Q81U2PZlb5A911XaUiMjuZQ4NX 2x7pLV3I81j+Jr+vANL4PAA6evmF/JWCdZKl63qkHeBSKx4mCjLrcG7XJYaOCHmLvT/P US4Z/bHLWppcSDCKf5he27eSGa2Of+m4USW+trhxj4tMsaXDXO+5SYHvkcVR+sEFWU0N xLG+lwufjBt/aMED6bXSZzW1AInzZp3VFB+SMz/3wS56WHGh5BkVhg76SDLDG2sBnFgD jvnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=AdJ4RiuZ; 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 l3-v6si1298768pld.501.2018.09.12.09.27.49; Wed, 12 Sep 2018 09:28:43 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=AdJ4RiuZ; 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 S1727839AbeILVcz (ORCPT + 99 others); Wed, 12 Sep 2018 17:32:55 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58490 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726879AbeILVcz (ORCPT ); Wed, 12 Sep 2018 17:32:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=TeOwPBlB5LDZYvE6pmp/IrHRyLIL3dfdD8wBK7H4DpY=; b=AdJ4RiuZ1lm3gOdtMpyGiTFN6 M+GYLqF2SD+41Ht5bbYLIsJP06S85jDHkzxwAMNqa5b2yl5zmCuxfIbEI4AQcsKNOULbdhFDUg19Z w58ADm/7X1ibXDJAVicFWm7V/jX39lj2qhVeVFMvQ5Tggw0CJmtOnnJeBTuxBekvfqEmtVO0usSdd MQXy8U1R5rA5Bv4eYFGsbhiXpAuqiAFxWMLwJCavu1cuzC6Oba6RysQ7ki0vz5BR6kHEoL3YNFACM McM1bG01XD5nOoX2vwwb112NCtR/OIFC1tkBmon1TImZUWwovP782DXlxBPmvh+dKdGq6MDio4Fmg J6BfDqgXA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g07zF-0004C3-2d; Wed, 12 Sep 2018 16:27:29 +0000 Subject: Re: [PATCH 1/5] PM / hibernate: Create snapshot keys handler To: "Lee, Chun-Yi" , "Rafael J . Wysocki" , Pavel Machek Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "Lee, Chun-Yi" , "Rafael J. Wysocki" , Chen Yu , Oliver Neukum , Ryan Chen , David Howells , Giovanni Gherdovich References: <20180912142337.21955-1-jlee@suse.com> <20180912142337.21955-2-jlee@suse.com> From: Randy Dunlap Message-ID: Date: Wed, 12 Sep 2018 09:27:27 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180912142337.21955-2-jlee@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > + master key of hibernation. The TPM trusted key depends on TPM. The > + security of user defined key relies on user space. > + -- ~Randy