Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp571071ybt; Mon, 6 Jul 2020 16:58:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc3zmjJgVnxHFqrTki6KGXItWEQwDe1ZRRk7l2nKvnqWzDuZO34xJStisbssqUvWoBIqqN X-Received: by 2002:aa7:df08:: with SMTP id c8mr57681532edy.372.1594079927083; Mon, 06 Jul 2020 16:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594079927; cv=none; d=google.com; s=arc-20160816; b=muSUKXxwBIgKMupG5JOtXhqBshr/a1cG4hHOWDT2Cg0KSXYFR7OMQPo1P0+/8TZ8Mv xQa1PcEbJmOojONIeMgMriuOvwk0EcJ6P4LiG0o+30Lz9grSTaB/MuAcr3pwCEay3Ubs RmEp8lQOWuJ46uNRNX3ZgiKZCV9rb2fMbQr15EsB6AyvB1qPOPfeSCfFN8MiuvTbvCQF gGlq/YEf+5BqQaWQj4XfJidD3Jv5sdrgL8LAwGjsdR/xUVdPUln84dlF7jUJinQbndq/ W014oAru9Q7HfWJZEzH1IV+47Wxz9cgnGtYUHKXUo41hS9yXJvywpggkjh8YjceONUoc Hivg== 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=VMVuTaUwpxIrk6WkmZlJ5IUQ6f3N96azkSH3LJUZC74=; b=wCM3DO3ZZiygRwuZKyCKasbBnsuEfC1yExQCBS0w6ynlw2t3feoKsp1ucB/Hc7IQYx CkwP26Sw2UAn2nDBf+AR5/io7bJrohN2qQcqwUyH8KrpCywPS7lI/8p294I3rNGvba14 C+U148UYVszDizj3u+v99Ey+2n/rJu4xVjsb+VvjJcpLdhEb+WfLGqEtxPEOqhLPLI31 JI/8ThUFHrKUf9j7+QUs/oKz/lQzL7bJWQyZfJrrrRxWQxDzBOb8jDi+3ybwviEsXxGj OuFWxV4IlSQmmuiEl7ShcwXjvErzIdzEQfjqWdFSaNPk4mdWACpOhmyZNzK8OrughOhH ynFQ== 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 b6si11761792edr.578.2020.07.06.16.58.24; Mon, 06 Jul 2020 16:58:47 -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 S1727874AbgGFX6M (ORCPT + 99 others); Mon, 6 Jul 2020 19:58:12 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:15640 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727046AbgGFX6L (ORCPT ); Mon, 6 Jul 2020 19:58:11 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 066NWhY2048056; Mon, 6 Jul 2020 19:58:10 -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 3249rbxew0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jul 2020 19:58:10 -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 066NsfJA029261; Mon, 6 Jul 2020 23:58:08 GMT Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by ppma05wdc.us.ibm.com with ESMTP id 322hd8ug98-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jul 2020 23:58:08 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 066Nw8Bu17105294 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 Jul 2020 23:58:08 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 62908AC05B; Mon, 6 Jul 2020 23:58:08 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4AEF2AC059; Mon, 6 Jul 2020 23:58:08 +0000 (GMT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 6 Jul 2020 23:58:08 +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: [RESEND,PATCH v9 0/2] tpm2: Make TPM2 logs accessible for non-UEFI firmware Date: Mon, 6 Jul 2020 19:58:05 -0400 Message-Id: <20200706235807.3915586-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.235,18.0.687 definitions=2020-07-06_20:2020-07-06,2020-07-06 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 spamscore=0 impostorscore=0 lowpriorityscore=0 cotscore=-2147483648 clxscore=1015 phishscore=0 suspectscore=0 adultscore=0 mlxlogscore=683 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2007060163 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 v8->v9: - Renamed variable - Added R-b 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