Received: by 10.213.65.68 with SMTP id h4csp259377imn; Tue, 13 Mar 2018 03:32:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELv57bBSWZFOjGlKVCjY0zCwdq906gKJp1ttgTFkyNbCSz/7GmfphJogIq4lvnvAqVM26vpe X-Received: by 10.98.219.129 with SMTP id f123mr69478pfg.195.1520937125558; Tue, 13 Mar 2018 03:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520937125; cv=none; d=google.com; s=arc-20160816; b=qdrp829w8sPHsrmMjLy2T+wXw6+JhN6JFYewHbblFiZx90ulo1okQth6vPGeV0zOBV yAx3nEK/H3Etoy1GR4ysH9UH7B/bJwHUtcf+7EVFAktN/1h8H4VUvtwhKLuIGxFMUbeI XKLEJHzK/rKUedFlUBWJx9Pqoqi6scpZe8uh/bVDbrSNG7iiV1vt5upcNgdrMTdm3p5j 7YNl2Ke9/Xu/g5rFwQVwOyNSOP9F7isjcDwchSuTwoDLguJWcL0pw9xya/0tTB6HGur1 gxz32ilkCGPSjHFcrZMkw6LahMWMwMJ/9BPo4XFFCwqjrrBFSbKlY5Noh5TA/NyMkbEf +OcA== 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=+aO+ClyMljVBsLnA4lBntyQDS0bTkkfGjproEMfIBLI=; b=z3yfc6WolgrePfMUX+qBUsUNFyVG+kb2xuw4CtoGDXK8HSwGiVZ5ValQdFANDbdH07 QVXQq73FhNDnp/vroPJhMXrMwqhc42FM+LuzAqCHN0f3tdYiuqheCU3oDq1IZKv3+g7h Jhn1OBxyrfxZDBNY1Ib3SEchM9LDLqIdCe+5nm52EF7GitnyAvLgTJAUdUTgubt7aESA /QJNlTCACwsKmOV/ulI9r399fvgh67knlNUCKOAPSoSJz73bkxQesfTYAmfk9CUf8Mx0 tAJQXID8HtcaTf1sNK+gp1pi9FyCRrB8ktoeXm7YXJYf+V7goFVq/2NDKbrBXvNFu1Eh +eYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CGmDA/wf; 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 f12si8736pgr.795.2018.03.13.03.31.49; Tue, 13 Mar 2018 03:32:05 -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=CGmDA/wf; 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 S932715AbeCMKax (ORCPT + 99 others); Tue, 13 Mar 2018 06:30:53 -0400 Received: from mail-it0-f46.google.com ([209.85.214.46]:35921 "EHLO mail-it0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932540AbeCMKat (ORCPT ); Tue, 13 Mar 2018 06:30:49 -0400 Received: by mail-it0-f46.google.com with SMTP id u5-v6so15589956itc.1 for ; Tue, 13 Mar 2018 03:30:49 -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=+aO+ClyMljVBsLnA4lBntyQDS0bTkkfGjproEMfIBLI=; b=CGmDA/wf64894PJCk+iLk/8OxL6kZULW7ETcMlOM3OnU0dfn+DfllEHNDsN+Dg6Ae6 UsRaM1/dyZfnEcSFmtulUSCJqISoJzpZwW+Mfm90tyiivwJL9zFgOrEp85m5RlLKleqp 0ZTWwJDB8UY5ZDfjdS/H4j8QNS2IS47KW+Pz8= 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=+aO+ClyMljVBsLnA4lBntyQDS0bTkkfGjproEMfIBLI=; b=Y5Vs3+7a7lt8brOkl4oD4gQAjO+rKI8ZiV9nxhpiCo2tTovn55i7cFMxVZB/Qv1KC0 9ybQh4kdUBvthBm1FKIYmzDoUOqCWy7AMhpVYhsnEZ40KukLQChqmL5BK+49Qiv72vtk v+/rglsKswe6T5Lp3cyGO/l/lOeR9J77HFlJbZU5oFhK9s8FMpNb7mG9lxyRUzOb+JSh DJcdyzDwv7H8ACG9i7kl1BPnMF17B8EmwcBKoW+r3Ckh3oFznJpv9b4uyK19OXbskLt1 DCyUsHb5myJSRltwbKPxsaWSOggurRxHkhi5++sVhvqS/kYtilwM+szvSyNk7mLdDrcg 6dqA== X-Gm-Message-State: AElRT7GM0rznfnyOUk65x3uKadVsIEo2F5AlFpWhJobcEmjm5M7c8205 bwZpScXSxibUaXXUQye8awEjzAGtU/xhtIqXCE/yBw== X-Received: by 10.36.90.5 with SMTP id v5mr270576ita.138.1520937048829; Tue, 13 Mar 2018 03:30:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.138.209 with HTTP; Tue, 13 Mar 2018 03:30:47 -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 10:30:47 +0000 Message-ID: Subject: Re: Regression from efi: call get_event_log before ExitBootServices To: Thiebaud Weksteen Cc: Hans de Goede , 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 10:23, Thiebaud Weksteen wrote: > On Tue, Mar 13, 2018 at 8:59 AM Ard Biesheuvel > wrote: > >> On 13 March 2018 at 07:47, Hans de Goede wrote: ... >> > 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. >> > > > Yes, that was my guess as well. > >> 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. > > That make sense. Would you know what happens to the arguments of the > function in this case? (I'm thinking &log_location ?) log_location and log_last_entry are always 64-bit quantities, and efi_bool_t is always u8, so that shouldn't matter. > Would it be safer to skip the code completely on EFI_MIXED systems? > Obviously, but I would like to avoid that if possible. Let's see first if we've pinpointed it now.