Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp314015ybb; Fri, 10 Apr 2020 00:09:53 -0700 (PDT) X-Google-Smtp-Source: APiQypKp9cE8OoCHTe/K6Y3PeiJnBKwuizhoibDpz7JsovDiY7rH+B+MWu9Wh5jCGPPRnRQ6ecf9 X-Received: by 2002:ad4:446d:: with SMTP id s13mr3982992qvt.219.1586502593158; Fri, 10 Apr 2020 00:09:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586502593; cv=none; d=google.com; s=arc-20160816; b=g9EllbHHEehd/MC28fLnXumq/vHLCMLHHcLfHaOchXqict3lRGK1eNATTKBFA8ss+a F74HvMmXmmjpEpxm68pVfzx4TMhtYhQ41eHw2d8GiB+CZMbwpY2pxL5ZGHXxvoGhhrzX q7z9jDBciF6twZAJ+w8JBTgZDUM29th6JZnR13BygpTHvFuaxkF2Y1WMpwdDRtWCOjxw VErfWlQ0tEJqsCo24TzQDJ/6Rg6FDn3HK6bVcklu8RZkCz8yNRd21q7nd/qqDY4TuJ6l L0Pa5YzJENgkkYpUm0CgAsBv6wEpnGi06hGQsG8Rb1Vn5BBpSnCM93NLR3sNu3E+JOv5 PSUg== 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=c6S5ShwfzAND5YtDF9O6384VLPLSJaGw+YWWdpbMKMQ=; b=AvIto7fjECPKqQ6bf8a5X7gKAwfpFcclMHL24FGPTjkbSp+KOuqlLcCV0ul5r6AzY0 hl0xak8vb2EywlwInx3wNIXiAxsmue+PndSydwESCDSxIl5tiEp1LN8XBmvR9dX42WWs HC/dZXtpzvWOVFdaUXkr0kk7ngDfuLKh6m4nDcTmt1RZVc0ozUmJtMYoFZNBf93GlNHB pwyg8RMxEL6UE8O6fLKnoJVDpxjbDUsgAdsMj1HZxad2SaY+xGsQwmXLmXSd6gWvyhL6 AXhQF25LZhZDPt2avUUh7cKuz1PstsOV0KpC+ppvmS7syd1u7ZwguWI6ixyX33O14xEN ZF3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ikjF5Wt+; 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 68si685128qta.42.2020.04.10.00.09.37; Fri, 10 Apr 2020 00:09:53 -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=ikjF5Wt+; 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 S1726145AbgDJHIN (ORCPT + 99 others); Fri, 10 Apr 2020 03:08:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:52312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbgDJHIN (ORCPT ); Fri, 10 Apr 2020 03:08:13 -0400 Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) (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 97FA72166E; Fri, 10 Apr 2020 07:08:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586502493; bh=qZUrGgs9MA+6DN+o3ifCTBbl77+DpyVEavu1CJytVio=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ikjF5Wt+mJkvpDJw2jz7w0Pek+ks1rUVUZKSMSQmRIQ46xLgzYpYHcV0nGxZaEKmV swT9gK3z3NrodGHSzYoeEuCfWWObccMj4dgjjGzp/au5fgcjcjEWrRrffN0pWsvBRd +Tmhbn1YqdBHfX8uvaO7ymN0Fq0szjM7rbL6BHBo= Received: by mail-io1-f53.google.com with SMTP id n10so923936iom.3; Fri, 10 Apr 2020 00:08:13 -0700 (PDT) X-Gm-Message-State: AGi0PuZwjfqVFfGa/ugDPobzUzNVpVO1xF5YkC+x0XUeC/8WCGl92iKR WjFGOfDFyOfYPjV27U/3pTD+zJ4a+Qk+iYSZxt0= X-Received: by 2002:a02:7785:: with SMTP id g127mr3329097jac.134.1586502492857; Fri, 10 Apr 2020 00:08:12 -0700 (PDT) MIME-Version: 1.0 References: <20200409130434.6736-1-ardb@kernel.org> <20200409190109.GB45598@mit.edu> <20200409201632.GC45598@mit.edu> <20200409235716.GF45598@mit.edu> In-Reply-To: <20200409235716.GF45598@mit.edu> From: Ard Biesheuvel Date: Fri, 10 Apr 2020 09:08:01 +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 Fri, 10 Apr 2020 at 01:57, Theodore Y. Ts'o wrote: > > 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 > OK, I'll spin a proper patch > 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? > Well, 95% of the data structures used by EFI are based on the UEFI spec, so the base assumption is really that we cannot make changes like these to begin with. But I'll add a DON'T TOUCH comment here in any case.