Received: by 10.223.185.116 with SMTP id b49csp4913395wrg; Wed, 7 Mar 2018 03:17:35 -0800 (PST) X-Google-Smtp-Source: AG47ELs7RM3v+jpPP7X9Z1OL32uHQSPMqi4BXcP2Sr3RpaRjLvF5qo+go4CFam4dRE2+c0b8WQmM X-Received: by 10.101.65.71 with SMTP id x7mr17950714pgp.203.1520421455108; Wed, 07 Mar 2018 03:17:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520421455; cv=none; d=google.com; s=arc-20160816; b=WGj6pP/Rr8KzwhJ9a0mh0JMsWScLKoymFCJ7XXB1Y+v6AfctlIflKBdzHO23uNumLL Ai8Ny3SKrf0VsyOOi8uyMI/XjM9IFxRGJlKhh6iw9r0z+niESGi2nuPFRCqXBS08OeDo 9e2ryeI8xbrEHLeQded43227NpTRxVbzzM7jWeQFsvFoiFTrsk/L+eiiBD9ETzd8u56J Y1Y6HsbLYayhCkVSRFUIgzL1cuSJiTX2aLumORTTcbCK+QaNmxMm2rqD5AJsDDuAupYv ApP8WtaBEKO+3+MVufzoPvAZpKCNqcWLoKl34pd12TxoNdLWWWrPWCpbCRXQd+mjAl6z o7ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=T20vsgSuGd+8vCKuI42o8r4YHME3aTTbK63uymYYPxY=; b=mdsl5JCS94u2PP9/f3Z4KK4qylxABYxdsyv6k0hY691mKFJO3Bfu4ULAKRu2Rbr9de ubpK7ok3M4uZsIXKMJ5tUD3DOwLlE3+F2KCViIhPhZlyIo+M9q50HlB81chzCqrQ1HKH yMH3S4x7zSlm0E1HFEbqAlrs/SXLcNn3slsQWW2yla7YhET2CVC4Ilm2DmFD/fNP5d0a HVzins3XkcnYyUZPxOYRMwF4EIH0A8Pu7YSoyAk7BV2Tn34tZMusqfw6UuryoLd+ioKs SHTKyW/2JNTGZu6Ejvi3eiJFQurM4JYQ50aq1nv+7VrkJXXqGDdM9QLYPEps1CFi04wB F7WA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y62si13727588pfj.204.2018.03.07.03.17.20; Wed, 07 Mar 2018 03:17:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754178AbeCGLQ2 (ORCPT + 99 others); Wed, 7 Mar 2018 06:16:28 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34337 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751189AbeCGLQ0 (ORCPT ); Wed, 7 Mar 2018 06:16:26 -0500 Received: by mail-wm0-f66.google.com with SMTP id a20so22238730wmd.1 for ; Wed, 07 Mar 2018 03:16:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=T20vsgSuGd+8vCKuI42o8r4YHME3aTTbK63uymYYPxY=; b=BNULwf/S902Uz7O+SPioxyuLJxc8dGsx5BSy8Yhi2RJgMlrQqKota21sgLMG6h2+5U qEtd9OIvTQL0eezWUGysHK3hVxIdMnnoWbqDa5vBeaW7hOWkbysuLfazEeucZwxZtzN7 17lJZZTXMZgcJi/WZnYDye5lGnbQckpW/+4EEziR+hD0Kn77nX6GTodXdsXtqJR8R2py wpt30HGzKfiEGNvB9dmZFdfWSSoIqUo1bu+dYa0VZfXMyKJvrVqmZ8r4MAZFIQulQg3f URlhUSzf92zdiPUYXm2fhfdh3GYDqSBqXdth5cP8TvLMFde8SvB/H2OSjWE4ov8U5yNq Q/pA== X-Gm-Message-State: APf1xPCCnSf2Lf3PGxq3LnzIAs2DJZN6K2T1NEbidLTOBlD/gpS6+xPq cNC7jM9KUdewszTbsiNCDXNTftDCtB4= X-Received: by 10.80.172.105 with SMTP id w38mr27209921edc.136.1520421385061; Wed, 07 Mar 2018 03:16:25 -0800 (PST) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id w1sm4806311edl.47.2018.03.07.03.16.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Mar 2018 03:16:24 -0800 (PST) Subject: Re: Regression from efi: call get_event_log before ExitBootServices To: Thiebaud Weksteen , jeremy@jcline.org Cc: Javier Martinez Canillas , Jarkko Sakkinen , 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> From: Hans de Goede Message-ID: <185d1c06-c379-ee7d-496b-2f4e49f8c9a3@redhat.com> Date: Wed, 7 Mar 2018 12:16:23 +0100 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; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 07-03-18 09:41, 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? I've the same device as Jeremy, but I just tried a 4.16-rc3 kernel and I'm not seeing this problem, BIOS settings all default (I loaded the BIOS defaults to make sure). > 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? This is a really cheap Windows tablet which was given away for free in the Netherlands with some home-schooling language courses, or something similar. Both mine and Jeremy tablets come from a website in the Netherlands where people can buy/sell used goods. Most relevant for this discussion I guess is that this device is based on a Bay Trail Z3735G SoC, on which according to the internets: https://embedded.communities.intel.com/thread/7868 The TPM 2.0 it contains is implemented as part of the TXE firmware. Since I cannot reproduce I'm thinking that maybe Jeremy actually has some log messages in the TPM log, where as mine is empty. Is there a way to make sure some messages are in there? Regards, Hans > 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"? > > Thanks, > Thiebaud > > [1] https://www.gp-electronic.nl/product/7inchtablet > [2] > https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface#UEFI_Shell > > On Tue, Mar 6, 2018 at 5:00 PM Jeremy Cline wrote: > >> Hi folks, > >> Commit 33b6d03469b2 ("efi: call get_event_log before ExitBootServices") >> causes my GP-electronic T701 tablet to hang when booting. Reverting the >> patch series or hiding the TPM in the BIOS fixes the problem. > >> I've never fiddled with TPMs before so I'm not sure what what debugging >> information to provide. It's got an Atom Z3735G and the UEFI firmware is >> InsydeH20 version BYT70A.YNCHENG.WIN.007. > > >> Regards, >> Jeremy