Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp722727ybt; Fri, 26 Jun 2020 09:59:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUZo5+yH1dCp2KkgdeL5O7xXDT5Ks9aY9RRo4Cc6ZSKOq22hABufetCMALDhYTwIee5Wrx X-Received: by 2002:a17:906:5e06:: with SMTP id n6mr3264987eju.504.1593190757305; Fri, 26 Jun 2020 09:59:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593190757; cv=none; d=google.com; s=arc-20160816; b=PKGLC1PeMSSSYsuCgK+geR8p+szWDliCo3JY7pXgrrfbYBoKG++KxLYVS8oKqcS3mv yPBScpQyflZZQBQ4mVj60LjLtQuuxbWuQ8MPyPlXBOvk4Xd1NEvqwP/tZK/qIdiYE8dH ErNcMQP1F0kRY+suSxIoPQbdEtggEkVEDaISqxtq/6YnxLtjfsr2Nu48z3iFPLL7cio5 c+xsNgx1iEYfnh5K8l5utVPXy5hDeTGBOqSIBObF0fJBaQunlV/jYNQb9Ftyq0IFux0f fDTSeVCtCEq5gg6lxUVPU/WPvay+5wRqtYiiEPpPkIyzrmC/D/1BV9bDjH6bNAiIzubY cyVg== 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 :message-id:date:subject:cc:to:from; bh=ACjAqWPTpTNi4wwjZpiitQusHo6Gb5LcKz3LVRhlQGo=; b=LeDtG08fbNpw7KBFlUmjhG5byl1GhbGeYBw6AmuX37GLSUC14r8X3ECH+hvRaK2BYN GVaNZV+NE2d18PrdRv3JO87CET+9icQOEykTCR8hq3ZZjG8CUJcIE4STiYtz2QvXYTRF eidRXqPYd59dkdeHaP9Bierexrc/fgN0fg5KDczKgpjG+Leq1DItpV43cBD2TfvIZ0ug hT5bpIUm+H/7hanwHYUM+Hzanl/YNg56eGbjOUxXyzYoMso8kmLekuI7CCLd8c/zh+PQ fJ3POJribanVub2fQTpRh/4CHPajQQVbY8QZMvyvzwI9b1vvpcHfpCkaS2/rvxsRmSf5 DpuQ== 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 n7si17189371edt.65.2020.06.26.09.58.54; Fri, 26 Jun 2020 09:59:17 -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 S1726381AbgFZPkG (ORCPT + 99 others); Fri, 26 Jun 2020 11:40:06 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:62622 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729807AbgFZPj6 (ORCPT ); Fri, 26 Jun 2020 11:39:58 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05QFcRFq180282; Fri, 26 Jun 2020 11:39:52 -0400 Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com with ESMTP id 31wkbg8u3k-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 (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05QFaGV0007822; 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 ppma05wdc.us.ibm.com with ESMTP id 31uus1mwmr-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 05QFdoZS46858732 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Jun 2020 15:39:50 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3AE0FBE053; 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 B24B7BE051; Fri, 26 Jun 2020 15:39:49 +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:49 +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 Subject: [PATCH v8 0/2] tpm2: Make TPM2 logs accessible for non-UEFI firmware Date: Fri, 26 Jun 2020 11:39:46 -0400 Message-Id: <20200626153948.2059251-1-stefanb@linux.vnet.ibm.com> X-Mailer: git-send-email 2.24.1 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 bulkscore=0 mlxscore=0 phishscore=0 suspectscore=0 spamscore=0 mlxlogscore=639 impostorscore=0 cotscore=-2147483648 clxscore=1015 malwarescore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006260106 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Berger This series of patches adds an optional extensions for the TPM2 ACPI table with additional fields found in the TPM2 TCG ACPI specification (reference is in the patch) that allow access to the log's address and its size. We then modify the code that so far only enables access to a TPM 1.2's log for a TPM2 as well. This then enables access to the TPM2's log on non-UEFI system that for example run SeaBIOS. Stefan v7->v8: - Added empty line. v6->v7: - Added empty lines and R-b. v5->v6: - Moved extensions of TPM2 table into acpi_tpm2_phy. v4->v5: - Added R-bs and A-bs. v3->v4: - Repost as one series v2->v3: - Split the series into two separate patches - Added comments to ACPI table fields - Added check for null pointer to log area and zero log size v1->v2: - Repost of the series Stefan Berger (2): acpi: Extend TPM2 ACPI table with missing log fields tpm: Add support for event log pointer found in TPM2 ACPI table drivers/char/tpm/eventlog/acpi.c | 63 +++++++++++++++++++++----------- include/acpi/actbl3.h | 7 ++++ 2 files changed, 49 insertions(+), 21 deletions(-) -- 2.26.2