Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp991166imu; Fri, 11 Jan 2019 12:51:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN4eSjIRVPPtccW+x9yzlZRgpii8IxPw3LqcKA0E4i3LEUbI0nb4O/QUHLdXOrbVMSi9LkRg X-Received: by 2002:a63:94:: with SMTP id 142mr14481017pga.74.1547239892829; Fri, 11 Jan 2019 12:51:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547239892; cv=none; d=google.com; s=arc-20160816; b=NW/v0iH96bZXYLMVpSKZDjnVvKGaCpBHqvaG60fjYxJMFatV0BBTOI/8jga7tDFP25 dWnPzMLWN8Rj+3pmCYlTzrMW+YctG0fqNYk4r9XzqJHdlcHRbtAeL2dJGnLjxCvKQcwz zJfuPZSf18HVIhXpZE2BVOTHKDUNXbbJWMexvZcnTEOvC8V86KzcsC3Ddzj/gdnIW8ee bMxjdkbR+CjnsqaqzW4qcEBOXj5XN5dQTVwLj4O3dWrnPtCvwU7+bsJsgcG2QsNSC5Tk qcdSRGxoRNJrn35KoeqXhMwPPGymtMvTjMiibxE7OeniRpWWnI6ACOnPCVgCDeIK4TxJ IuCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=2Nv5NL9jkBJknah2dfVJQs7UIlKNv4CYsYJjaKcLZQo=; b=xoyT97saxvPkF2DJJOqsciHpdYUOP3zSfdrvTIKpptXDCiJQ/JjI8TN/N+Po3Fs+6U WlMLmASkyDRGjXiqw8GkFb0YHjr7I4U6UOb+G2skmq6b8wI/bzdVBvdJzQVxK/ZA1ZvV qD23kLMd+4OGRiB240kE5n8P2cZKAa5g/eYOkgxkznPgs9jVSqZcZPoyDvFtFfyGL/BZ u0aZ8xGO12U8neIUWz65i+C9KoNORmy69Acw35+auBYSYAQDfruftrcFxu4AXqEMfTBZ r7yxapN8us/QTJpq8EYFaz3yNBRzVEsa2cPy8qgbdXz21k7uSziKJXKl0VqUPd/8gMJK 5rDg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si6545480pld.79.2019.01.11.12.51.17; Fri, 11 Jan 2019 12:51:32 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732866AbfAKPxa (ORCPT + 99 others); Fri, 11 Jan 2019 10:53:30 -0500 Received: from mga02.intel.com ([134.134.136.20]:21644 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732686AbfAKPx3 (ORCPT ); Fri, 11 Jan 2019 10:53:29 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jan 2019 07:53:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,466,1539673200"; d="scan'208";a="107525932" Received: from gandrejc-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.254.144]) by orsmga006.jf.intel.com with ESMTP; 11 Jan 2019 07:53:19 -0800 Date: Fri, 11 Jan 2019 17:53:18 +0200 From: Jarkko Sakkinen To: joeyli Cc: James Bottomley , Andy Lutomirski , Stephan Mueller , Herbert Xu , "Lee, Chun-Yi" , "Rafael J . Wysocki" , Pavel Machek , LKML , linux-pm@vger.kernel.org, keyrings@vger.kernel.org, "Rafael J. Wysocki" , Chen Yu , Oliver Neukum , Ryan Chen , David Howells , Giovanni Gherdovich , Randy Dunlap , Jann Horn Subject: Re: [PATCH 1/5 v2] PM / hibernate: Create snapshot keys handler Message-ID: <20190111154146.GA12093@linux.intel.com> References: <20190103143227.9138-1-jlee@suse.com> <4499700.LRS4F2YjjC@tauon.chronox.de> <20190108050358.llsox32hggn2jioe@gondor.apana.org.au> <1565399.7ulKdI1fm5@tauon.chronox.de> <1546994671.6077.10.camel@HansenPartnership.com> <1547016579.2789.17.camel@HansenPartnership.com> <20190109181155.GI9503@linux-l9pv.suse> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190109181155.GI9503@linux-l9pv.suse> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 10, 2019 at 02:11:55AM +0800, joeyli wrote: > > Well, I think here, if we were actually trying to solve the problem of > > proving the hibernated image were the same one we would need to prove > > some log of the kernel operation came to a particular value *after* the > > hibernated image were restored ... it's not really possible to > > condition key release which must occur before the restore on that > > outcome, so it strikes me we need more than a simple release bound to > > PCR values. > > > > hm... I am studying your information. But I have a question... > > If PCR is not capped and the root be compromised, is it possible that a > sealed bundle also be compromised? > > Is it possible that kernel can produce a sealed key with PCR by TPM when > booting? Then kernel caps a PCR by a constant value before the root is > available for userland. Then the sealed key can be exposed to userland > or be attached on hibernate image. Even the root be compromised, the TPM > trusted key is still secure. I think this even might be reasonable. Especially when we land James' encrypted sessions patches at some point. /Jarkko