From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E506C4361B for ; Wed, 9 Dec 2020 19:25:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5AD6B23C41 for ; Wed, 9 Dec 2020 19:25:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387596AbgLITZa (ORCPT ); Wed, 9 Dec 2020 14:25:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:34436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729345AbgLITZV (ORCPT ); Wed, 9 Dec 2020 14:25:21 -0500 X-Gm-Message-State: AOAM532l3TbJttgtMFWH/FX67lJ0sF8srCFNHYJ1OCbEfC0IAsx9G5Za vQUdSmwYe/3ytUt5nEORRuc865GWKYZdZBbFY5U= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607541880; bh=PZ3OfDYS58ZqvFY9CXvEZH4DVeL16HFv3jTodD2L44Y=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VIdtJMVmToMLsEqoyt3Bw07XE58IWwbXZOF/8vrKCAGHhqAdsjQZPJS4ga0NNbRG8 spLjREDJ4m3bTXixW4JfKn8XswUsOOLs2W9FkMCN+8Z3YFlyRmQSSNmHYmLYsCTxJD zj0j4Ti2xsxMaim+W2o/IpIIHePjqUYsYAQemyp3ETe6u+EgUMbFRqz4LJTWkEkY3N yX4xTcMaC0W5M9lOAIy2/yi5mhsM6Y6nT+IaGhBTpK2YLWIyyqcxfsxQlm4dbfRZ71 W8Vw21ekj4xBV3oG8wCADt5YbBnXr2ko3FbvYFKqtPvGaksKPDHteUs9DBPQtdgtsQ AUPXqcO+wHU5g== X-Google-Smtp-Source: ABdhPJxrF0JWWKfF8bdNN4CMhLw4IPsYEUqP84GKhCmRyu9bJHDs/0dxAJvZhfRzwJd+w8POtqSy2lbm6ieBc+qVqo4= X-Received: by 2002:aca:44d:: with SMTP id 74mr2951158oie.4.1607541879572; Wed, 09 Dec 2020 11:24:39 -0800 (PST) MIME-Version: 1.0 References: <20201201213707.541432-1-samitolvanen@google.com> In-Reply-To: From: Arnd Bergmann Date: Wed, 9 Dec 2020 20:24:22 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v8 00/16] Add support for Clang LTO To: Sami Tolvanen Cc: Masahiro Yamada , Steven Rostedt , Will Deacon , Josh Poimboeuf , Peter Zijlstra , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux , Kernel Hardening , linux-arch , Linux ARM , Linux Kbuild mailing list , "linux-kernel@vger.kernel.org" , linux-pci Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 9, 2020 at 5:09 PM 'Sami Tolvanen' via Clang Built Linux wrote: > On Tue, Dec 8, 2020 at 1:02 PM Arnd Bergmann wrote: > > On Tue, Dec 8, 2020 at 9:59 PM Arnd Bergmann wrote: > > > > > > Attaching the config for "ld.lld: error: Never resolved function from > > > blockaddress (Producer: 'LLVM12.0.0' Reader: 'LLVM 12.0.0')" > > > > And here is a new one: "ld.lld: error: assignment to symbol > > init_pg_end does not converge" > > Thanks for these. I can reproduce the "Never resolved function from > blockaddress" issue with full LTO, but I couldn't reproduce this one > with ToT Clang, and the config doesn't have LTO enabled: > > $ grep LTO 0x2824F594_defconfig > CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=y > > Is this the correct config file? It is the right file, and so far this is the only defconfig on which I see the "does not converge" error, so I don't have any other one. I suspect this might be an issue in the version of lld that I have here and unrelated to LTO, and I can confirm that I see the error with LTO still disabled. It seems to be completely random. I do see the bug on next-20201203 but not on a later one. I also tried bisecting through linux-next and arrived at "lib: stackdepot: add support to configure STACK_HASH_SIZE", which is almost certainly not related, other than just changing a few symbols around. Arnd