Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp723837ybt; Fri, 26 Jun 2020 10:00:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEMWIAL1Kc+Yp0un0gLO9LWjP+Pucse0azQuX8DHZdpFpgJ7oUA4AfJw7PegX3CaKX1tFM X-Received: by 2002:aa7:d792:: with SMTP id s18mr4405823edq.7.1593190843310; Fri, 26 Jun 2020 10:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593190843; cv=none; d=google.com; s=arc-20160816; b=hn7Jsxplend1ZvwaUDtG3rVQZlPVnRgRmCTPkiaxxoWykUR4F3z0eiGXr7DP+xmq0b ryDuRQKnCObtT7Mh7E5pwOCuOrorxLH/fqw9/t9ZLkwwjVH6H/mOp0+aLZETlNGsx856 U4NtaaN7tIc7grAg4k0Nura2IQrhf77MOUIAYLkOCJ08q5dzRxtyaAOSR9lTDlyirXYk 0SrYTsM73yXMoE280AMi+O01LEPWyijBcxwJAC2e53/4JAptop9HbCOzEN/EJn8knGNW 6c9naIcfOFTHT4IQOqfIkWNOgBQPLePrwU9Sx2TuHh2qf0Hhh+Ine4QG4Kc6IF464aY9 Pj7g== 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=u8o6+nqwx0cnVBZbG6Xgj6fz8TfKeewJYigznqRfT+w=; b=PxwKvvPWPpWyRNncTEwxfGGkL5ex7+sMCI+M1LtAyoSx9de6hfYIGbOG6JaQE0DT2Z QPw99Z7jTXKxEdsuF9VqZ7UiK6PXmYRPuizzOpS3L0D7UhVtVKj+u3ipIMTg4WPJMPqP 6n4qudKOjrW+mYlnQ9rDOkE341Jv9EhD8LNDWGvdsu6oPd1ba8+j/mZJ9LtJ5/i65CMB rwuXdLFw4/OB57Fr92un3pvhViLIUCqxj/KnZCnnk3AHS2vpTiNYUVNBEOiim27u8b1j I7gNYeGVQHzMZMglhFHH7vOP/nH7HL4PZzfQIsIPralUNvRf3uSKiwosy4r3k7t1mD6r qgsg== 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 b19si7245815edj.598.2020.06.26.10.00.20; Fri, 26 Jun 2020 10:00:43 -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 S1729824AbgFZPkB (ORCPT + 99 others); Fri, 26 Jun 2020 11:40:01 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:48678 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729803AbgFZPj5 (ORCPT ); Fri, 26 Jun 2020 11:39:57 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05QFX1hr144059; Fri, 26 Jun 2020 11:39:52 -0400 Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0b-001b2d01.pphosted.com with ESMTP id 31wexy9cqs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Jun 2020 11:39:52 -0400 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05QFaOtX026851; Fri, 26 Jun 2020 15:39:51 GMT Received: from b03cxnp07028.gho.boulder.ibm.com (b03cxnp07028.gho.boulder.ibm.com [9.17.130.15]) by ppma04wdc.us.ibm.com with ESMTP id 31uurymwvq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Jun 2020 15:39:51 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05QFdocH46858742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Jun 2020 15:39:51 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E08B2BE053; Fri, 26 Jun 2020 15:39:50 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 60F35BE051; Fri, 26 Jun 2020 15:39:50 +0000 (GMT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Fri, 26 Jun 2020 15:39:50 +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" Subject: [PATCH v8 1/2] acpi: Extend TPM2 ACPI table with missing log fields Date: Fri, 26 Jun 2020 11:39:47 -0400 Message-Id: <20200626153948.2059251-2-stefanb@linux.vnet.ibm.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200626153948.2059251-1-stefanb@linux.vnet.ibm.com> References: <20200626153948.2059251-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-26_08:2020-06-26,2020-06-26 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 mlxscore=0 adultscore=0 clxscore=1015 suspectscore=0 bulkscore=0 lowpriorityscore=0 spamscore=0 mlxlogscore=999 phishscore=0 cotscore=-2147483648 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006260108 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 Reviewed-by: Jarkko Sakkinen --- 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