Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3413936ybb; Tue, 31 Mar 2020 04:56:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu3weHft+WH8kfYki9/g23ihfn0ETZuJf2am0mMhPtlLO3CFeL3B93rPnqKkvderEYd4d3q X-Received: by 2002:a9d:4698:: with SMTP id z24mr12336302ote.271.1585655767535; Tue, 31 Mar 2020 04:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585655767; cv=none; d=google.com; s=arc-20160816; b=skWx9CvLzawfTqkPQXpVzK2NaLaAfZlN4NarvjUIItDAJiWoTMMP+Po3O2ukElhpN4 /wSq0PzmMjUQCKASkVKaSqUnw/Kt+rv7V29sPVkSIk79B8E5t2/fG5xlhBBgC4OQoKTS aF9jbymTDlcD32qtFPIkQxzU83sF1y64IOg9rjGxPRQKT6HBciSUs7oiZnP5Lvlfori3 auSmZmcVWX9Gx7CFwYGLCs8Krbc0juIg50W1S5Zyoh1Agp6EpXY6DPdSyuLBB7QzDGjr e32/zDuiSEno64N5bM+mjNExjE+lp5bKehxjCdRKGRUgm5A24UUD3GgsDLQL8M4n5MRa pAoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=kurfzTi1ppnlUueqxJRt0jFr3exQBXEZA0Fvrg60ccQ=; b=Q5Qi7atOA4w4Ww8zncYB82Wo9LknTWavvCKGQ6JIs3PNBFtT917JTiDzzgj0AwYrpz 5/G/kZhlLUJE7ksqNoCvIyzabmj43Xu7yjiO5OVuqfYV+mS1VbP88wKsfd0zbVCQodwO Pokn6+KXJdYVBB1CzHih257iS8pE5seRTojMuzVoY8QhsWKVH27FAsxTEe4H/szPAWRD pKLy0eq8cy1Ya5md31LTH5LQb5BkmMebSMo75oKHo4rrv1HSkZ8ZOTtRfDZ5E1iLCbOv XkRd1JerxYAcqD48ju3KcNfM8W/HPxdakXZT3abAI8cUwEPfiAE+c9J++p8XONoyw+2o qN8A== 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 d185si7034398oif.234.2020.03.31.04.55.54; Tue, 31 Mar 2020 04:56:07 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730426AbgCaLzE (ORCPT + 99 others); Tue, 31 Mar 2020 07:55:04 -0400 Received: from mga01.intel.com ([192.55.52.88]:3310 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729925AbgCaLzD (ORCPT ); Tue, 31 Mar 2020 07:55:03 -0400 IronPort-SDR: qptgvVR5XEKkpafjV3Qffhf2dIE+DQ6bS9EGfg9AYJg+sHiC4/aJZLJ8CueKhzJqhTMdP0StQu cFkrNidEYT/g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2020 04:55:03 -0700 IronPort-SDR: x76DcEdvDe15XUQfjkSFQGaycHeZFzHRQPfcDKVvKInN8DhRXpcnI5zrKvsou97YxQT6ZS2T59 HXurVOG+0O5g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,327,1580803200"; d="scan'208";a="272720072" Received: from tking1-mobl2.ger.corp.intel.com (HELO localhost) ([10.252.59.94]) by fmsmga004.fm.intel.com with ESMTP; 31 Mar 2020 04:55:01 -0700 Date: Tue, 31 Mar 2020 14:55:00 +0300 From: Jarkko Sakkinen To: Stefan Berger Cc: Stefan Berger , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH v2 1/3] acpi: Extend TPM2 ACPI table with missing log fields Message-ID: <20200331115500.GC8295@linux.intel.com> References: <20200330151536.871700-1-stefanb@linux.vnet.ibm.com> <20200330151536.871700-2-stefanb@linux.vnet.ibm.com> <20200330192830.GC1384380@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 30, 2020 at 05:26:25PM -0400, Stefan Berger wrote: > On 3/30/20 3:28 PM, Jarkko Sakkinen wrote: > > On Mon, Mar 30, 2020 at 11:15:34AM -0400, Stefan Berger wrote: > > > From: Stefan Berger > > > > > > Recent extensions of the TPM2 ACPI table added 3 more fields > > > including 12 bytes of start method specific parameters and Log Area > > > Minimum Length (u32) and Log Area Start Address (u64). So, we extend > > > the existing structure with these fields to allow non-UEFI systems > > > to access the TPM2's log. > > > > > > The specification that has the new fields is the following: > > > TCG ACPI Specification > > > Family "1.2" and "2.0" > > > Version 1.2, Revision 8 > > > > > > Adapt all existing table size calculations to use > > > offsetof(struct acpi_table_tpm2, start_method_specific) > > > [where start_method_specific is a newly added field] > > > rather than sizeof(struct acpi_table_tpm2) so that the addition > > > of the new fields does not affect current systems that may not > > > have them. > > > > > Cc: linux-acpi@vger.kernel.org > > > > > Signed-off-by: Stefan Berger > > You have this comment: > > > > /* Platform-specific data follows */ > > You mean there 'was this comment'? I actually removed this comment because I > didn't know what it meant or what it has to do with 'platform': > > - > -?????? /* Platform-specific data follows */ > +?????? u8? start_method_specific[12]; > +?????? u32 log_area_minimum_length; > +?????? u64 log_area_start_address; > > Specs: https://trustedcomputinggroup.org/wp-content/uploads/TCG_ACPIGeneralSpecification_v1.20_r8.pdf > > PDF Page 16 / Doc page 10 bottom. > > start_method_specific is obviously related to the start_method field. The > subsequent two fields are optional and show those 2 filelds we know from the > TCPA ACPI table. You should CC the change to linux-acpi because it touches their files. For this reason preferably this change should be commit of its own. /Jarkko