From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F03CC43219 for ; Mon, 29 Apr 2019 15:30:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 59BD320656 for ; Mon, 29 Apr 2019 15:30:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728761AbfD2Pa5 (ORCPT ); Mon, 29 Apr 2019 11:30:57 -0400 Received: from linux.microsoft.com ([13.77.154.182]:57926 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728663AbfD2Pa4 (ORCPT ); Mon, 29 Apr 2019 11:30:56 -0400 Received: from [10.91.6.157] (unknown [131.107.159.157]) by linux.microsoft.com (Postfix) with ESMTPSA id 50C6B32376D4; Mon, 29 Apr 2019 08:30:55 -0700 (PDT) Subject: Re: linux-tpmdd self signed kernel failing to boot with secreboot on To: Matthew Garrett , linux-integrity Cc: Jarkko Sakkinen References: From: Jordan Hand Message-ID: <6373c67f-ea2f-ae1d-0343-4bb774f1d52f@linux.microsoft.com> Date: Mon, 29 Apr 2019 08:30:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 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-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org On 4/25/19 2:47 PM, Matthew Garrett wrote: > On Wed, Apr 24, 2019 at 11:30 AM 'Jordan' via mjg59 wrote: >> Under the following circumstances my kernel will not boot: > > Will it boot under other circumstances (ie, if you disable Secure > Boot, does it work fine with the patches?) Yes it works fine if secure boot is disabled. > >> I have traced kernel boot to the call to efi_exit_boot_services in >> arch/x86/boot/compressed/eboot at which point execution terminates. I >> see Matthew has made a couple changes in efi_main which calls exit_boot >> (and in turn calls efi_exit_boot_services). > > Does the boot hang or does the machine reboot? > The boot hangs. I haven't had a chance yet but I'll try it out with upstream grub this week (instead of the Ubuntu package) and see if maybe its grub doing something weird.