Received: by 10.213.65.68 with SMTP id h4csp358478imn; Tue, 13 Mar 2018 06:42:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELuxcmXgtjOm1fRFJpdqbklt2YfOfM0YBVYhw+IGMWPnn9LAnXgnwSEQLDGOibGTRsn2UAl7 X-Received: by 2002:a17:902:5852:: with SMTP id f18-v6mr595294plj.289.1520948547164; Tue, 13 Mar 2018 06:42:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520948547; cv=none; d=google.com; s=arc-20160816; b=qKeht2DFN2uzOb9UGx7N/Tm9O4kAFUAlH71yIMmKLhdr1bTLFRQfZTdb/MUt4xJASe EwmXwMFey1pd/7jRDWx5RY5dLHZO+FZLVxxb7oxauy6rNLZABCXYzRv/hq2BIKKaZUOt +wdDEPIyobx4oLJuSq+ZqTYJ5LW6Uua7ttiA/ldZvyocPf4ArLENkT6MPpCTkgeHrJpg NnQFX19mktpPkXgNTc7RDJ4MxGXBqlb+ABrMh0DZbly6ZsRPQW55fJmHps0ilYXSy2Ed +X4jXVhhK1GDFsvkfBDNw9WRXpZ0m9uJGIGWuPEzSH2F9c2YpJO6R0wjpYnTTAg2OXPz FPpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :dkim-signature:arc-authentication-results; bh=kJVkiADb5LdrqMogL/f7RBII+DqyPLEY8huGb85RJFk=; b=Vi0dzNqQtpokp/5O/vHT+Se2ZiBGtV3jKrnuatd4U4l6CTx3c25lE28/tQiO//9uX7 puu9lIxdl9bjJVDFJ/hBn40Zg1g7wBST+gcaRftDFkFVP4nZ7TMkpK4GnhaTa7dySBT1 1qIwFwI2Kc+kFDttAu4Ri+RDu/9i306yjixtg0bgNF2tG4KV3YZRh52ts35GjWUng+MZ cP8mpiFhq1914onYUcfzF3I326clP3Mdi+tpKCZHYac8UgikkMMXzZmNhyox4JssnJNE L5cGuqzva5Gew9DPKkUTLsunrxaztjFpSpG4JpDOyKK39wWEuvWBfnVVgXP9mjsUO/DQ 0Utw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jcline.org header.s=rdybrs3533vx7mghocfwl3vdwgpl2v5u header.b=UDgbKoHW; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=DZg7XjsH; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y19si138628pgv.139.2018.03.13.06.42.12; Tue, 13 Mar 2018 06:42:27 -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=@jcline.org header.s=rdybrs3533vx7mghocfwl3vdwgpl2v5u header.b=UDgbKoHW; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=DZg7XjsH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932677AbeCMNlG (ORCPT + 99 others); Tue, 13 Mar 2018 09:41:06 -0400 Received: from a8-53.smtp-out.amazonses.com ([54.240.8.53]:45090 "EHLO a8-53.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752261AbeCMNlD (ORCPT ); Tue, 13 Mar 2018 09:41:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=rdybrs3533vx7mghocfwl3vdwgpl2v5u; d=jcline.org; t=1520948462; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=I9B24SKJ61FOwmLFvtGHsN/H0nFTdibhbn6t3vE8ehU=; b=UDgbKoHWu+6TfL3QBZ6t+RCmQidwkRQr3zNwkMeW85HGIID0MjX2vQcpAmws1wN9 ptwJVMmjYuMV70at8FWsOEJbRTObZH2TTeDpEAECCRuBB7xcr5J0Otz0AoD8/SSi/xo +ZsfyKVvVhEnGNV23HkdNK4e/hoL23gR+V4cokdk= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1520948462; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=I9B24SKJ61FOwmLFvtGHsN/H0nFTdibhbn6t3vE8ehU=; b=DZg7XjsHD2VracVXMN1t+IfYqpKbXHOHq15LNMj/CVZ/3pu+VXDKZydQd/N+oikk MRiuZ2qqbYZ88qAm0gbdBgBwZEtdYc8kBodmgAFmh64O/jq9kdy+ZdZ/D/AEP0y22fA KzByAs/1f1jEbeiOvt/83/FsAiORyM7eH8ca6B+s= X-Virus-Scanned: amavisd-new at jcline.org Subject: Re: Regression from efi: call get_event_log before ExitBootServices To: Ard Biesheuvel , Hans de Goede Cc: 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 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> From: Jeremy Cline Message-ID: <010001621f97c0bb-898ceaeb-668d-4543-8835-dc374ba02539-000000@email.amazonses.com> Date: Tue, 13 Mar 2018 13:41:02 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-SES-Outgoing: 2018.03.13-54.240.8.53 Feedback-ID: 1.us-east-1.z18Isoc/FaoPOvCyJyi1mnTt8STwoRuibXVNoUcvG6g=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Regards, Jeremy