Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1416528ybt; Thu, 25 Jun 2020 05:43:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcyTOj5YVjEyGaF1g6RZpvD4RYK6RWL4EbZd0MQGpotwWP4sXFJ3rojqz0hI0ZITcxTQ06 X-Received: by 2002:aa7:c590:: with SMTP id g16mr32327922edq.5.1593089007210; Thu, 25 Jun 2020 05:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593089007; cv=none; d=google.com; s=arc-20160816; b=JlGXGKAIDX5tm41eKPcxyGPa+dssBlg6Xpx70+inyFVbWb88HKujDqejUIesYDHxRV DK58jOXuQHTllBtxFfOuCagpop93HZHQbgFTDwNYrj8CjTd131mePoEDSsi0LJNafeNj 3kOL8iRo6AyNCIGi8WtZ9Fer/uAfsFrNF2Xlv3lvlTv3fP1BgoT1/fFAvKgPe1KBAH9R G44n1hE7hKxlqL7/1xtWZuB0mq7e5T/Lvbg2Ks59D+OEI3kj5m1+E4FyJxA+hk2QaJ2x Xe/rhjFjFPda6ZNWFfnJURsKqXTBknb3LO5yVZ3rXvpoJMJTii7jxtv/UvpBABSm/3Zl uABA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ALo8tZrMNidDdohjcmI5U6fzK5k0U4FeFcfSwmkQKTQ=; b=h878HiD83f9btoT0Y+PUhzp2RZJZ5OglVc5Vxg5I1VtLw87pQSRiizN3nXiC4DZCzh Uj/+bs3ZIKQkhn//MHr8G5K0CJCtP3BroMamy5Jcrgbc/w1gzPB02UB/atLWjjOTOlrv A968l2hcYExBRFL+DP7ofILzRpWkRB49/9Jl9nYOjAllfFIPbdOYhVN7Hhfvo4NaXE15 zYs9Fh2PvNvBnXmP9IjiCp/yCnKiN7M1PQG/5sx8wF0ZtmbIlO2H5Pu7ys+9UOI5tjXg xHNt8Jx+NrYEbTJWlz9cT72OH/U7uGBn+DbMnufalRjjcTDft75fOuYF78zKnL678asw XONg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ha25si4598234ejb.628.2020.06.25.05.43.04; Thu, 25 Jun 2020 05:43:27 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404740AbgFYMmd (ORCPT + 99 others); Thu, 25 Jun 2020 08:42:33 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:10258 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404658AbgFYMm3 (ORCPT ); Thu, 25 Jun 2020 08:42:29 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05PCX64J099542; Thu, 25 Jun 2020 08:42:28 -0400 Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0a-001b2d01.pphosted.com with ESMTP id 31uwynn47u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jun 2020 08:42:27 -0400 Received: from pps.filterd (ppma03wdc.us.ibm.com [127.0.0.1]) by ppma03wdc.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05PCaGKk022979; Thu, 25 Jun 2020 12:42:26 GMT Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by ppma03wdc.us.ibm.com with ESMTP id 31uus1ky36-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jun 2020 12:42:26 +0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05PCgPmt41943424 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Jun 2020 12:42:26 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E02F7AE05F; Thu, 25 Jun 2020 12:42:25 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D0E4EAE062; Thu, 25 Jun 2020 12:42:25 +0000 (GMT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 25 Jun 2020 12:42:25 +0000 (GMT) From: Stefan Berger To: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, jarkko.sakkinen@linux.intel.com, linux-acpi@vger.kernel.org, linux-security-module@vger.kernel.org Cc: Stefan Berger , "Rafael J . Wysocki" , Jiandi An Subject: [PATCH v6 1/2] acpi: Extend TPM2 ACPI table with missing log fields Date: Thu, 25 Jun 2020 08:42:21 -0400 Message-Id: <20200625124222.1954580-2-stefanb@linux.vnet.ibm.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200625124222.1954580-1-stefanb@linux.vnet.ibm.com> References: <20200625124222.1954580-1-stefanb@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-25_08:2020-06-25,2020-06-25 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 cotscore=-2147483648 spamscore=0 malwarescore=0 adultscore=0 impostorscore=0 mlxlogscore=999 clxscore=1011 phishscore=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006250080 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 define a new structure acpi_tpm2_phy that holds these optional new fields. The new fields 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 https://trustedcomputinggroup.org/wp-content/uploads/TCG_ACPIGeneralSpecification_v1.20_r8.pdf Signed-off-by: Stefan Berger Cc: linux-acpi@vger.kernel.org Acked-by: Rafael J. Wysocki Cc: Jiandi An --- include/acpi/actbl3.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/acpi/actbl3.h b/include/acpi/actbl3.h index b0b163b9efc6..bdcac69fa6bd 100644 --- a/include/acpi/actbl3.h +++ b/include/acpi/actbl3.h @@ -415,6 +415,13 @@ struct acpi_table_tpm2 { /* Platform-specific data follows */ }; +/* Optional trailer for revision 4 holding platform-specific data */ +struct acpi_tpm2_phy { + u8 start_method_specific[12]; + u32 log_area_minimum_length; + u64 log_area_start_address; +}; + /* Values for start_method above */ #define ACPI_TPM2_NOT_ALLOWED 0 -- 2.26.2