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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 283F8C433F5 for ; Sun, 22 May 2022 09:46:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242388AbiEVJqS (ORCPT ); Sun, 22 May 2022 05:46:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241841AbiEVJqR (ORCPT ); Sun, 22 May 2022 05:46:17 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1843186F8; Sun, 22 May 2022 02:46:15 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id d198so7623819iof.12; Sun, 22 May 2022 02:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=suXXqsi9+jjSf0b0zBPpTnO09e3zkBqF8Eabr9WKKbE=; b=Sc+Bu3TQQ+v5pOsrEs+Do5GftmhkiMiSIxCa44mlZDq7mNYcxLdkwdfXKicn7DRWyb HJy6WmcdRs7iPjaePufoTRon/RgIAXRWuGvptGfFgSCtrtB5Uc3R//N868TVfZjB0KKK 9YG5tmYdNtYXGnx0n/C24yH/MXnMVP1DCbqXmxIaMfuINtLRrNcmjX1RCmXKqzFDtkQX fenF6PfTaReYHMKNKQ02fqcpEST8I0hVooiLdcFQenVyu8jQfaCI4oyDyJI9fyMlZM7M drpEdkzSHlAIHKUlBsm7tUUApxovLGVTWYtzm+Y9cAPxGhuGtksm4XsjcItCKvLCCXWE zY9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=suXXqsi9+jjSf0b0zBPpTnO09e3zkBqF8Eabr9WKKbE=; b=sEKslnHCLPFVLUAnU3qM9DFG2tdPg4YT1XiQCo+7g+3wJby0YYlRjeEqkGGspwHByC +dbidlCAD4AQ2jt3Q5NSwbGNiT+EZm5t6rom3IOXet61M2sBxJsLRjuG86p/J6WZt4bQ jCZFKUFpLPS9ygky8veYBo3QZ4wIuzIZuL0cZEUfsSYkhFAUzgWcsSoraGuyfDDbR5k5 j4Efnbb5E1gEgE0h9bYKR1e3o10SaeIOlcOteM192LnKxkSkjSJhG92nAW2KsYIlzvvO Tg+yu02WprondTFb+Wg7r9p44s3m5HarKJvB9rcidfhxjF+X6aBbgqXBOe38I/UUIreg dFiQ== X-Gm-Message-State: AOAM530QUmQDIhShA4qH7MOBImmqAY4HOxClvI7NdkQhSGk5AOVNlBAC 7hAtXmvklQ9b48fyhl1Fox1CEbj0ey55e8ixLoM= X-Google-Smtp-Source: ABdhPJwk75eAgmPLNvyHtlfHoP5i7/H2Vm4/MJ4t9PpFPunYJ+u9wWBwvWaEctXhAxfGgh6zp9BW4bjDSvEZguLIAA4= X-Received: by 2002:a05:6602:1542:b0:65a:bc5d:db78 with SMTP id h2-20020a056602154200b0065abc5ddb78mr8040039iow.128.1653212775197; Sun, 22 May 2022 02:46:15 -0700 (PDT) MIME-Version: 1.0 References: <20220513113930.10488-1-masahiroy@kernel.org> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Sun, 22 May 2022 11:45:39 +0200 Message-ID: Subject: Re: [PATCH v6 00/10] kbuild: yet another series of cleanups (modpost, LTO, MODULE_REL_CRCS, export.h) To: Masahiro Yamada Cc: Linux Kbuild mailing list , Linux Kernel Mailing List , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Peter Zijlstra , linux-modules , clang-built-linux , Ard Biesheuvel , Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: On Sun, May 22, 2022 at 8:50 AM Masahiro Yamada wrote: > > On Sun, May 22, 2022 at 10:45 AM Sedat Dilek wrote: > > > > On Fri, May 13, 2022 at 4:31 PM Masahiro Yamada wrote: > > > > > > On Fri, May 13, 2022 at 8:42 PM Masahiro Yamada wrote: > > > > > > > > > > > > This is the third batch of cleanups in this development cycle. > > > > > > > > > > > > > This series is available at > > > git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git > > > lto-cleanup-v6 > > > > > > > Hi Masahiro, > > > > I cloned the repository on top of latest Linus Git. > > > > Not able to boot in Quemu - Not able to boot on bare metal. > > > > $ grep module_layout log_quemu-5.18.0-rc7-2-amd64-clang14-lto.txt > > 366:[ 2.173265] floppy: disagrees about version of symbol module_layout > > 367:[ 2.198746] scsi_common: disagrees about version of symbol module_layout > > 368:[ 2.205573] i2c_piix4: disagrees about version of symbol module_layout > > 369:[ 2.210610] psmouse: disagrees about version of symbol module_layout > > 370:[ 2.225138] scsi_common: disagrees about version of symbol module_layout > > 371:[ 2.235536] scsi_common: disagrees about version of symbol module_layout > > 375:Begin: Running /scripts/local-premount ... [ 2.298555] > > crc32c_intel: disagrees about version of symbol module_layout > > 376:[ 2.303335] crc32c_generic: disagrees about version of symbol > > module_layout > > 377:[ 2.306667] libcrc32c: disagrees about version of symbol module_layout > > > > Infos: LLVM-14 + CONFIG_LTO_CLANG_THIN=y > > > > My linux-config and qemu-log are attached. > > > > > Thanks for your testing. > > I was also able to reproduce this issue. > > > The problematic parts are: > > [ 2.298555] crc32c_intel: disagrees about version of symbol module_layout > [ 2.303335] crc32c_generic: disagrees about version of symbol module_layout > [ 2.306667] libcrc32c: disagrees about version of symbol module_layout > > > > When CONFIG_LTO_CLANG_THIN=y, > I cannot see any __crc_* symbols in "nm vmlinux". > > Perhaps, LTO might have discarded all the __crc_* symbols > from vmlinux, but I am still checking the details... > Thanks for taking care. Just for the records: $ grep CONFIG_MODVERSIONS /boot/config-5.18.0-rc7-2-amd64-clang14-lto CONFIG_MODVERSIONS=y -Sedat-