Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp194954pxb; Fri, 15 Jan 2021 10:34:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxWuj3I4Z7f7Oh/nXiQonNfxHmOeOdcCZVQgsHxzBc+4iBk7V0DtoyEntydf7Rk53l/8GT X-Received: by 2002:a17:906:edd2:: with SMTP id sb18mr10329570ejb.114.1610735675365; Fri, 15 Jan 2021 10:34:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610735675; cv=none; d=google.com; s=arc-20160816; b=0a28V4rmMdrdUIsvS2uNSXwoVN4FCuaztzJM3Rwafc/XBMAgrBqql4bjgfqPprk3zF GW78I6uOgEBt+k78kmer32sLmE0n6+JpZGkSHd2zQo5c7A3wNNDqB7vNVct3K//2D5LR 9ZgqHdpV/yHYvnGkal0cP0FsQMKYea/hZjL4tm8l089kbPA6sLHTDz8nHIxzXw5Zmr+f lsPcvOg7cV/EiiZTo6srQRyVBeofh0f22a+E5GcMw7hZMS2RKAKN5eBF10zKaEkEZtZT WViN4JJc9tgod9H8+IX/WyTGCJPRG/AzATjtiq/Mykud1tf/ONqAyYiG5ZJ/hsexvR/f TBsw== 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=NWIVG2KxAyCSAbHgbe1kK1Pe6u+Em4RwT5uHY88V9T0=; b=ZU/6IRWlQTKNGJG3MG2XnnIr68QVKW9jkSynxwmlCnSExj6r5jgF2CDxAqyYshoak1 SRvRafbD9VWeVq8pTuyMhNbOMpoV+TepAVNIERBKxmSEbrPhhdEO+fRl3xWeGW4CZPHz BeUq+layomL+AgYQL2V2sIRs9WLQy9EqsooZdWfr2bO9RDVRtBvsTSj6H3wLsrxPzO7v OvCMYqWRcKCEyN8w5/JezH/0F+Nq36iu4bp+XjGI9QeJ9MwDsqBW+Nd7CXD/h2KVegYk /iPbKgmLS25aHZF36YNW8LBc8wihCSjiD9WDf7yWh/zC5uoJmg8MlTON8wyJTivVREIJ ZH3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ez0mmPRz; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zh12si3478213ejb.416.2021.01.15.10.34.12; Fri, 15 Jan 2021 10:34:35 -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=@gmail.com header.s=20161025 header.b=Ez0mmPRz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387517AbhAOScv (ORCPT + 99 others); Fri, 15 Jan 2021 13:32:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733262AbhAOScv (ORCPT ); Fri, 15 Jan 2021 13:32:51 -0500 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 684ACC061799; Fri, 15 Jan 2021 10:32:06 -0800 (PST) Received: by mail-qk1-x736.google.com with SMTP id 143so12565029qke.10; Fri, 15 Jan 2021 10:32:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=NWIVG2KxAyCSAbHgbe1kK1Pe6u+Em4RwT5uHY88V9T0=; b=Ez0mmPRzsxM/TG3NrKfui7SxfYHktje0S5IwnWOP7YnFh4Ok5C476FVRp9tq9ioOvg KIwk2rkZpkn+F8zGgKIm2JGernqgfp7RRAp3qSxDQd8OgM71pnlGB9jBmd+ciRNVLyO8 GgsoKEKTTOgVZbYpDaGgL3XnPr1R5raCdxTxPRbBT8SNrGJmKeX9BJa3NELIqV55KhVE Ggi8TsRkT0wUqev0htvQXHTF/unuAL8X+AqS2rfc+vAMorTAUvzrmytvktQYClRkIwbu TRgRLVknJ4kaEErLfqA3UuYGt3r2WJZNR4p3YPZz5ptjHX5V2p8xdahMKfXTLSkf0Llt Ra9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=NWIVG2KxAyCSAbHgbe1kK1Pe6u+Em4RwT5uHY88V9T0=; b=H5p3zAyYmm2qSbG5HOdvU0oQOYWZLtlhxWSjp1dgXsEWMGIRKeHjp8XxS3AxizfxQP D+q5PxuKxT3JyKqNP7efSh23tU3Va8TEk1/FibdbsQ7aSTcdPOACQ4lpHlmvHpZLCJO3 VnL+2IL4r/niETcdKVpg+77teJJIGaMAKr8C+O/3wYygWLoX6Zb5TQUm3gP+vOw4tDVP Ih5dpDYUh/toHYZUBp2Vm+kEiMD+D0nbLfWs6DSyeypdgfgn/Zfc6jn9f+HWpueNWglq R51WMMvBpY1gBI9yH21F1VxcUinosQK+q9FTJibbU2bRJ8qHowI/ZGC2A2S4Fxehx74H itVg== X-Gm-Message-State: AOAM5318OVF0YQt5ssu/ZbazRp3NWr9UsaVbJHwA7pwbFZeqglx49o+X YxayWffYAvPM4cUPqmYnwVqMnvlaCR0= X-Received: by 2002:a37:4796:: with SMTP id u144mr13186207qka.235.1610735525568; Fri, 15 Jan 2021 10:32:05 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id c136sm5556114qkg.71.2021.01.15.10.32.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:32:04 -0800 (PST) Date: Fri, 15 Jan 2021 11:32:03 -0700 From: Nathan Chancellor To: Borislav Petkov Cc: Arnd Bergmann , Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , x86@kernel.org, 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: <20210115183203.GA1991122@ubuntu-m3-large-x86> References: <20210107223424.4135538-1-arnd@kernel.org> <20210115182300.GD9138@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210115182300.GD9138@zn.tnic> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 15, 2021 at 07:23:00PM +0100, Borislav Petkov wrote: > 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? I triggered it with CONFIG_UBSAN=y + CONFIG_UBSAN_UNSIGNED_OVERFLOW=y (it can be exposed with an allyesconfig/allmodconfig on mainline currently). Cheers, Nathan