Received: by 10.223.185.116 with SMTP id b49csp6622947wrg; Thu, 8 Mar 2018 10:21:40 -0800 (PST) X-Google-Smtp-Source: AG47ELvDBbSQXWaiLVNhx16fjHP9NEATDopA4BI2/MC4+7DbZzonC/b9Ol2XSE3DuPCfckZbgGH6 X-Received: by 10.101.100.200 with SMTP id t8mr22333106pgv.120.1520533300780; Thu, 08 Mar 2018 10:21:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520533300; cv=none; d=google.com; s=arc-20160816; b=DeTaMD5UyawRVO19J/TAiIh3DuNcp+V+28gNv4lgXcWyg/nEtJLl5maXUNCKXdD3Xr PrRMhCJT4KGWxtjHCHTuSDdhhudxQGjzCnuYJSipj/k3LS6EAyuw2VubYK+gBq/gqdVz 9qbKsArBInJ68uYZh0OWBvNbqRTUzfI7j6jS6RrVZQVHQJ4JOJ9IucAiwjOD7fWGO3cq 6BVJ+j7CNaPnaIPWrbk5i6R6jkgtniKzRLCJMnjjri/OkcSFzfuB0ueEnODDegz48nzh oB1w/NP1FswpdYZxYKseykllcjD3XwSZh53k3UN+L6gxjQV61Wf03q6tyMROCDvFQaw6 +lkQ== 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=B9yiyw6N+3Z4B6deKxwfNDeho9YcKT+vhg9nNh9+Bec=; b=P6VUCiC1rGPOSvvgXfE5VagUpROTT+WkV0Py1whSSQuciRqgTIPc2044o9hMxW9zze GoFN8ylZ542FQ3uOsdfZR+T6XcRCY4WvPPN2fznMEcnEVMFMK/PMXLJInd+7nTaqDi7l /g0/EBwmywc9nRxlopSsRYLiQK08R6Lumr3trfzMe/M3jRQnUtFIrUQ/jsCJ1BVJUYRP 5CuTct1dpveCnkgXA5n7QC0euHiaSnTJpTc2ZEwCbhSWPKnz2c2KKNoKqVIpKKOYwCVQ Rz8xHMQjkwiCh++97/SzfW/CujKF42MRmJAeaUmBix5sGpPT07IYgrYKeN8NNVnzrxFw O8Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jcline.org header.s=rdybrs3533vx7mghocfwl3vdwgpl2v5u header.b=eRAm/T+e; dkim=pass header.i=@amazonses.com header.s=224i4yxa5dv7c2xz3womw6peuasteono header.b=n2CIW063; 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 m6-v6si3677680pll.93.2018.03.08.10.21.25; Thu, 08 Mar 2018 10:21:40 -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=@jcline.org header.s=rdybrs3533vx7mghocfwl3vdwgpl2v5u header.b=eRAm/T+e; dkim=pass header.i=@amazonses.com header.s=224i4yxa5dv7c2xz3womw6peuasteono header.b=n2CIW063; 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 S1756126AbeCHSUJ (ORCPT + 99 others); Thu, 8 Mar 2018 13:20:09 -0500 Received: from a8-57.smtp-out.amazonses.com ([54.240.8.57]:54714 "EHLO a8-57.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755957AbeCHSUG (ORCPT ); Thu, 8 Mar 2018 13:20:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=rdybrs3533vx7mghocfwl3vdwgpl2v5u; d=jcline.org; t=1520533205; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=U7QQa+nbAvn5yit49P01SpoTo0XOeO7TO4OLQuZiRFo=; b=eRAm/T+eBKV8GWTzR+StCZwpkM2Kr14KiCI9VmaEYmCL9VtF0eO/ORovg72f1scC kC9tI7mh2iIOOHPIEa97YyxYbhR2RAxgosHyvw0Tr/qg2++lJtjp6jWMh63YFZQeYQT 9YOxXSox8anAc/ACPHjnKZ4ZX38LAekfq9FbbZt8= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1520533205; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=U7QQa+nbAvn5yit49P01SpoTo0XOeO7TO4OLQuZiRFo=; b=n2CIW063aU5EK0vgomRUQmVten/6iUjloCrsWCmcrSvaIs34gUFQ9pMzI58H2ycR Anh4/q76s84q/l8MFSmwYAWZZE11l+Gbd4PGEcY3kT049kLtzXJE7ds2vWtpIou+RA0 n8XxV66jwmWSl6Xj/KJ/1tMwC2BFWE9X/1SKLTPI= X-Virus-Scanned: amavisd-new at jcline.org Subject: Re: Regression from efi: call get_event_log before ExitBootServices To: Thiebaud Weksteen 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 References: <01000161fc0b4755-df0621f4-ab5d-479a-b425-adf98427a308-000000@email.amazonses.com> <0100016201863c0f-70600bd6-12d3-461d-9173-e4d61e8d09d5-000000@email.amazonses.com> From: Jeremy Cline Message-ID: <0100016206d770c7-11c5bffc-70e7-41bf-a62a-d8aad8209f7e-000000@email.amazonses.com> Date: Thu, 8 Mar 2018 18:20:05 +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.08-54.240.8.57 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/08/2018 03:45 AM, Thiebaud Weksteen wrote: > 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. I put everything I know in the other sub-thread. > 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 for the patch, here's the output: Locating the TCG2Protocol Calling GetEventLog on TCG2Protocol Log returned log_location is not empty log_size != 0 Allocating memory for storing the logs Returned from memory allocation Copying log to new location At this point it hangs. Regards, Jeremy