Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp87926pxb; Fri, 19 Feb 2021 19:10:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8uNZoz/bJzgULNJKA4gSaTncbdNBensf056pX5x7F6b43lO5PLfzjDaT+bvoIJOLN2c0/ X-Received: by 2002:aa7:cd8c:: with SMTP id x12mr12605567edv.355.1613790656286; Fri, 19 Feb 2021 19:10:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613790656; cv=none; d=google.com; s=arc-20160816; b=w/hhC/NpBct2ED8yJzhBhGyPNRqupdzjuTWRYOKWZ8zJ50u/zGHOF7Po23JvG6D8+K 7le8Mi7QMC+nridjG17EAH8aAFRliPRmZR/FZAY2rX7CyCmqc7g49AorgyuJuKAlRBui ys0gfqeLeBQaqRFd9lACh+uV68Nf+4wSansOOEWyIAqOdtgkD2vKOG1CG8GV3ucEsoZa gYtUw8ZwkRP8xQYcn6KajBV7F/WsYkuzkdZF42J4xtIcpip5blxSd8czgcb4dUpFftl9 K7osHK+TDCzW+HoMQvMxF7frdIFaQ67gCQ34Y3FTRZkjTUxmvlsuk19t36AGjI3lKcT1 6inw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PqQgQJmNQOgHxwYxB485Uz2TcRxzqZjkucKY0KSTuII=; b=qBIVG02NpBUq178pd9Gzj8JaTJMpr2CWlM/03jkQgan6dFmRn5INmecM3BF5o/WGVR cmZE4ae00tKq435Dkq+8F2LlqcpIK0hOamZCda74bbPg6Y0s5D3WqT1CNAG8lc7/ERYr 9yPc9BQXCvVKbJ/EoiJdxlVYQEe3ZfdWOD+alX3DTc4J/r1+75vL/celO/fdSNPD3Br6 LqrI9dIQGkxbIywr7IxpduB9TyU9BkuDLT/0mBuamVPQMnEdFGTFgyZhrlpkI9eIsbtU xUWkWvpjochQmt+y/OBd/HVRqxQyEJQiwlJMta3XzZwM/rv757TS/sNnDVXbVn2CJQik i/RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="F2sQxU/R"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di24si1458631edb.476.2021.02.19.19.10.33; Fri, 19 Feb 2021 19:10:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="F2sQxU/R"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbhBTDKF (ORCPT + 99 others); Fri, 19 Feb 2021 22:10:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:45064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229765AbhBTDKD (ORCPT ); Fri, 19 Feb 2021 22:10:03 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B717064EE0; Sat, 20 Feb 2021 03:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613790563; bh=BKUd+jallq37FDOP7XZNlKIoHsBYEgg+risJ2luufz8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F2sQxU/R9X/6fZkIEcVkTVPkOug75dkQlMgvr2tDh/+49Rn3rP6Xe1/UPE2raBAdJ vwTG3NOpHrftST365HlCBYQy9WyZeUmhZd8sFnZrz6G3xt4Vxw6IMGFzYXM+VyRRoH DPCB+GmOfOlA1oAVNNoeEwWxZyvHX3UvF/2+YEEdvC1+xoKwbZrN+k2CAIZ+oYHvMq r94OWRrCDwG+C3kJFKachpZkSh3PrpCsozjuVgnrL7oAMk2o9vZfbe/WcNsT6WetAd xgZakwtUVC5GMfYJrUVPPXhxbeRFRdLpq/Cpa+Pz0aMKD5aKH9RNu1SCyjkdIPllxy ciQmefUC0pHgw== Date: Sat, 20 Feb 2021 05:09:07 +0200 From: Jarkko Sakkinen To: Matthew Garrett Cc: linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-pm@vger.kernel.org, keyrings@vger.kernel.org, zohar@linux.ibm.com, jejb@linux.ibm.com, corbet@lwn.net, rjw@rjwysocki.net, Matthew Garrett Subject: Re: [PATCH 5/9] security: keys: trusted: Allow storage of PCR values in creation data Message-ID: References: <20210220013255.1083202-1-matthewgarrett@google.com> <20210220013255.1083202-6-matthewgarrett@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210220013255.1083202-6-matthewgarrett@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 20, 2021 at 01:32:51AM +0000, Matthew Garrett wrote: > When TPMs generate keys, they can also generate some information > describing the state of the PCRs at creation time. This data can then > later be certified by the TPM, allowing verification of the PCR values. > This allows us to determine the state of the system at the time a key > was generated. Add an additional argument to the trusted key creation > options, allowing the user to provide the set of PCRs that should have > their values incorporated into the creation data. > > Signed-off-by: Matthew Garrett LGTM too. Something popped into mind: could we make PCR 23 reservation dynamic instead of a config option. E.g. if the user space uses it, then it's dirty and hibernate will fail. I really dislike the static compilation time firewall on it. /Jarkko