Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp899614yba; Mon, 1 Apr 2019 20:34:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBHKAo4bJRJnsXd3s+6QwkK77ZceshhEdeZT7ljaE+ZZoONR+0iMx3rrhe5QyCSbBJm6fu X-Received: by 2002:a62:1d94:: with SMTP id d142mr36154375pfd.83.1554176081156; Mon, 01 Apr 2019 20:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554176081; cv=none; d=google.com; s=arc-20160816; b=Sd07RBCA/zcM8BAyRrezEKWh2qRdzj4xozqzzA7bC6IjIRnuLAX9UOXdliDqNV8dGf aIz1ESJBDKgL3C5HGh6h5h9YBQfWJ8zFka3KoqSuK2YWdMf7w/s1yyleh76ImcrhaWUr tn0FIpRGgGcC2OLanwcLMMOHffgMAkmzY6jr8wj5EerYj2koVP9ZOdpu4z9k7PbMsK86 j7QDBzuTg9TGsK8UjduMtiEjJ3xf2D14S+gQy9YofDRommNYSEo9Erx3yIUbx76kunhe lIZp38IiL9lp3lvxSHNf4n4CLDRx2K5P5273xumSTHyvZW9huJIIOajvC/htwMDOl6Q5 GaXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HKtA2OgqesJBgzJYv1b+Ap0iRtQayk+lqCYbZ43xI8w=; b=lPs/K2uh00WJ+yS1VolXjJKhP1tPEAK3ZAAmuUdSdngPyhkUcy34TUH24uwqTKaHCe +pyVdDiOeKjU0Oel8vMXmGjaWb0be1ndCyRHW1C+BVmVomvw6zmaOQFCqMkRbXxzhnV3 hpA/okwvUZc5Y2h3J4DorKDJMv7fX3DIaf1m/q0LoopsFIPM/pqb9LjCgNI2NIGEVzlJ jW4UVkESYSOzAGvHa+Rj+frR/Uldg14HVKqdEhC+fzgbyyeJsybk5iCBvGqaicqQg3kZ lLzwttTwprzwcPNhaFZTYSt9I9kOxzV7VVewQwyYI+4F5BnY3vFMIQd56iMlav9T14Mv YOhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FK03rLKm; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x14si10033938pfm.179.2019.04.01.20.34.25; Mon, 01 Apr 2019 20:34:41 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=FK03rLKm; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729045AbfDBDci (ORCPT + 99 others); Mon, 1 Apr 2019 23:32:38 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:46318 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728761AbfDBDci (ORCPT ); Mon, 1 Apr 2019 23:32:38 -0400 Received: by mail-io1-f65.google.com with SMTP id b9so9667255iot.13 for ; Mon, 01 Apr 2019 20:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HKtA2OgqesJBgzJYv1b+Ap0iRtQayk+lqCYbZ43xI8w=; b=FK03rLKmh+06R2ISmVFdO7t/8HBcyHS2UDZoQoNlv9KGwRE+69v+4KB4ebmrk2/J71 0DeUU2S8KwGTfOSfxly4wSnuwxE6ewXSxBLMstzrDwfu/4Qx+1hPDmjBBIFj4yhIvEIA Bpzv5Rci63I0JFxRytOShr4IFrPuCGvBtpoTWNY6fs4ENlG/LB3Wqsdm3jFeKSuKXY+s 99k9Y7eyKX8e/aGaI5E7jx2G9iOq+NYuWLfwX/mopoJiTmbm23d+Zsim3b/YwNb0nsuh WEZUY7IFvGoag9ePUe2PMs9DXUvVU6iyp5yk06iroetquCDju7bjtWGovkql1pXOyLvE sdKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HKtA2OgqesJBgzJYv1b+Ap0iRtQayk+lqCYbZ43xI8w=; b=Cxd93v45Cea3WexGqp+e7eH/JPtAdQ9bjV72tcogunpXbSAGPnl+yMq1CF1Ff3Nhrk Qtia3glUXfu1OpElo0xfTd/40rXBg4sGlFx+KyJOxye14Dda9+GL8jMNeXX8BNO4JtBg 7LPuDyFWbrC4/8BlVzZXotd89C90iWUUhDCHYDVUXzRJwhnGTJIKrv2y01TePFjzQ9VV WBRJUdP+0XE8dlz2HgDpNguqS+QvhSa6sYp6t7V/MHfEbNCZm42Boelh/xnULB2TRrmA t9AqqoaMDIMk8UrCysFY7XZZOnLXWpNwPoA663DTxwfS3Tw2pVcH6iTFyvFevpu7u/dN cbng== X-Gm-Message-State: APjAAAVdRlIhtotSI5DuJnpM2TCP1IFM2WCCQ5FqmRShfdQGYfKldL8C xPZVMUZS4/dPzHmgYhowbuZ2DresrwVb6+5WawqXGg== X-Received: by 2002:a6b:3106:: with SMTP id j6mr2342777ioa.147.1554175957400; Mon, 01 Apr 2019 20:32:37 -0700 (PDT) MIME-Version: 1.0 References: <20190227202658.197113-1-matthewgarrett@google.com> <20190401235245.GA29282@linux.intel.com> In-Reply-To: <20190401235245.GA29282@linux.intel.com> From: Matthew Garrett Date: Mon, 1 Apr 2019 20:32:26 -0700 Message-ID: Subject: Re: Add support for TCG2 log format on UEFI systems To: Jarkko Sakkinen Cc: tomas.winkler@intel.com, linux-integrity , Peter Huewe , Jason Gunthorpe , Roberto Sassu , linux-efi , LSM List , Linux Kernel Mailing List , =?UTF-8?Q?Thi=C3=A9baud_Weksteen?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.