Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp505800ybt; Mon, 6 Jul 2020 15:03:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNs/Gp/RcRtqXBNNA/5L2P4uYEwhkLD47OR8A6Q3bpfgF/AxgGnLo9MQz9Moh1uNdM9GBL X-Received: by 2002:aa7:da4c:: with SMTP id w12mr45638023eds.122.1594073015649; Mon, 06 Jul 2020 15:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594073015; cv=none; d=google.com; s=arc-20160816; b=UQs8iJ1fHS7dSaLEVDJZEAq4sB9RBGgvFnLZzYlU/gFRRDQMLowtwvdA3ihTUwsI42 AVYXOjWdVeIhsXl3gYbmIyPoyZyuLlxi+Ukx5oCZjzEVe1LdRPQsr/PujlYYc+wyv+LY 46DAAQ2poGKRZk+hyCItQBYx/K/qWyZLofJDvLw7XD8SSEKjXe03bmXgGOaotbzoqjkU 57ewJ21wvo3MUv0KZCTwgGFz1eoI490j40EsIw2gc4MQo1jr+1zedrlHT6E3A5TYzyZh 1oLzfi0zrjwaeDCwfaSTWg2O3A9O3eNdPp3qA5fEh+kIGKuGCmVElZbdCU9sQNpOBh8q gX7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:dkim-signature; bh=TkXhzKLqTF0E87EA7fDsRKyQKfMvqiBc3obNNpfDHJg=; b=b1ZLQ5bqnJ0PNS6ztGfKBWM/PENPxEOFFQQCAtT+owzlwpFPkXx5Tun+eMTJzj+6dh KpZPUEHMYLlga0gSMYLvxrf90bMqKG/vw5XhBz4WC3aAerzJks/By2NaZtISXwOmi6S4 uAVxqKyzJp8PdRVzj/BLd3JMFCQHKITLJtSzrgsX4AauYAQoAnwsz830sHJ0YkFdYYL8 ZcA2hufVASUNnz5FE9O/nKAQniHYDFogH0XEc1dlYoSVloDO617aVi1+tRj6JXaba+ap tEQLuAyhDDx6IUZ6qGwjEZAwzppoi9h7jYVUYx5Pfh9RuYjvYfIitFGLsaiHTt0kjqo/ CAmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EVLemXXn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ss22si15066461ejb.530.2020.07.06.15.03.11; Mon, 06 Jul 2020 15:03:35 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EVLemXXn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726434AbgGFWC2 (ORCPT + 99 others); Mon, 6 Jul 2020 18:02:28 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:56913 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725860AbgGFWC1 (ORCPT ); Mon, 6 Jul 2020 18:02:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594072945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TkXhzKLqTF0E87EA7fDsRKyQKfMvqiBc3obNNpfDHJg=; b=EVLemXXnd0HyjCfijBCRXcF3Soy4TowQobdY5I823PfrT7Z2zKO8vy1jdTYyt2178vPBnw /dT5EHthp2/U61EP2D7SCSx6DFkYoq2ySXw2gM5GaL4IX7qNTxzsI3iYCGvFd3Tu38YpZ0 aDUByQXWsoLToWfJF1JEy04anbfIYHU= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-454-3zHTH_KSPu-eUdlFMXxhEA-1; Mon, 06 Jul 2020 18:02:17 -0400 X-MC-Unique: 3zHTH_KSPu-eUdlFMXxhEA-1 Received: by mail-qt1-f198.google.com with SMTP id c5so29274550qtv.20 for ; Mon, 06 Jul 2020 15:02:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=TkXhzKLqTF0E87EA7fDsRKyQKfMvqiBc3obNNpfDHJg=; b=XW9JONmHRCgkqqnphiDvn//1MKJ+UbuFLTj0v9pVcA2qHne6scP4aHzqv/lPehJgmh +ReqQmg6ijv737fejb7RiCekAGVupI0qqYFxt8I1LOJI4g/H0wiglRtLsDHqzphrbNOs 5Vu/6pgx4DI7PcFB+b6NtQ8S8e10EqutSCWjtjuqEUHHMAiZSL2Qr7UKsKMWyi1c3yD+ /lfrXvOzPGIhzHkBYvEuUtqK0Ioi+GVME87UJPl7qJTFAQ/lyyauL3IfxPM+YS3aUteB IkpSWE1dlTVYrDr/Q1kQK8kVKW08YTQyYgdzf4SGkZ/RimK+BG2Da624VXih6LstxK5o n/Sw== X-Gm-Message-State: AOAM531BVsZWta4DWtl5s/reUBWZi76apcfspjpHUQmlgfdsLbPRyIYC bmKn3qKBdjp5pswmZaGLZmcwFoWWI5HFH+knrhqe/O+OVnDoO5uNh54G/R+Ny+3dG2M8myVTR8R FuUw4+peqyVOtbtHMagGfRga4 X-Received: by 2002:ae9:f002:: with SMTP id l2mr39136110qkg.437.1594072936807; Mon, 06 Jul 2020 15:02:16 -0700 (PDT) X-Received: by 2002:ae9:f002:: with SMTP id l2mr39136066qkg.437.1594072936430; Mon, 06 Jul 2020 15:02:16 -0700 (PDT) Received: from localhost (ip70-163-223-149.ph.ph.cox.net. [70.163.223.149]) by smtp.gmail.com with ESMTPSA id a3sm20911329qkf.131.2020.07.06.15.02.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 15:02:15 -0700 (PDT) References: <20200706181953.3592084-1-stefanb@linux.vnet.ibm.com> <20200706181953.3592084-2-stefanb@linux.vnet.ibm.com> User-agent: mu4e 1.4.10; emacs 26.3 From: Jerry Snitselaar To: Stefan Berger Cc: 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, Stefan Berger , "Rafael J . Wysocki" Subject: Re: [PATCH v9 1/2] acpi: Extend TPM2 ACPI table with missing log fields In-reply-to: <20200706181953.3592084-2-stefanb@linux.vnet.ibm.com> Date: Mon, 06 Jul 2020 15:02:14 -0700 Message-ID: <87h7ukwbdl.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stefan Berger @ 2020-07-06 11:19 MST: > 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 Reviewed-by: Jerry Snitselaar > --- > 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