Received: by 10.213.65.68 with SMTP id h4csp200703imn; Tue, 13 Mar 2018 01:03:14 -0700 (PDT) X-Google-Smtp-Source: AG47ELvsW2naHfpYNR2Qj74M4aGV7Ts4jjVHnf9A2OG3Dbk3Ds2otD4sUzDlDVVR4EFDo4CI9m2N X-Received: by 10.98.159.209 with SMTP id v78mr10721904pfk.49.1520928194014; Tue, 13 Mar 2018 01:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520928193; cv=none; d=google.com; s=arc-20160816; b=GUYlgcbhlRozryCJc+rClqLRpEwyUndydEnn9r8pcij09LBFfUaSUhhtgfLzzLfIQS LneaiSA9cXsv2YhfG9vkuVmu49s7mqkeXEs9kEqsq9a7ZlOLnrCutayxW8B8NDkhRVtA nqMfgbjp3gKZ2SSbT1oT9rYpqu6pyovV2CyThFboMY0Kzpz0Ksh06+wbWDu9KJVln73Z zfPd/OASQGJRGnOATaJaU5b34JdGXIf4k9gWHVs/YfItwynbKgvGX+DDqqxDep5d2BkR DmplYkQUUeRR9BqbKOcPV9G9ov2Oi/SbptKgcnawKx0m4McWg9AME6XuPAoU3AIdXD3p 3i/A== 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=2haBTbtBgxbwKxMdm06MNXzx/UobGu1vXiPfSpnzC1o=; b=pWB5ypPcS6IYdqKO4SKo7pjnLopI01b4HBnF6wN1jfVlFxq5djO0MaIiVp0Gm5zyUv TencFEL1vNXDnmuHsNazMaI024Rf3xQaclQxXD2xQBDeSXQQYelNHWAjcW+aks1Q8RuG 4Ohq2IHI32uNeDECnAAJArsB+HsGhlhz+EjzFIiYQNJ9msMIjb1bIBCyjGEp+RgT+tOi umMuB8vusnDRtfm/oxNyUFpGog6Yu7wzezyNuMoe6Bjx+b1PhbkD8gbcpsN2Z7Xg0z3/ StpYpKPY5K+JiYgnx9wNp7Ym1CIi4N5DHuzt+An9FuKiWnXgbpMtmVRuk9hZ2HIymOP1 VfTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aiA1Wnr5; 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 c12si1320185pgn.726.2018.03.13.01.02.58; Tue, 13 Mar 2018 01:03:13 -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=aiA1Wnr5; 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 S1752148AbeCMICF (ORCPT + 99 others); Tue, 13 Mar 2018 04:02:05 -0400 Received: from mail-io0-f182.google.com ([209.85.223.182]:35083 "EHLO mail-io0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752041AbeCMICC (ORCPT ); Tue, 13 Mar 2018 04:02:02 -0400 Received: by mail-io0-f182.google.com with SMTP id k21so10702629ioc.2 for ; Tue, 13 Mar 2018 01:02:02 -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=2haBTbtBgxbwKxMdm06MNXzx/UobGu1vXiPfSpnzC1o=; b=aiA1Wnr5vyPDCEzYZHsYdQT0vMdQfijd14iVIUgCgtQD8Z5cClX3lAUHGPNUV2cJ07 QdWyMLhvbfTzY/lMCO4LRE+hIcItR/PkvbJlN2YqhwG7ov5aeBtC+4UsHhJNgXAfVEKx qGyFWhnv+dqwW1Thm2iASk+SCzhCxerM7l9hg= 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=2haBTbtBgxbwKxMdm06MNXzx/UobGu1vXiPfSpnzC1o=; b=cAEVsOIdYygql4OvoAIw1FszoR3AFQRa3dhx2cc98sKB4oX74qAEvkA016575SRPQc Beqqvqrc6gXPqPcow0lJf4c+2svXH1oSoy+5rGh2TzOw1TSUUjTX/jcu9AgeTx/9S25y dHBh0uCVmFy3p1QQKSG0orUDK6rXYN3rWZAFU277FlBWsUb1L9ztLi66p/DVtL1dFqhb DqUOK83+RyvI/sQlor96rYCI8AkvYc20z7FRyztvznUJyZRn8bfqggBQjAjmdMbWtJJ5 Pl4Usk6mrhMUcC7bgvs/FuGunPJGtHLpXB3ZygUVYrS+1czJtP/HdoP1Qkxym59uTsBJ RAEA== X-Gm-Message-State: AElRT7GHmSp8LR2+/5Epb8vIhKD7ZnKGSpsktI57LzzYWb9yHAnZHZNG P6x5IHK08tcwArruDPT8S450RPRsd9Hj1FuWbivxzA== X-Received: by 10.107.5.199 with SMTP id 190mr12316253iof.107.1520928121730; Tue, 13 Mar 2018 01:02:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.138.209 with HTTP; Tue, 13 Mar 2018 01:02:01 -0700 (PDT) In-Reply-To: References: <01000161fc0b4755-df0621f4-ab5d-479a-b425-adf98427a308-000000@email.amazonses.com> <29c1640a-cf19-ca19-7de9-96f202edfb5a@redhat.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: Ard Biesheuvel Date: Tue, 13 Mar 2018 08:02:01 +0000 Message-ID: Subject: Re: Regression from efi: call get_event_log before ExitBootServices To: Hans de Goede Cc: Thiebaud Weksteen , Jeremy Cline , 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 07:59, 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, *correctly* > 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?