Received: by 10.213.65.68 with SMTP id h4csp199541imn; Tue, 13 Mar 2018 01:00:47 -0700 (PDT) X-Google-Smtp-Source: AG47ELtjkDEqbpqQEPJG9ebWyI9JjFHFD2KO6uQCXq8UhPHrXivvBI2rkMyvJiieWRW4iASmG7i1 X-Received: by 2002:a17:902:144:: with SMTP id 62-v6mr2363578plb.202.1520928046989; Tue, 13 Mar 2018 01:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520928046; cv=none; d=google.com; s=arc-20160816; b=uLuT6Hoiu2RhSxnKDGJ7y+B1GotEm7KN3Kh3sHSO+ve5sg4Af/P8/2TE7oUXgiaLuX UwgGqDQ1qzZpxt+i3z1KOdprZlPamGumVXZojWKzascM0i02kkiRpsBnvgR9Gu6pMmEn shDFlSuSaXr+q7dsBbdvj0NcnvlXjoEGQwPJ00KoyFkvbUWFrqMQMjy28siC+kO1CIJr t9z6GnuwPCZjo9+RjTeiznVvjSFyi4lTMEgZSUQvlJLQ1CGbdWipTQTQEZhX2pQOwatT cyg8LCz/LyhS3Eqs4OWBcId9loMSiBqUHJvK0LLzMkijV36D/bnRyik9jKLy8An3VclJ XW/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=4Kiz4Z0JiebifWQ1TTJe0rxHVymUSlpciGSSZ3nYs2k=; b=xKJjYUyrEC8XLCdfNqeSL7ZjYsRTT0jh7gzGGH81cjO/8ubUpSoPyfN6AQr5HkOanS 31P7QAT5YAM93e2ZCJPRWaN36JcY6SHAxAFbr7hE9btOtyX15cWl2B4yGsK6JagftXtJ QA+YTeKbXTZPXFY1ZlZjsFZl8zQSdDFwyuV2gcyd792mWtRcUl5LabnuG0o11BSJbSum i1D/TIXL7Pm1HGMIym27L6O9zHEDY41Vog2S5SHZrZAK5pk19dmkRWwC0D1Ew9mOfEiM 0gSAdd/mzJXBsjdv7U3Z/5hh3lnT2GfIlxB5vjx2IkQRymL4uhCJtHjBIGL6V77IM/fh eXuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NKdbvEhU; 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 f9si1550784pgq.799.2018.03.13.01.00.31; Tue, 13 Mar 2018 01:00: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; dkim=pass header.i=@linaro.org header.s=google header.b=NKdbvEhU; 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 S1752202AbeCMH7h (ORCPT + 99 others); Tue, 13 Mar 2018 03:59:37 -0400 Received: from mail-io0-f181.google.com ([209.85.223.181]:35781 "EHLO mail-io0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751944AbeCMH7f (ORCPT ); Tue, 13 Mar 2018 03:59:35 -0400 Received: by mail-io0-f181.google.com with SMTP id k21so10694621ioc.2 for ; Tue, 13 Mar 2018 00:59:35 -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=4Kiz4Z0JiebifWQ1TTJe0rxHVymUSlpciGSSZ3nYs2k=; b=NKdbvEhU1GeGNUo/STOjbcqUk0/2Sos2TF3LaUOJJx5IChKNX0sNRbJE2ay4uoInjz BLhdLCGdocm6/ZFrNrquIiRJCljRS0fgD/WWj/l7ucwAeVywGI/rRFjNnLvJ6kcNCc93 QAl7NABomQgKsBO9glmePurdWjA+vIAFSnqO0= 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=4Kiz4Z0JiebifWQ1TTJe0rxHVymUSlpciGSSZ3nYs2k=; b=QG2VRsQ+sVJNnzowPL5DN+V4MZrRKJFXkIHbqABfoZN1I6g8gQLNNVKhk5tcWFfqLx 8TxmxkX9zKHoupzWkym3SvZpaET1zQy4ws2+PN5rc4NqFR9W7p1R6TXkh847D2uwI21f xUfrmzQS7yjp1UBX5PCPIHC15qw6TaafkH+wCuTVGYWcs/SMUpC5Re/4cRp+8gfDQvnX meBZMzvnZZ9CAWhWN5kfQx9KKYSYoM1v868iFg2SJsu0I0AuZ3iRT8vnMVNpLVVU8WhK 8UCw59klrr4LZnKirZx32mQiNFIwSPnXhc3lSWYNbt49vX2GQrbaZi+/gIh5sbuEqSJ6 W1OA== X-Gm-Message-State: AElRT7H4BUrKcbWRFxcZwP4tlk7BT6eSTPu0xnpyzVMalRPLYTZlsIWh pV5pRSQYTW7is3OSEZVkonB3GDEVneTx7SQ4oFGJ7A== X-Received: by 10.107.56.69 with SMTP id f66mr11462629ioa.170.1520927974797; Tue, 13 Mar 2018 00:59:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.138.209 with HTTP; Tue, 13 Mar 2018 00:59:33 -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 07:59:33 +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: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?