Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp188323pxb; Fri, 15 Jan 2021 10:24:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnWEsAbCgoKq9zc/1xlca0/MiKvofFIwYRFBS1mFjPCmpbAAlCJlU7TtRVx62w/Doar4vX X-Received: by 2002:aa7:db4e:: with SMTP id n14mr2062313edt.101.1610735091421; Fri, 15 Jan 2021 10:24:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610735091; cv=none; d=google.com; s=arc-20160816; b=zYX4rUrDHViECX9auoQjC4AKx6hlCSPtwr5Jv01nEiSC0+PR6Fgx3ibzdxtcjwVy/+ 1Gjbv9nlv09bEQiFSrpggT2FiPFCsxpvSQI4pZw7Eai8VWXNUoNBEvjPiy4K/7o3prKS joX9kuMRdELt8C43PGkc3Ho3exweOB/nnzI16tao4g09KqJcu5mUnkRo5dCbI6SaYEpX TXwtsi2teQcdmzi259ryFEftuO2ZabjtSARcl7DmrnuNGVfxYnv8AekkPpoyCPkqTmz9 lKJbL1EkwScYyEwTJ9N4KvWnDsDDEOmqp8iEFP/z8WAa2Jk8gn3QlDVkB3WW1QoFTqzb X/CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9Upu8gJeK7QO6vVnBI0oIDG+LboU8MjZVu0C+7e8gCk=; b=qulwfc2LImGXIl1UnwIFThuV9ZyUGR4Qc9aQ4UGQLRbYXKkfov5zGClPMPQ1p+Y1jN ZzvaDqfVUp8O5h8iFUiE9ttQPgHIyHlMa5gEPQy50H6rcbyiEA1CL+Ab35eWWzEDxql/ SiIMf8C+ZMDIU7qZlg0NyJ2BqFo8WtnfTdJP/tN8zf6rCzmxBjjHowJfuhi8/0cjqhF+ r0rRKty1f6PSj4agCKELpBwS/hwnph7NdPEkRcxeT1iBsp3DPrf9I0nepWVphd/gF6sq Ao5ZfMe9vrDz3h/DMQ98l4vp4wd/gpMSb3JL4qA9Psj5uIe9/8Klk1CGFp1LgEnMMo/+ 0VNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=e9D991Lk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p19si718556eji.91.2021.01.15.10.24.25; Fri, 15 Jan 2021 10:24:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=e9D991Lk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387581AbhAOSXt (ORCPT + 99 others); Fri, 15 Jan 2021 13:23:49 -0500 Received: from mail.skyhub.de ([5.9.137.197]:42138 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733262AbhAOSXt (ORCPT ); Fri, 15 Jan 2021 13:23:49 -0500 Received: from zn.tnic (p200300ec2f0acf007cb1195bb528937a.dip0.t-ipconnect.de [IPv6:2003:ec:2f0a:cf00:7cb1:195b:b528:937a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 556261EC0494; Fri, 15 Jan 2021 19:23:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1610734987; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=9Upu8gJeK7QO6vVnBI0oIDG+LboU8MjZVu0C+7e8gCk=; b=e9D991Lk15b1LjMahcqH5c5EKjg+77da7hM7eIvYI2Bk4I5njkeqqSOTQhjBP4HUFGNw+N xDUr69/hJKUgMQXmEREvv+j8t7JX9KGpvvuTXK2G9OHQIyVCZa/ZTTeU48q4v3ABgL6rfe +mIV5qqNNNwsDQpOhc5JZo5Xv20qbQg= Date: Fri, 15 Jan 2021 19:23:00 +0100 From: Borislav Petkov To: Arnd Bergmann Cc: Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , x86@kernel.org, Nathan Chancellor , Nick Desaulniers , Arnd Bergmann , Darren Hart , Andy Shevchenko , "H. Peter Anvin" , linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] x86: efi: avoid BUILD_BUG_ON() for non-constant p4d_index Message-ID: <20210115182300.GD9138@zn.tnic> References: <20210107223424.4135538-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210107223424.4135538-1-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2021 at 11:34:15PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > When 5-level page tables are enabled, clang triggers a BUILD_BUG_ON(): I have CONFIG_X86_5LEVEL=y, CONFIG_EFI=y and am using Debian clang version 10.0.1-8+b1 but my .config builds just fine. How do you trigger this? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette