Received: by 10.213.65.68 with SMTP id h4csp359633imn; Tue, 13 Mar 2018 06:44:34 -0700 (PDT) X-Google-Smtp-Source: AG47ELux9+1IRuXgvaiJFISx5yw1tYMXxdbfx/Mzq3EnBi5fOEPa6oXjnUxmYSrIdZuN0amykT7p X-Received: by 10.99.124.25 with SMTP id x25mr588335pgc.46.1520948674595; Tue, 13 Mar 2018 06:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520948674; cv=none; d=google.com; s=arc-20160816; b=APp5E9KucZVa9wZaxSHr2kZUMm94egNh1CMAu9f16Wdf+KfTK/tCnJ8ELoYUaF2hLN R1LOLV88CWUTTlJJzw2f+IBaWMTUSNKX1RgwMmYgfziE3YDGRU5VWaxxPK3r7fwEJji0 f9f2mC4CXIoMEIdKJoC7LUH3+FJfi4ird1cu3a3iVTmdXsodvWJ69i7j/E5CVj4TzPPi jrYfxn3/ROdSjm9GpxV+6/4wULIMGaK0FwV22qg+8EdSywgXgBaxr5p5yz1b7qItA08W L2bOp3tVzIthEbWDEMfeegKHbUZuEq2e7/J3UtLhydN2LRE6GyOUG3mI6kDo5LYZbnB5 tN+w== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=4+v4auLJALoLF2YesobdzPUPlZuFiV4USyA6BNVu074=; b=H7wKD1T+8WFSbG2Y4UhAPlK8W2oPX/l5d4iIOpBIRpmq9XdE9KJKD190XxShd8YSmu J0AArdDoFbR4yw6/BKo6n+kAtCq7AHLUwsfhcs8La9u2IIWGyFugxb+Loy/SCtOwT5q0 SIjl5XsixIv2WaZF3FtaDPkqtosvDBMDYE8vClq6luwUw4u8PzOUjXeRVPf8/CJd4cnm 5eOxAJo9JcmaTQMzl8N2ise8WRVLLJKe0XDhdb3cdat4oariCsmnBGYtSj8kMyRAVdZA PzyWbmIvuJoemNwhFabWocSc8yseIZBFFHKZtoZenPB7LjmGL/9sF5E0fqR7XwNJMH53 mj9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bZq0KeaP; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j84si150580pfj.177.2018.03.13.06.44.20; Tue, 13 Mar 2018 06:44:34 -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=@linaro.org header.s=google header.b=bZq0KeaP; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933125AbeCMNn0 (ORCPT + 99 others); Tue, 13 Mar 2018 09:43:26 -0400 Received: from mail-it0-f53.google.com ([209.85.214.53]:52914 "EHLO mail-it0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932572AbeCMNnV (ORCPT ); Tue, 13 Mar 2018 09:43:21 -0400 Received: by mail-it0-f53.google.com with SMTP id k135-v6so170103ite.2 for ; Tue, 13 Mar 2018 06:43:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4+v4auLJALoLF2YesobdzPUPlZuFiV4USyA6BNVu074=; b=bZq0KeaPTAeCa0lH8r8Y3vwlojBwp3dxcAeX/WsiSabRRryI9FV/oV8QTlcssHB005 3Z0g0J0b1FvEzYwogP60jee/dtZgAy28u9+UbRxSmPVDi0aSW7my/B0Vi+BhNCNyGSz5 LvcZvwJaO6dTj+OKNLfMorqnyJqGJXTjPI4P8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4+v4auLJALoLF2YesobdzPUPlZuFiV4USyA6BNVu074=; b=RIzBKoZ3SY2DhPISUt1sZk6T7rH2IpVW2XJsvoHxYdRvZx4o+gbzcW/uOtE6JSU62R KAwh7XxEzpFd0feNmJu+gBPjGf2m5aK8PiGImFOfNSupz7t1NiWXZk2+1IOi5Y8E2oV0 LRCppPijY3Q0Uht09gSxIIaOgpsmugmwLj3LdwUV38F1Konbzfa/0QfZU9XsnZO7a58I vnQbqgCMpFIe5D25xyLKQS0ay2iJAhGg2MG3s0+A/lHrYUg9CPQfjaFA9TnJTxQq0Em5 i9WPNwElIvP83jkgqBFK9Y9UdNWvWCU+yulzO4T63MbNp8VtgcYqAYm3zvO7gm9hpNVI WRnQ== X-Gm-Message-State: AElRT7HDlGsoAiEvcDP7HBBBbTx9twBn4Kyc9PggrQXeTer6BGTVAA/S 6Kqt5Ec18bq4msyUcVZXxcqZoBxK4f+7vnnlzngTcA== X-Received: by 10.36.60.216 with SMTP id m207mr963932ita.68.1520948600719; Tue, 13 Mar 2018 06:43:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.138.209 with HTTP; Tue, 13 Mar 2018 06:43:19 -0700 (PDT) In-Reply-To: <010001621f97c0bb-898ceaeb-668d-4543-8835-dc374ba02539-000000@email.amazonses.com> References: <01000161fc0b4755-df0621f4-ab5d-479a-b425-adf98427a308-000000@email.amazonses.com> <010001620bafa06b-41525407-603e-40a9-ba11-6033b2f5dcc7-000000@email.amazonses.com> <010001621a9e5069-0b1a6328-97e4-4396-9438-b90f5b8c82a4-000000@email.amazonses.com> <010001621b287e42-58955302-cc14-4212-b7b0-e6e358633dab-000000@email.amazonses.com> <010001621b7ce5a3-b80c55b8-be68-4b44-ab52-4949e8ddb8d0-000000@email.amazonses.com> <010001621f97c0bb-898ceaeb-668d-4543-8835-dc374ba02539-000000@email.amazonses.com> From: Ard Biesheuvel Date: Tue, 13 Mar 2018 13:43:19 +0000 Message-ID: Subject: Re: Regression from efi: call get_event_log before ExitBootServices To: Jeremy Cline Cc: Hans de Goede , Thiebaud Weksteen , Javier Martinez Canillas , Jarkko Sakkinen , linux-efi@vger.kernel.org, linux-integrity@vger.kernel.org, tpmdd-devel@lists.sourceforge.net, Linux Kernel Mailing List 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 13 March 2018 at 13:41, Jeremy Cline wrote: > On 03/13/2018 03:59 AM, Ard Biesheuvel wrote: >> On 13 March 2018 at 07:47, Hans de Goede wrote: >>> Hi, >>> >>> >>> On 12-03-18 20:55, Thiebaud Weksteen wrote: >>>> >> ... >>>> >>>> Hans, you said you configured the tablet to use the 32-bit version of grub >>>> instead >>>> of 64. Why's that? >>> >>> >>> Because this tablet, like (almost?) all Bay Trail hardware has a 32 bit >>> UEFI, >>> even though the processor is 64 bit capable (AFAIK 64 bit Windows drivers >>> were >>> not ready in time so all Bay Trail devices shipped with a 32 bit Windows). >>> >>> So this is running a 32 bit grub which boots a 64 bit kernel. >>> >>>> Jeremy, could you confirm if you are building the kernel in 64bit mode? Is >>>> your Android install working? (that is, what happens if you boot >>>> Boot0000)? >>> >>> >>> AFAIK the kernel on Jeremy's tablet (which I initially installed) is 64 bit. >>> >>> Could the problem perhaps be that the new code for the TPM event-log is >>> missing some handling to deal with running on a 32 bit firmware? I know the >>> rest of the kernel has special code to deal with this. >>> >> >> That is a very good point, and I missed that this is a 64-bit kernel >> running on 32-bit UEFI. >> >> The TPM code does use efi_call_proto() directly, and now I am thinking >> it is perhaps the allocate_pages() call that simply only initializes >> the low 32-bits of log_tbl. >> >> Jeremy, could you please try initializing tcg2_protocol and log_tbl to >> NULL at the start of the function? >> > > That was it, it boots when those are initialized to NULL. > Thanks for confirming. I'll send out a patch.