Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp770743yba; Mon, 1 Apr 2019 16:54:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0DvC/C31gVepeTGNPO/gq3tr8YyMeav04TJBkr/0OT12LkR/a3kG6cafHmbxLQnItABuU X-Received: by 2002:a17:902:e407:: with SMTP id ci7mr8067178plb.219.1554162896702; Mon, 01 Apr 2019 16:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554162896; cv=none; d=google.com; s=arc-20160816; b=q3DYmVESUeu71oOImim0SCw3O+yIWu9Z2OEpXPShn5vrMNM0DwnGJSCfGOFnqQU3nk G+xTFqDGhZr3/egwiibENMbSUTztugcxmH8BeXfWgwXy4Bv2NZy3+pCvKfQoFmIekQPo q6RtjohkH/jN8NidGaQtQuzJQYEgkK99A9qNI2WO9Wnn15kP02Psxe32zluOsCLX4vVz eAxMoFrSjyZ98drEPOM/TIyd8qfai0xxQVp2Ve76stXXVa9M3rJxYbb618iUJ9EBYlvc JWhbN9mnlcPot+74sOR1r9SBdlGVs9OKr7vR/MlpjJR5nz0YOTzJh53/Nl406c0hFsU/ lp5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YgCUZqEBzanHOs03Xve/VgQC0+kPDOBQSLCUHeEZqVI=; b=CqFSoVTG/5LoR6aJ1IQZnmWyvFygEHwIx/UkTbovtKWoUgdapdYDP06nN4urgI2Txb TGiHiyUR1z8Vi7GA455Z9vj6DFLLjBXn+I5A7/h/bj8VKa7OUNawOb+/Ev4GFgk2cCdK dAJJeOi+S0xU1K3oJMXQvHBe02dDQTYg0br6vacZM6IAhPbuftjrtrL7TV9JCILlVpyR RlMHcrTL3h+D1B3PCoXawQ7vb1j3Ezq5/VXUpmUaG9iwUnDZYnyjspBDP2U1vipZYGdv EvgcOTMVaMncjyuRR5JXpEAs0Fd3prhTbHWFoyZGCSUk7X3YUkqwCnK1LdVxi4NavZKk HD9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w23si6772096plk.109.2019.04.01.16.54.40; Mon, 01 Apr 2019 16:54:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726841AbfDAXwx (ORCPT + 99 others); Mon, 1 Apr 2019 19:52:53 -0400 Received: from mga11.intel.com ([192.55.52.93]:16849 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbfDAXwx (ORCPT ); Mon, 1 Apr 2019 19:52:53 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Apr 2019 16:52:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,298,1549958400"; d="scan'208";a="145740064" Received: from unknown (HELO localhost) ([10.249.254.142]) by FMSMGA003.fm.intel.com with ESMTP; 01 Apr 2019 16:52:47 -0700 Date: Tue, 2 Apr 2019 02:52:45 +0300 From: Jarkko Sakkinen To: Matthew Garrett , tomas.winkler@intel.com Cc: linux-integrity@vger.kernel.org, peterhuewe@gmx.de, jgg@ziepe.ca, roberto.sassu@huawei.com, linux-efi@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, tweek@google.com Subject: Re: Add support for TCG2 log format on UEFI systems Message-ID: <20190401235245.GA29282@linux.intel.com> References: <20190227202658.197113-1-matthewgarrett@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190227202658.197113-1-matthewgarrett@google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 27, 2019 at 12:26:54PM -0800, Matthew Garrett wrote: > Identical to V4, but based on tpmdd-next OK, so on my GLK NUC I get valid final log and invalid event log after adding some extra klogs. I.e. - if (efi.tpm_log == EFI_INVALID_TABLE_ADDR) + if (efi.tpm_log == EFI_INVALID_TABLE_ADDR) { + pr_err("No event log\n"); return -ENODEV; + } will result [ 2.654392] No event log but still [ 0.000000] efi: ACPI 2.0=0x69ca2000 ACPI=0x69ca2000 TPMFinalLog=0x69ce4000 SMBIOS=0x69f63000 SMBIOS 3.0=0x69f62000 ESRT=0x69f3e818 MEMATTR=0x63475118 Tomas, I wonder if you are able to get the log out with some machine? /Jarkko