Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5153741ybl; Wed, 22 Jan 2020 11:19:13 -0800 (PST) X-Google-Smtp-Source: APXvYqyUv4ok3yH0FO9/zELK5RBkRBh71XZlzrX4qkN3yahJZLAf6b1CdoiVjS8bkvCCNCAnqrPS X-Received: by 2002:a54:401a:: with SMTP id x26mr7654976oie.101.1579720753440; Wed, 22 Jan 2020 11:19:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579720753; cv=none; d=google.com; s=arc-20160816; b=iijD42smSdH7+aQlhi3ULRYXlduO0BRHGzHgC0nAZsM301oQzaW1ZQtDr1t31UJoeo ljhldmv8vH+Gwd7Bct+/zdFRnw7n2mxELIQxBhe0Z4i79ygcFXO2pkzT86yGMLBjYVEf LFnTmqNfOtk0W5HwaGTj8QYkpyEJLIOBj7TdJGYwmSVeYFZf+E55vx6XGdADJmfyPMjO oFpJN10jE51CevTVbvtI8z7RIcY13r+L2oNJMuhPzJL8ev1yIJHI+A0J5Ru3WGbvRM6s QZbSw1468WzANmd8R3dSufz7+wDx5nXADeAIjJOJowhNZPvzGcDr8hdIHW5pUqlZywrj 094w== 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=Oc3W0C7lsxvS0x0G2I86IYLsKBA11xYQkxcUJEmbCxY=; b=ZZoWPhc+K5ktKFSPleKLKx8uO5O7z2j5Nh3CgaPmPEEIm3OrdDyQigsofdRYL++cXr 9vaeNLx7qC1Ne+H/6Vv7XSHI+NgWriT0hbfWBvpzCCfsKF0K5APwWy5Fs6EozRfd+XO1 WcKaTHPQ0Dm3KFZweuXwsZnGTwCaVej5T4E0GGTt6EOsoM1/+FDRjiOd+BJlkkhV4RKY L6gvhhqAsd5zFjwCW27cyZHa2FclyRaqbQ86ruD7pLLMK2OU3d6Q8xFYzvqyK0+DZziT T/DKBSAjRF/edWohUKswmmT9b75X8Q7eCZUw3wx9MYYCyqi7r3guj6vgOgWxDTld89rn yxAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WdrFopAo; 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 l25si23928800otn.69.2020.01.22.11.19.01; Wed, 22 Jan 2020 11:19:13 -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=WdrFopAo; 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 S1726780AbgAVTR5 (ORCPT + 99 others); Wed, 22 Jan 2020 14:17:57 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33168 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbgAVTR5 (ORCPT ); Wed, 22 Jan 2020 14:17:57 -0500 Received: by mail-wr1-f66.google.com with SMTP id b6so347614wrq.0 for ; Wed, 22 Jan 2020 11:17:56 -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=Oc3W0C7lsxvS0x0G2I86IYLsKBA11xYQkxcUJEmbCxY=; b=WdrFopAomh7JbmI6RUhI8I3CefYifoeSrqM7TVn/AoKudKEdcg22mqt6D+tYPGf3EK Yqn4oEOmRmxgmba7rePX11kAsyAxplmXOndB20RQC7//TLFdP2qtTGeRoNvre9aPB8wx INzq2QvErD0tF4y5iytUqQmCkiCEyjiXmv1PUgfHH8k06uz+3H5GLmjSMMUG0L+SalX/ 6oOoT4Eqsi/ZawCaUZRPsJxcLrGxhwNybepMJHbMc2HfRys6Ugut8T7GWfwC32dipxrk 2nYH5JaAhRDMp0VHWtgjL/WECUEVPbuTGgjpKR6Q/HFXEab09Y81O392cCVF/K8omcTp ho3w== 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=Oc3W0C7lsxvS0x0G2I86IYLsKBA11xYQkxcUJEmbCxY=; b=iEljsNsBjiELC2uRVOizIFNpAFcEXI4OIPREA23gowu3va86WGl5gqwJmdKMgdNzT+ LfvwdHgTX1af3D50Jjwfzq0HkbZlQ1qKn2rRqFrsAfRHV/3wScN8nA9R/NLZqfj/FBrj v/Z5rDm2N2lYCsYhXi7chZLOdFjxVQ37iSRCYG/HwC2x/Rgfa+fGF7acxdRe6N/LCMgl PsAJqYnLCfA8qG/bAPHo/rCk9iHYM8nYH896ub4sAcJlVFnuhFvo7yzSQS7+Z3eCK6fo dX3IhITfRuhQhIwaVoTipSK7iaJSV/gthRKP79H5v4SWXoLMGMGlVBuZkyltFpJHNd+O OENg== X-Gm-Message-State: APjAAAUxXJocaWrzUIYTqe9cnM9cLIK/FzHhc5x0lAwjQ/qAoq2Vrz3+ 9Qp3AZipfefBAhtLOYvhxxYuog6tXKNSSlo3mKikKA== X-Received: by 2002:a5d:65cf:: with SMTP id e15mr12553750wrw.126.1579720648100; Wed, 22 Jan 2020 11:17:28 -0800 (PST) MIME-Version: 1.0 References: <20200122191430.4888-1-cai@lca.pw> In-Reply-To: <20200122191430.4888-1-cai@lca.pw> From: Ard Biesheuvel Date: Wed, 22 Jan 2020 20:17:17 +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: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?