Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2076533ybb; Thu, 9 Apr 2020 14:47:05 -0700 (PDT) X-Google-Smtp-Source: APiQypKs3cx6PazOd/bIvksOpzwqM60P/gqAgNxOLADUuAKLDsxnUXVCVCT0XY5urHwRIXnhBxki X-Received: by 2002:a37:a60c:: with SMTP id p12mr1072139qke.430.1586468825375; Thu, 09 Apr 2020 14:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586468825; cv=none; d=google.com; s=arc-20160816; b=0NqbDAmRxLUs606jHAVJQMETeZ6nEeVqBAJjxDyNi+0tuveJqNcZaK6nE3prB81P0Z vnT/jYqED/N4IPOh0u6yvNf6CTdv1HlE7GgReqDl5x3VlvUrKcixpg2sw43ImIAt9KWi JC7xlc9ytL3fJiRV84yeBA1CcPaEuJjB/ixWJiZ3QrwNy1IdjsFTfvSPJmsUmbzvGj3X +UeXCcnsaEWPJ74DLLo/EKMxxytbrOj0opBrC0zbnM9qr0LlWBELxIQWK5gaDnzxew6Q Cc13BkBACp37x1hTPXbOp6FP3jDQQTKDQwqWyQym/f+RqSnZInu5esKrwZpegobRP/nr xw4A== 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; bh=U+hwuQ3b4WFY+O856hqfSYLTqxScN2LoBOvRzajhaEY=; b=Cgcfb/k+Hn6cbPw1/rnOkd9m3T/DbuF1CiGP6zO+95rjC/9Go5z6k92zgoyoHWXXhp I2Mtr+fE/bNRFZTORAOjg50Ikq3DrnqfOLYrWmqJh853ZszWwy5LpaSvZhFkL9nfRgQu Wf1YJl5Dm/1tjlZw+cfqeNNjeVRxSi/qYwp7f8YBmQvKhEozyG0P7Yt4dtmojJYGM4+0 DZu6nai/BNSw/uIc/EZ7qOfJGoTWj3HISR0PXrKAzCkmVSvXuii0h2Sst0mnruIDyv52 8w8KW9B7oBiO4bYjvXcaBLd3UCHaSydLS0dYa2/1etSUcfwEySqxETyUm1n8gqdv9uhp jBVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w2RqWeUV; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r16si830qte.175.2020.04.09.14.46.50; Thu, 09 Apr 2020 14:47: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=@kernel.org header.s=default header.b=w2RqWeUV; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727611AbgDIV3S (ORCPT + 99 others); Thu, 9 Apr 2020 17:29:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:44938 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726928AbgDIV3S (ORCPT ); Thu, 9 Apr 2020 17:29:18 -0400 Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AFB0620B1F; Thu, 9 Apr 2020 21:29:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586467757; bh=ScDbH132wmevlViehYSb3vPuHS7/Osy+J1p9xXpIiA8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=w2RqWeUVJ78hOhcm/TJInru4bbWjBYTaBM0fSwPDxNas3PeGhrcp3DeduHq1drjJ+ /ZNObBWtly5M1z0oxxWLxo6sbB94yEDw3x8tMqs6plwO8JQUBLaepC5RRKCvb0EDPR SkDmOehHTmSdsLRf2YigWQWaWadwsZNEsZWlAkvo= Received: by mail-io1-f49.google.com with SMTP id w20so1126971iob.2; Thu, 09 Apr 2020 14:29:17 -0700 (PDT) X-Gm-Message-State: AGi0PubuvBm6Na5dqscAiiKoDY2Fd3aJrR/UORary0BzyXJhlz7l8QXn lLei9hUh5NfuiVuycU3rwO172HTCfw+ef+I7cTg= X-Received: by 2002:a05:6602:1550:: with SMTP id h16mr1244659iow.171.1586467756995; Thu, 09 Apr 2020 14:29:16 -0700 (PDT) MIME-Version: 1.0 References: <20200409130434.6736-1-ardb@kernel.org> <20200409190109.GB45598@mit.edu> <20200409201632.GC45598@mit.edu> In-Reply-To: <20200409201632.GC45598@mit.edu> From: Ard Biesheuvel Date: Thu, 9 Apr 2020 23:29:06 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL 0/9] EFI fixes for v5.7-rc To: "Theodore Y. Ts'o" Cc: linux-efi , Ingo Molnar , Thomas Gleixner , Linux Kernel Mailing List , Arnd Bergmann , Arvind Sankar , Borislav Petkov , Colin Ian King , Gary Lin , Jiri Slaby , Sergey Shatunov , Takashi Iwai 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 Thu, 9 Apr 2020 at 22:16, Theodore Y. Ts'o wrote: > > On Thu, Apr 09, 2020 at 09:04:42PM +0200, Ard Biesheuvel wrote: > > > > > I'm currently building Linus's latest branch to see if it's been fixed > > > since v5.6-11114-g9c94b39560c3 (which is where I first noticed it) and > > > while I was waiting for v5.6-12349-g87ebc45d2d32 to finish building so > > > I could test it, I noticed these patches, and so I figured I'd fire > > > off this quick question. > > > > > > > I think we might be able to downright revert that patch if the > > underlying assumption on my part is inaccurate, which was that the > > fact that the boot code no longer uses the runtime table address > > implies that there is no longer a reason to pass it. > > Unfortunately, it doesn't cleanly revert, which is why I started > checking to see if it might be fixed already before trying to figure > out how to do a manual revert. I just tested and the tip of Linus's > tree still has the failure. > > The short description of the failure: I'm using Debian Stable (Buster) > with a 4.19 distro kernel and kexec-tools 2.0.18 to kexec into the > kernel under test. I'm using a Google Compute Engine VM, and the > actual kexec command is here: > > https://github.com/tytso/xfstests-bld/blob/master/kvm-xfstests/test-appliance/files/usr/local/lib/gce-kexec#L146 > > What happens is that the kexec'ed kernel immediately crashes, at which > point we drop back into the BIOS, and then it boots the Debain 4.19.0 > distro kernel instead of the kernel to be tested boot. Since we lose > the boot command line that was used from the kexec, the gce-xfstests > image retries the kexec, which fails, and the failing kexec repeats > until I manually kill the VM. > > The bisect fingred v5.6-rc1-59-g0a67361dcdaa ("efi/x86: Remove runtime > table address from kexec EFI setup data") as the first failing commit. > Its immediate parent commit, v5.6-rc1-58-g06c0bd93434c works just > fine. > > Is there any further debugging information that would be useful? > Does this help at all? diff --git a/arch/x86/include/asm/efi.h b/arch/x86/include/asm/efi.h index 781170d36f50..52f8138243df 100644 --- a/arch/x86/include/asm/efi.h +++ b/arch/x86/include/asm/efi.h @@ -180,6 +180,7 @@ extern void __init efi_uv1_memmap_phys_epilog(pgd_t *save_pgd); struct efi_setup_data { u64 fw_vendor; + u64 __unused; u64 tables; u64 smbios; u64 reserved[8];