Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp744379pxj; Thu, 17 Jun 2021 12:50:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww9VxRLOnbGx2+MhjP9GAnT2qzOOMVUYS3lOiUfeKFJOtbHi4lhI3eK7eS+M8t3a80Nz5+ X-Received: by 2002:a17:906:1c49:: with SMTP id l9mr7207777ejg.39.1623959406648; Thu, 17 Jun 2021 12:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623959406; cv=none; d=google.com; s=arc-20160816; b=JYz8ivigLEC2irkR1we3oJfNNBQPYfVlnJB1FPBbMPuWsOOP29LbRL8Od01FnPtr69 WXfUElfvibEfGSQ8bAvHLn5kpA9Mgl8LHADTiYHmy+jE4OswxNi25JVPEpmngNEyFuao SsrSnxMOWcIq5WKftec69IIEWnppKz7OFQXacHBqA/E3+ZJf6yblR9FLokCxAEoBmGmP Vz+Z1XwWFggYhZxhwAixoMcgaj56ElcfZWAhuGDDv+ZiQ2LsFngpaT/AQxILC32zwy5t M3WM800mIg7s9DUzLcsRTcM41txzLj/F4T3Ep7rpUn0DNPkbgr9tlo+BXin8i7nfMobD Gg6w== 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=eYV95erL7TFAB+lcjK/WI29aoG1NnXhq6N797I9SOBg=; b=kTIwffdweb1TRxoVyS5hBbMM6rZYGa1MrzxtLZLlTDylRJT9jg7uIfJrlZbW4iRgx8 riNsJNcz3CkIlswhrq9v7dWGX8FGhAbYoXNjE+sGrDZ+qrw9OoLkrGZh1RvuxOFOimoc kNl09YdKDyHyc8K8shREx7QEA2WfJA1ilZhZ0KyefKqtloI0wFkIG/1DWxfZyMQsweTR Q3xho5pJlxYVBADLIvkbdEJAr8mhdRBc9NjhyWOujxYNT6lJd48r2+P9hvXnnFHOPzzF T7MykdbAg7V2k1kui8ZMTe2s0D+fyfSrxCNNmrN/w9LMAOBSbxPmQDzYqmyWy0dADmR6 znUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pT7MmJp0; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc26si5219961edb.76.2021.06.17.12.49.41; Thu, 17 Jun 2021 12:50:06 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=pT7MmJp0; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230494AbhFQSFE (ORCPT + 99 others); Thu, 17 Jun 2021 14:05:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:43024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbhFQSFD (ORCPT ); Thu, 17 Jun 2021 14:05:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BC61561241; Thu, 17 Jun 2021 18:02:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623952975; bh=fcHJRF+HkDvnIqayIlyJg+KA7dLX7hNwPHMpsiYp03Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pT7MmJp04q0a1YmU0Q9w5QFKIXr18Znz39NDDpzPBUSZabZOlALqxHXtHdV/m1ebc P7wQPiegEviQb0zFiQ5FHFsNcmEAivSeKnNrXfqRXZFi3b2ozOJM2hnrExcwDUUE2K 4VhteZg29OWN1IthoCRAM5CJNYKbmqTE/veRMbA76lz3QQAgsEwIGO+lkCcMn8jHyM vLxKzJXXpBD3RvlFSxPKaHzzO6y3iOzG5ybLmoQke+aIJHbLnZtPTjRjxqoF4MQOh3 4F90jcmKKhZ5pIk3f/7so+RahCpv9eUm3LTJ8Rem2NgbANQ/jdXymYHs8QKc17qMue mnjZ8lBWhP1wQ== Date: Thu, 17 Jun 2021 11:02:50 -0700 From: Nathan Chancellor To: "Aneesh Kumar K.V" , Andrew Morton Cc: Matthew Wilcox , Naresh Kamboju , linux-next@vger.kernel.org, clang-built-linux@googlegroups.com, lkft-triage@lists.linaro.org, linux-kernel@vger.kernel.org, Nick Desaulniers , Arnd Bergmann , Stephen Rothwell Subject: Re: [next] [clang] x86_64-linux-gnu-ld: mm/mremap.o: in function `move_pgt_entry': mremap.c:(.text+0x763): undefined reference to `__compiletime_assert_342' Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rebuilt the CC list because most people were added based on the incorrect bisect result. On Thu, Jun 17, 2021 at 02:51:49PM +0100, Matthew Wilcox wrote: > On Thu, Jun 17, 2021 at 06:15:45PM +0530, Naresh Kamboju wrote: > > On Thu, 17 Jun 2021 at 17:41, Naresh Kamboju wrote: > > > x86_64-linux-gnu-ld: mm/mremap.o: in function `move_pgt_entry': > > > mremap.c:(.text+0x763): undefined reference to `__compiletime_assert_342' > > > > The git bisect pointed out the first bad commit. > > > > The first bad commit: > > commit 928cf6adc7d60c96eca760c05c1000cda061604e > > Author: Stephen Boyd > > Date: Thu Jun 17 15:21:35 2021 +1000 > > module: add printk formats to add module build ID to stacktraces > > Your git bisect probably went astray. There's no way that commit > caused that regression. My bisect landed on commit 83f85ac75855 ("mm/mremap: convert huge PUD move to separate helper"). flush_pud_tlb_range() evaluates to BUILD_BUG() when CONFIG_TRANSPARENT_HUGEPAGE is unset but this function is present just based on the value of CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD. $ make -skj(nproc) ARCH=x86_64 CC=clang O=build/x86_64 distclean allnoconfig mm/mremap.o $ llvm-readelf -s build/x86_64/mm/mremap.o &| rg __compiletime_assert 21: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND __compiletime_assert_337 $ rg TRANSPARENT_ build/x86_64/.config 450:CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y 451:CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y 562:# CONFIG_TRANSPARENT_HUGEPAGE is not set Not sure why this does not happen on newer clang versions, presumably something with inlining decisions? Still seems like a legitimate issue to me. Cheers, Nathan