Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1010953ybl; Thu, 23 Jan 2020 11:50:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxmYSVYLAeLHI6opHthAYp8YUmvJE5su/Yb2ui8QfAMYo4/AxoOOcx5cgEwzt5YbznVAorQ X-Received: by 2002:a05:6830:1482:: with SMTP id s2mr13166652otq.285.1579809040727; Thu, 23 Jan 2020 11:50:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579809040; cv=none; d=google.com; s=arc-20160816; b=Tyf1BwYQKn5gAXtUcmGaii8MBAS1fW7BfgJL9pTI1vYZjgHn+CIGZclVF1wsR4LZ4J I5ZyCpWRCCUlXvPAvxMtjsVxJvmncTv0Fqm0PZccGxjGbpDI1DiT/Ta1kOqTGccDN6E1 mtWCdeRt6BhpRgkxKjkfBowJyBrdPUngI/zvjaoQUW8ShPWgSOgUpjVW91fUcOVbiZVQ 9AI7Y6PfCPrA02WtDSCby1lva/1duW6ciPBN22IiCfnfIPnSedTA+EucJ03ywZ1Ni90p 2kuRJozzxf9h9im9lzvuxDyueJAOtLnU4RIVqhids57RZrLq6pKxuYUi1Ol3O6NhrLXd 4prg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=fYWv3gkaBG3PC7KY5b1PI2c9hwBzlBIPCdR2DcObPZc=; b=wwFeUjDwIDQtYmoCQ48E81AnFylTWQq/YG9P2lFD2kEVkKCYildoo07kOYDfferMb7 m86oCyQRyalxV61jeoUXq0qK5BloNW9BGyMFjBsMR0bZSeDj7yZDHb2ZzI0tOpFrHhWL eFKRj4DqcMwQBuocaED8cxUcJneHPE7TL6WcbkLiaw5lhIyKFWw13Vufv9btNRz6RMqq BCMq4W/15allJH5OTOJieEC+c4ErFMu0iMuJCcqWu+rvq0k9lYod7B3CsbmXe9k69zPA dpnOm2uz/ULpyTMpwKPpifOlAz+lEybBwz68jXAe7BndPeHrTdIOGsB8Zmb+x4Uabyor ymyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=rcQkWff2; 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 n63si1255398oib.210.2020.01.23.11.50.23; Thu, 23 Jan 2020 11:50:40 -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=@lca.pw header.s=google header.b=rcQkWff2; 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 S1727312AbgAWTtS (ORCPT + 99 others); Thu, 23 Jan 2020 14:49:18 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:45023 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726191AbgAWTtR (ORCPT ); Thu, 23 Jan 2020 14:49:17 -0500 Received: by mail-qk1-f193.google.com with SMTP id v195so4653423qkb.11 for ; Thu, 23 Jan 2020 11:49:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=fYWv3gkaBG3PC7KY5b1PI2c9hwBzlBIPCdR2DcObPZc=; b=rcQkWff2IxD8g6voBRp5FFJKudPCu2/bWS9vjCC3BTh7jVw1+6wvrXtCMv/eqUU0K8 Mtn8A4f095sTk9pGH5ytPPFt9+LXqUaeZtE9nMPgEh7FSyeI5cFpiERe1+xuDf8OHOuY paJRXyu7SboiwQAj090+qqt+509/rR2xRrOOeTqMuAA7HIpquqWj+5S0c77hRRCyRGYD QgBUeJSA4F62UvixJGNUKvET7PAedWRTqTH4ZmU8gmINuZoiXGlm5cu6QZaftJdgOF6M xDHukbohrGroDmu8d5773suxH+L7XI19X8EtKpNOT50+cc/lIZ5fEJcQYsnBP9Plr3PU io7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=fYWv3gkaBG3PC7KY5b1PI2c9hwBzlBIPCdR2DcObPZc=; b=IJqlAOaAcA5Mz5qwItig5fzoatTur/RArK0Xt09TYs4NBzeC3FDRYiDNsnRrYW7gnr CSw67/UsleQ/9qnNvIuaJe+q908TRBXFwuunJ1cgY8ur5rgQHysphKsvzO7MyJ/Sm9ZE 6MrFTN5pnodnblxfmWZsdXtoAb6IeCqQcz9SAHacdWLD38rqzANWZMq5xlgEIXzScmzr nu8z+1cZaUpMBOL00sOMzHenbX+YLVUdyqiKSbB0yO6Txz9FDHdONBgfNuz0oMRoF0zZ cr40To6UTCr1zO0G/EinY3paMRFlOTpBhOqLXCgoEZ3g+y3CONXkKTOoqYVlK7MpTDP9 IMIA== X-Gm-Message-State: APjAAAUY74cv9FFtaFRNnFWDAJUnfTv5fCIrV6kcFtOi/lQPtjqgr20e o3xhGzbUCp2do0uctH37JKRqZQ== X-Received: by 2002:a37:4dc4:: with SMTP id a187mr18136788qkb.436.1579808956541; Thu, 23 Jan 2020 11:49:16 -0800 (PST) Received: from [192.168.1.153] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id i90sm1516366qtd.49.2020.01.23.11.49.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jan 2020 11:49:15 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: [PATCH -next] efi/libstub/x86: fix an EFI server boot failure From: Qian Cai In-Reply-To: Date: Thu, 23 Jan 2020 14:49:14 -0500 Cc: Ingo Molnar , Ard Biesheuvel , Thomas Gleixner , linux-efi , Linux Kernel Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: <10CCB37C-B91A-4A15-B9C0-5DBA5DD0BFD9@lca.pw> References: <20200122191430.4888-1-cai@lca.pw> To: Ard Biesheuvel X-Mailer: Apple Mail (2.3608.40.2.2.4) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jan 22, 2020, at 2:17 PM, Ard Biesheuvel = wrote: >=20 > On Wed, 22 Jan 2020 at 20:15, Qian Cai wrote: >>=20 >> x86_64 EFI systems are unable to boot due to a typo in the recent = commit. >>=20 >> EFI config tables not found. >> -- System halted >>=20 >> 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(-) >>=20 >> 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); >> } >>=20 >> static efi_status_t >=20 > 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? https://raw.githubusercontent.com/cailca/linux-mm/master/x86.config BTW, this will also trigger a compilation breakage, ld: arch/x86/platform/efi/efi_64.o: in function = `efi_set_virtual_address_map': efi_64.c:(.init.text+0x1419): undefined reference to `__efi64_thunk' ld: efi_64.c:(.init.text+0x1530): undefined reference to = `efi_uv1_memmap_phys_prolog' ld: efi_64.c:(.init.text+0x1706): undefined reference to = `efi_uv1_memmap_phys_epilog=E2=80=99 Likely due to the commit =E2=80=9Cefi/x86: avoid KASAN false positives = when accessing the 1:1 mapping=E2=80=9D Looks like you are in process fixing that one as well.=