Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5158248ybl; Wed, 22 Jan 2020 11:24:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwjnSVDPuetnmt6oxpQMSMm+qcEm6LcdKITGGW1PxY0apT2hesMzOEWqiqz4WOt1zpZNuBL X-Received: by 2002:aca:bac3:: with SMTP id k186mr8202454oif.19.1579721041635; Wed, 22 Jan 2020 11:24:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579721041; cv=none; d=google.com; s=arc-20160816; b=XiADcS0Ml63m62tJj5lNh99DXi6T68u6oqQeMio0uXmyFbtXV4jBYPd9OAE9F/HCYF aFNca0Rx+JsYQMiaW9doWm50iMIO+67NUXT53bUEn6204ZlMl0PlsvFwbxbF2TSaQqxb WKSwG41uXeEZbHuyBgY7GdIOZp/G1WC51GdNYFexrdgxsiijH4J8+N6c5ewk9W+udmME 3xPJ/7QLGpkpL6AWuvDXJLFBW+eJDTkd4kBovG3llrXCY77B2atlNmgZtlVpqmCId9yt p1nlxEQzyXcTee9AdhW9RPq26RmfaCtOSwoU8UII7Wkz2HOJ+enHVOi9QSkFOn9w15pu 875g== 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=xWpBHT4hqMde43eyJwKJtDhZYAonZRKx3iAocjQUyYo=; b=bquOZp43rj+pGUeug8P+tIsjiaaM4lOqPfC+Gg8HPst+u4csk7nBph1I69QtGYO9rZ /nQrixfSN9qwMpG7VjWrppl2i2XByVLPNbXIxsQSQfu7n2Sf5wBoDhm0r3p8E105cm88 zPbgA1lil24TB5bqwquvyfwZzsfAXSobfFFy0sIKUqEk5FNmg9igEeq8lasotVcBfi3f +FdbTOx3uoZcyL1uDZk5+9Svbf8/RWQP2QUzcBfNZVatWl+8trPHT1SnoUP00OZQQ7Ci 0sBbGyBEQYBSNnzEjlE6CPgQv7KfzQ/vEIlpr1nZpWlJy8epglOgC0d9EB+x2upLBK5m wPVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FKteuqhg; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g126si22192745oib.105.2020.01.22.11.23.47; Wed, 22 Jan 2020 11:24:01 -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; dkim=pass header.i=@linaro.org header.s=google header.b=FKteuqhg; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728827AbgAVTWx (ORCPT + 99 others); Wed, 22 Jan 2020 14:22:53 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38441 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbgAVTWw (ORCPT ); Wed, 22 Jan 2020 14:22:52 -0500 Received: by mail-wm1-f66.google.com with SMTP id u2so266845wmc.3 for ; Wed, 22 Jan 2020 11:22:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xWpBHT4hqMde43eyJwKJtDhZYAonZRKx3iAocjQUyYo=; b=FKteuqhg5IqrDdKVJUufetZplTyyIq1xOfIAB6ZhlcoAH82hqhzC1zPZG2O1j95Pke kudDVShcKHguDFB5zWZ97aa+vPOmu1FPqii65xvZ6RNlyuEIrpr72s2jo7mFmuaEgT19 Vnw5kdo9TvOplFc1H2IrQSsTchWIBTFu70WIyw8xufiucG2keaVlBFd5XssvZA4RLBUY oXNSE0pqYQ9g8FlNr88uIJlX3zqdyQrqBDgNOEipKe8u8DJkfIdINunBXHZ5KpWKWP+F bHlDfNXtspy/u8qc5zsO5D40d8j7mlvk5/i87z38kCeEKuW1dro6HgCDEH4niM+Z+kTD lVAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xWpBHT4hqMde43eyJwKJtDhZYAonZRKx3iAocjQUyYo=; b=SpB6Qt3krXG58WoVAeMBYjMQo29btXmaxlqrMMrGDFBgk8rbTCL5u2golIxf2gMhKy lePwZaSTnT0sn10rSOdNMUZe9mXAPBoLi43zJKfDN3BDKAVLYyYk+33oVZC935vDKw4f V9QCrbQLt1OVTsORXdL+4vQ83OddpnzQwqu8jht4NjVFsY+0L1oEvrW/BY5C7cTuDoxP Flavoynz/f5CEsFjCVoyOxb4GQ/5UEL7uRqs8FrCBVB54DZTlVIb14x7mlmIUCXd9rB7 rMcd7C7jvuJcQhSTL36hT6YUVz/coRVOxKW8zblFXoWHwwadMvKYZYcV6wfyM2Nns6Ud nW7Q== X-Gm-Message-State: APjAAAWUDgdGX3iJ9erj7IxnDujAgzDhmbZUBJE6I4QnCVpH5vj9kzPl T+mjKTMq5uB4itVQuDAU5IkDnNOlqlXtvDQQcJSySg== X-Received: by 2002:a7b:c4cc:: with SMTP id g12mr4766627wmk.68.1579720970736; Wed, 22 Jan 2020 11:22:50 -0800 (PST) MIME-Version: 1.0 References: <20200122191430.4888-1-cai@lca.pw> In-Reply-To: From: Ard Biesheuvel Date: Wed, 22 Jan 2020 20:22:40 +0100 Message-ID: Subject: Re: [PATCH -next] efi/libstub/x86: fix an EFI server boot failure To: Qian Cai , Ingo Molnar Cc: Ard Biesheuvel , Thomas Gleixner , linux-efi , Linux Kernel Mailing List 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 Wed, 22 Jan 2020 at 20:17, Ard Biesheuvel wrote: > > On Wed, 22 Jan 2020 at 20:15, Qian Cai wrote: > > > > x86_64 EFI systems are unable to boot due to a typo in the recent commit. > > > > EFI config tables not found. > > -- System halted > > > > Fixes: 796eb8d26a57 ("efi/libstub/x86: Use const attribute for efi_is_64bit()") > > Signed-off-by: Qian Cai > > --- > > arch/x86/boot/compressed/eboot.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c > > index 82e26d0ff075..287393d725f0 100644 > > --- a/arch/x86/boot/compressed/eboot.c > > +++ b/arch/x86/boot/compressed/eboot.c > > @@ -32,7 +32,7 @@ __attribute_const__ bool efi_is_64bit(void) > > { > > if (IS_ENABLED(CONFIG_EFI_MIXED)) > > return efi_is64; > > - return IS_ENABLED(CONFIG_X64_64); > > + return IS_ENABLED(CONFIG_X86_64); > > } > > > > static efi_status_t > > Apologies for the breakage - your fix is obviously correct. But I did > test this code, so I am curious why I didn't see this problem. Are you > booting via GRUB or from the UEFI shell? Can you share your .config > please? Hmm, I guess it is simply the absence of CONFIG_EFI_MIXED=y ... Acked-by: Ard Biesheuvel Ingo, Thomas, could you drop this into efi/core directly please? Thanks.