Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1306767yba; Tue, 2 Apr 2019 06:34:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7YXiJF1svHrkPsgOZmLe9VbruDESkhoyqIurRkF69aVTvzYs3Gj/Rem5GJIjmcpULNDzU X-Received: by 2002:aa7:8c13:: with SMTP id c19mr45647058pfd.225.1554212086444; Tue, 02 Apr 2019 06:34:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554212086; cv=none; d=google.com; s=arc-20160816; b=jRlhAMLtU8iQPSiIGYeWl6ZUh0PfU7RBXmDtDwG5L7F/RZvVeI3q5Dmmo7CPCRsCnz UxrOk0NL9v97XvbXXoFfyGQReVxCbNjx7w3TU5Y+LpBx8fKpKdtif7mTEFi2z2taEOOo nW/siLCddUIHhnslyB4vHhB+HTUahDFU4The+9iszUjyQLFbrybWLWrBCqF8mspXIlEo 0Si3D285KZEKx69ItrujQxxR+kYN3rUC8kB/lGfUDQ1zrcV1PaGWrlKZiKT3clzjd4z2 rMuXfpvw5205laTo9DlrCkHaEMFV8Wpd3EgBw4F8QwA5pKP6sGIaY1JiA9zafMs7/LqT tNzA== 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=pFO/YiQcZT84DzscFGhsvarGPv2GwsWJfgF6UnTJ4jQ=; b=asjTgxebMr9XNV4M32E9oNm0iEp70i6CZRxGieOe2mCX5vjyegugWD5sUOpHxcmsb/ 3thxAfKch7WdkjB3ZzAaVfOrlGDxDiNbvkma03iUYRswuzFGdoRJJuaw5OywIcfJM0rc V5W3T57b8cVpa/VV9U2zIRDtzX2myl5qg/UAQRedOIoAKeRIWX8myZ6tS4h5eZrAdTH7 zMoTE9ONqzSwH9uYxuFV1/5FK07X1Yu35yWS23rd06xKHLTwxDCS+EjkoMIPiHshokTo p7VAT+qs81h70p6mAUeobSfQQddjx6VXh9KwCP53xkcZY+ucY6XeBfcp/+/+p2sHcLxK la+w== 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 q138si11740940pfc.34.2019.04.02.06.34.30; Tue, 02 Apr 2019 06:34:46 -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 S1730639AbfDBNHN (ORCPT + 99 others); Tue, 2 Apr 2019 09:07:13 -0400 Received: from mga04.intel.com ([192.55.52.120]:61872 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730245AbfDBNHM (ORCPT ); Tue, 2 Apr 2019 09:07:12 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Apr 2019 06:07:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,300,1549958400"; d="scan'208";a="288022998" Received: from vsimsek-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.254.239]) by orsmga004.jf.intel.com with ESMTP; 02 Apr 2019 06:07:06 -0700 Date: Tue, 2 Apr 2019 16:07:04 +0300 From: Jarkko Sakkinen To: Matthew Garrett Cc: tomas.winkler@intel.com, linux-integrity , Peter Huewe , Jason Gunthorpe , Roberto Sassu , linux-efi , LSM List , Linux Kernel Mailing List , =?iso-8859-1?Q?Thi=E9baud?= Weksteen Subject: Re: Add support for TCG2 log format on UEFI systems Message-ID: <20190402130704.GA3916@linux.intel.com> References: <20190227202658.197113-1-matthewgarrett@google.com> <20190401235245.GA29282@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Apr 01, 2019 at 08:32:26PM -0700, Matthew Garrett wrote: > On Mon, Apr 1, 2019 at 4:52 PM Jarkko Sakkinen > wrote: > > > > 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) { > > Just to make sure - are you booting via the EFI boot stub? We need to > obtain the boot log before ExitBootServices() is called, so if you're > booting directly into the 32-bit entry point (eg, by using the "linux" > command in grub) then you won't get a log. ... and I was wondering why it used to work when I tested the first flush of patches. Ugh, sorry. The only excuse is too much multitasking lately. Anyway: Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen I'll apply all patches soonish and include them to the next PR. /Jarkko