Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6279593ybi; Mon, 8 Jul 2019 00:14:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/VE5iRIax59B6uXNUxgGpSs6FFWalDxj0qz5VbcDzHAJQOE42c0OUuvk7VQuYHpg7z/8x X-Received: by 2002:a63:381d:: with SMTP id f29mr1590382pga.101.1562570064734; Mon, 08 Jul 2019 00:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562570064; cv=none; d=google.com; s=arc-20160816; b=s+7caF1TAE4uD5EOn244WGZ62uHDoO2dRqSveldl9cyfyXjBQM11LbXJt8tH3f7N94 npdG+NkMp8C8lI1HVPUxyi3FJYqUxjdkoi9XnnqZNk/QBRJkU6psVZymsnvAWf/iTiTW fP78AAfXO8CVlHCuwVygA6jvx+HBtvlQf3Q4EoGc2hgX+sB1x33E3hTCI/ggJAyEjhuD nU03re6UMC/hXtmvTVwCUExbmEcXkDS1aE+twQgPVsJsBnnlUFwLa3aFhY70hVEhc6j+ 5KVdyWiYSDJrRNCR1/KlASoSjIo9aU19cK+/FfKnG1S5nYfEf25LqvWVdEhhtcMuFSIV U8Kg== 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; bh=W8W9eVpOmdnED++9Ez3KWQB6NWkaDmlYdZTDWDg9wF8=; b=iTN2I18UpIAvW9F1JXlr072O64rusCh0uKeoUEGWEAUdRf7bceLf+e29KK39za9jeE K5NHm2B+6Eel9ecjnyrwaNvZA5nGiFmd1MICPUcquYvx9v0ppBMkB909XaBn6t7ZDVE/ vxS0ZaV9yAa2g/vvPU0RIzkEeiBzkfoj159/sZCCnLsIBMdeshQak2pxJYD/lyn35YQc I41uRb7CdjTlS8S9P0V8nJXtOQUdcC9ldbe2WbNUYRs2SY2TAUeoGpH7XLIbIcvHAfRk 8KIJ8lM4XL0bfpuF32/Z/PzvOEFL3oenLQsdlz4O+1hrbgwH12ZsmA+k2WXL7oBlPzew yCJw== 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=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 78si18422974pfz.268.2019.07.08.00.14.09; Mon, 08 Jul 2019 00:14:24 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725941AbfGHELL (ORCPT + 99 others); Mon, 8 Jul 2019 00:11:11 -0400 Received: from linux.microsoft.com ([13.77.154.182]:48100 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbfGHELL (ORCPT ); Mon, 8 Jul 2019 00:11:11 -0400 Received: from [192.168.1.8] (c-67-168-100-174.hsd1.wa.comcast.net [67.168.100.174]) by linux.microsoft.com (Postfix) with ESMTPSA id 72B8820B7185; Sun, 7 Jul 2019 21:11:10 -0700 (PDT) Subject: Re: [PATCH] tpm: Document UEFI event log quirks To: Jarkko Sakkinen , linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-doc@vger.kernel.org Cc: tweek@google.com, matthewgarrett@google.com, Jonathan Corbet References: <20190703161109.22935-1-jarkko.sakkinen@linux.intel.com> From: Jordan Hand Message-ID: <33ff21e2-1e27-cc85-0ea3-5127cb2598ba@linux.microsoft.com> Date: Sun, 7 Jul 2019 21:10:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed 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 On 7/5/19 3:26 AM, Jarkko Sakkinen wrote: > On Wed, 2019-07-03 at 10:08 -0700, Jordan Hand wrote: >>> +This introduces another problem: nothing guarantees that it is not >>> +called before the stub gets to run. Thus, it needs to copy the final >>> +events table preboot size to the custom configuration table so that >>> +kernel offset it later on. >> >> This doesn't really explain what the size will be used for. Matthew's >> patch description for "tpm: Don't duplicate events from the final event >> log in the TCG2 log" outlines this well. You could maybe word it >> differently but I think the information is necessary: >> >> "We can avoid this problem by looking at the size of the Final Event Log >> just before we call ExitBootServices() and exporting this to the main >> kernel. The kernel can then skip over all events that occured before >> ExitBootServices() and only append events that were not also logged to >> the main log." > > Not exactly sure what is missing from my paragraph. The way I see it has > more information as it states what is used at as the vessel for > exportation (the custom configuration table). > > Maybe something like: > > "Thus, it nees to save the final events table size at the time to the > custom configuration table so that the TPM driver can later on skip the > events generated during the preboot time." > Yes, that sounds more clear to me. Thanks, Jordan