Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1416376ybt; Thu, 25 Jun 2020 05:43:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwF8XgWa2uqPMIM9OvjFrpaZfUZEiGjdhqPV5nqIyCyxISONEd4fPk4iy15J7ncO4d8zxFK X-Received: by 2002:a17:906:c451:: with SMTP id ck17mr6394569ejb.80.1593088992026; Thu, 25 Jun 2020 05:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593088992; cv=none; d=google.com; s=arc-20160816; b=dwM3fpiWVZnE2zS2QkXVuFph1PFEBSJN+9roejsV3UcRwowS1kHHKXbF+PmmDHNaPC 80tBvH3N1YBkdKn/tjfvfNdpnHS09hgsi/7dLXGdIs480zptJgarTQyMwoWK6/emTiMR PbU77D7u4y1OlVGK5ZOZ2NCsZLJ+sr03u0huwJ87PYhGEjM3OndrHwPb/WZH1QlXv8lD qNNFGYatSSEj1DRQsYGiXgVg2uzV9rTQieGeEvKgevuX7UdFH0TGtoVDcm1zFw33xs9L YBw0ct4j1xkDEu6M9cfHUAVgYS2LgXlHMakHWUofXSNRk4Fsm8Mz3OwNYshgFBuVgXn8 kU8w== 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=kRVPSkEvEpY+bwKLPq8Pk9QakjWB0KmCZkXV93iRgG0=; b=VEScpBRZRqv5fr00SdEDkzk2RZoQjjrfaTstMDRT/VFlrbNWSKcRIGzZtnzzFG00+q B+ODpCU1E2nEy9eDB6HmGmf4eiMdwNzElCDxohM8X7RxBTozcjhgkwYK/DE+SPkCrLSg YOK4eKUCBlklbD+LUd7UN8Q2CwTT9DYXr2eeqVQlUa4WNL6zAw1ai48GRoB+mklE35Kn 1+7Dt/jxblnvRtnIWSXWdceD7jrs8Vonl7TBKQwvejt3Ug3IXCrNkfp0mJaEkV4K+MSn M50yXGTSrGNWLNXV3BqZghulpMli1l6f3PKmJkYUppS26Vuk3uMYzr4ix0uJha4/Bf+s sg/A== 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 y18si15311375edm.379.2020.06.25.05.42.48; Thu, 25 Jun 2020 05:43:12 -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 S2404758AbgFYMmf (ORCPT + 99 others); Thu, 25 Jun 2020 08:42:35 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:34498 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404578AbgFYMm3 (ORCPT ); Thu, 25 Jun 2020 08:42:29 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05PCcXA8017501; Thu, 25 Jun 2020 08:42:27 -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 31uwyhybqw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jun 2020 08:42:26 -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 05PCYABV015165; 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 ppma05wdc.us.ibm.com with ESMTP id 31uus1byn6-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 05PCgP9e41943422 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Jun 2020 12:42:25 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CF7C9AE05C; 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 B722DAE05F; 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 Subject: [PATCH v6 0/2] tpm2: Make TPM2 logs accessible for non-UEFI firmware Date: Thu, 25 Jun 2020 08:42:20 -0400 Message-Id: <20200625124222.1954580-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-25_05:2020-06-25,2020-06-25 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 cotscore=-2147483648 spamscore=0 phishscore=0 suspectscore=0 bulkscore=0 impostorscore=0 mlxscore=0 mlxlogscore=614 lowpriorityscore=0 malwarescore=0 adultscore=0 clxscore=1015 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006250078 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 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 | 59 ++++++++++++++++++++------------ include/acpi/actbl3.h | 7 ++++ 2 files changed, 45 insertions(+), 21 deletions(-) -- 2.26.2