Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp47928ybb; Thu, 9 Apr 2020 16:58:45 -0700 (PDT) X-Google-Smtp-Source: APiQypJ4JUPbqylLCJLIjHvRCsTW/c6ekqgf8XUbEaWKNh8dFdn1h2/OfoWsFr6nhupBvVmzj3It X-Received: by 2002:a05:620a:1451:: with SMTP id i17mr1504426qkl.116.1586476725375; Thu, 09 Apr 2020 16:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586476725; cv=none; d=google.com; s=arc-20160816; b=Tl9s0BSCRc1tiz0nNCTJul0PFcfRXfg/ZwTlyQ2nbxxz9qG0wtBOUWv5vnPOq85rMf bRFygc2g2S9UXhMYqTiebvOVvMHETGJwyaxEnlF/TGwxNemUP69iUv8NWqBO/gNEh8HS kA7Zq8Zi5rcqVFoGdQNyGChPsAMbi0oE0aGL9nY2EVFmivIy6NZo4VKCORxGY72WZfDc FtK6d5huo9v2Ps5Enwz3VHZDIhgQp1lxDWSWrrsHFEq1TJOHAEm1fxVzQyA0o32IN4qf Jq6ZebwlnYQyKp0U7iz7hphYb8QyhFxeIiFp4SxWX1Vpsa8m/RoAcVNB5zCEEx90SI4W /8Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=LR1eYm+CaCSWfIFPyps5u6R1CZAdfquWrMAm9WuOqvA=; b=XFM9GNToR1sOgNBbMzXx2WJbOZstlVMVR/ZflJ+pSFCf3mmmwo59nMgc0WxDQQK3+x NOBWfMwSNdDDL0t2nM7BFEgkDdzeg2Jou4f6JvE6Udz68kDf8z/fkJCCJu2Hryi2tkVA EmQzp5WPdqFBvvu5UgpsJRAchSVZ645vAXpYFgc/HTzPNBSAVj8PP3jLwRT+LeWCeI1w 1tMGTpi1y+RkpZCCQK9aIzJMgE6f4tqPkAuzvY6Sfnu4t3HC+qnqmYDeIdddKOJKsaSt VxnExDMps8u0PNJbC7xpipT3WkBECUe70UIkD3v4svI3gcyBkv9sA7dKGQQ8Cu2TD2Lq 9Y2w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b25si179194qtq.373.2020.04.09.16.58.29; Thu, 09 Apr 2020 16:58:45 -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; 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 S1726896AbgDIX5r (ORCPT + 99 others); Thu, 9 Apr 2020 19:57:47 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:57104 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726779AbgDIX5q (ORCPT ); Thu, 9 Apr 2020 19:57:46 -0400 Received: from callcc.thunk.org (pool-72-93-95-157.bstnma.fios.verizon.net [72.93.95.157]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 039NvGB6013309 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 9 Apr 2020 19:57:16 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 32E0A42013D; Thu, 9 Apr 2020 19:57:16 -0400 (EDT) Date: Thu, 9 Apr 2020 19:57:16 -0400 From: "Theodore Y. Ts'o" To: Ard Biesheuvel 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 Subject: Re: [GIT PULL 0/9] EFI fixes for v5.7-rc Message-ID: <20200409235716.GF45598@mit.edu> References: <20200409130434.6736-1-ardb@kernel.org> <20200409190109.GB45598@mit.edu> <20200409201632.GC45598@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 09, 2020 at 11:29:06PM +0200, Ard Biesheuvel wrote: > > 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. > > 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]; Tested-by: Theodore Ts'o Yep, that fixed it. Thanks!! I wonder if this structure definition should be moved something like arch/x86/include/uapi/asm/efi.h so it's more obvious that the structure layout is used externally to the kernel? - Ted