Received: by 10.223.185.116 with SMTP id b49csp6057361wrg; Thu, 8 Mar 2018 00:47:11 -0800 (PST) X-Google-Smtp-Source: AG47ELuzbfC8tYM0TWt/qMmhRYeOEcC0ibi4JedvtKG8YEC2UGnQIdpirXpBbexK8I12xnMH8yz9 X-Received: by 2002:a17:902:51ee:: with SMTP id y101-v6mr23694427plh.157.1520498831475; Thu, 08 Mar 2018 00:47:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520498831; cv=none; d=google.com; s=arc-20160816; b=FcT0qidkt8QRbgpx9A4YS4t84wZsvMN8vUbZaigL3zRcBJ/SdNP0P6VqYBtLR16qwd BXM2XjWdfBBVpmzRigJP+UYgAZGbMpLNMvBnGRAXB6xQDA1IzIFrL44CiqWe2sT3QbCG 3myDrjfiAedvgDesQuOBz814D0jqDYGOE+sqQHqwM6nMowyPDvSsbiTVpjSfI14hvRk5 RYbP5lhmxNzpVLEkmBLZ/oID27yTb5l1tvgGvFjUh2SgFs6Cul6MiNRBxVpamWtPiXEJ WGlPHaNIR3aTBajoIXUk9ghhrLAyJDy92mNQyQH/pk69MGue1O4WtPtP/ZU63x3l13oT 9zVg== 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 :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=UydWNldTABAZAzYo4zbnuk7BFHUSJunZNrwi4uNGLM0=; b=Gdp09BoJQCN+ygN4j+jXD3xv42jXbEmcAHQl7IN1vHAH4l7d7OHaex85UbxiUfQF6k 6DVqu+R2Jp6vqJeTtcezxPf5G/ug73ZS0aTFl8UTmNsjdAWoDHxT0Wb/i5KhaU1Vy/vO rv7vXTUkcpnluhydVL7HkugNYjXKaCk4CNnFPhkGFVbPVRxUczRxXA0R+aZ8QdvpYgzi UgGn+ifvmJBh5eSYonsULB4tgVdozk3vQIGoV1jqDlPJEC2Gv/rX4sV4M3/U3A2rdOWP xjCx+Uh3ORg+FjX6ScxPte2HJU7ghYZv8Y23Ac+R90FfFvwTWnuWpSB38B9xD1CHCAhz pKeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=B47B/ZZP; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w61-v6si14431491plb.733.2018.03.08.00.46.57; Thu, 08 Mar 2018 00:47:11 -0800 (PST) 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=@google.com header.s=20161025 header.b=B47B/ZZP; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964933AbeCHIph (ORCPT + 99 others); Thu, 8 Mar 2018 03:45:37 -0500 Received: from mail-io0-f172.google.com ([209.85.223.172]:44777 "EHLO mail-io0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755509AbeCHIpe (ORCPT ); Thu, 8 Mar 2018 03:45:34 -0500 Received: by mail-io0-f172.google.com with SMTP id h23so6194553iob.11 for ; Thu, 08 Mar 2018 00:45:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UydWNldTABAZAzYo4zbnuk7BFHUSJunZNrwi4uNGLM0=; b=B47B/ZZPkGEyxukfUGOFa4GazjSJ9jsSqBvcVHW+7rTx4+yfmMkfttRfv3yyfhJwkE oAMt2cOZqcGggzQEBeUgFWGPNZzISZQfBuExwSbQRuHbk/TXYOBWT40cSVlKmsxLuJSO zR2IJttImoWZXEz9wwDAhTFRr1WIeoShnqswm5NqYN3lIzDO7gNO9dA3+ruOpo8Qwdh5 gagG5RZx7cOfGm0s7YQ78Pdz6mADH1tXqyyvGX7swUJiLdZLY5UzEGxX1Kf77LdxoWKe 5PMHhClCq95+WZtSZtmVif79JpEHUQt8JAPKZPJV0ibQ81SwKAihXQF1fNTHa5PaUG7L AX2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UydWNldTABAZAzYo4zbnuk7BFHUSJunZNrwi4uNGLM0=; b=l3Z3LG9+FZHM6Mx+VBhNeGFvhsSMF2CI+FfwrKwkIGAeKbrW78zR7unWQiaiWn8XOp JFmGaFNKV4S0FRHjmPs2KfFoRzFcGnAA8OKtyoOGDlR9fzia8wzFOLoMtXapliLXLt7L mvGdgkEQtZOndsLmtxuE734FFNjzwZgxADXAcEO8vYotKnix8EB1Vgb7O6n5qFRpRZFY 8QrV2eTKtCo3uxdaGVrRQMI25++BoUPFAzkqAkuqzGD8BE2rEWIP20QajSX9XVwXT8Ko 4j0X0bgukvin1A08uP2KfoKirHlX9hj1HdIeWviESJbZOae1d59x6euzE194IztJt5aV DdAA== X-Gm-Message-State: AElRT7Fpo4gixZJoqMdiiOHYnqstKFT3z49a9CEasWwPM+nMKh8dQo6T P2IQ6S9Q6qCrn/oi53I9CaIiIMgK36sGa4j8erdCMQ== X-Received: by 10.107.186.3 with SMTP id k3mr29298617iof.29.1520498733668; Thu, 08 Mar 2018 00:45:33 -0800 (PST) MIME-Version: 1.0 References: <01000161fc0b4755-df0621f4-ab5d-479a-b425-adf98427a308-000000@email.amazonses.com> <0100016201863c0f-70600bd6-12d3-461d-9173-e4d61e8d09d5-000000@email.amazonses.com> In-Reply-To: <0100016201863c0f-70600bd6-12d3-461d-9173-e4d61e8d09d5-000000@email.amazonses.com> From: Thiebaud Weksteen Date: Thu, 08 Mar 2018 08:45:22 +0000 Message-ID: Subject: Re: Regression from efi: call get_event_log before ExitBootServices To: Jeremy Cline Cc: Javier Martinez Canillas , Jarkko Sakkinen , hdegoede@redhat.com, linux-efi@vger.kernel.org, linux-integrity@vger.kernel.org, tpmdd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org 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 Wed, Mar 7, 2018 at 6:33 PM Jeremy Cline wrote: > On 03/07/2018 03:41 AM, Thiebaud Weksteen wrote: > > Hi, > > > > Thanks for testing and sending this report! This patch relies heavily on > > the functions exposed by the firmware. My first guess would be that some of > > these may not be implemented correctly by the manufacturer. > > > > Could you share more information on this specific device? > > Do you have any link to the manufacturer website (I found [1] but it is > > based on an ARM CPU)? > > Do you have the option to update your firmware? Is a copy of the firmware > > available from the manufacturer? > I couldn't find a copy of the firmware, unfortunately. No worries, thanks for looking that up. > > On your side, I assume no error message got displayed on the screen when > > booting. Would you be able to try to boot in an UEFI shell [2] and execute > > the command "dh -v"? > Yup, no errors on the screen. I've attached the output of dh -v from the > UEFI shell. Great, thanks for that. There is a module that exposes the EfiTcg2Protocol (TrEEDxe). So I'm going to assume this is properly located and then called. Unfortunately, this is so early in the boot that we can only rely on the EFI functions for logging/debugging. Jeremy, Hans, could you both describe precisely how your boot is configured? This feature is only triggered when booting the EFI stub of the kernel so this may be not executed if you are using something else in between. Jeremy, would you be able to modify the efi_retrieve_tpm2_eventlog_1_2 function to add multiple efi_printk(sys_table_arg, "message\n"); to test: if you get the output on your screen; and isolate which call might be the cause of the hang? I can forward a debug patch if that helps. Thanks > Regards, > Jeremy