Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3275479lfo; Mon, 23 May 2022 00:28:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjmpGD4bPbmsiypyimD6Hsmy44ZLi2vxN62zk0D8IoDRtK7Vx3Rq0VW4OMv2ugTeNp7Zuv X-Received: by 2002:a17:903:32cc:b0:161:9539:fd49 with SMTP id i12-20020a17090332cc00b001619539fd49mr22189975plr.117.1653290908588; Mon, 23 May 2022 00:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653290908; cv=none; d=google.com; s=arc-20160816; b=iv+c+TjukgZou3s7IrXhC0eo6BS/aq8XRvGN8q9712KEuAPMGiQgXYtteeMbTvqIGS RIsX5mUJbaVRPqeCzZbvi57yRE+uN5cb4TV/B9Dt72Z0y+1AnPzOOV5T2sTnDaVhvpY7 jnyWUS9amJXpx4SKX3+AxAaAuUkLxEW2UdhcZy1MOo/zejtDazvA4oH2ninHRvn2tbIf KdE8mVIyvN4uhybxTr1DxtjZlPegh7WcncsTluqX9nBB+BDm+UPeupobPrbN5BwKo2RK ji8LMobq/q2PX/m6GIkp7dLIjFDfieD3p3/O8Kc6v3arVOS7tA27Vcu6PgMZlfrRGTx0 SB4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=suXXqsi9+jjSf0b0zBPpTnO09e3zkBqF8Eabr9WKKbE=; b=Ml1Yxk52jyuTQKglCmkL7m4IrwZHohqj+P4Fmjy3cwIqygRKQdjZvHcjv0yKXBptCH ogNtfLWnCyJn2nATe1th5B40fgedh4WKfeBgKJ1QtowVFd1qOs+Tihotsn3QOonTRHGL nBajUsK3sNKTlmvcGukJBn4Ne7OTBsMqydHHVEvnAxMS8NBZC3rIp0zbO1kQlIjWUgbG LWsZeKSXINjl4FcuPC+aS5M7Z0IvHH1aNS4AkIebG+CUMTRiuFyUuvzr84WdCOPqO6JO Xy9KDrsei1J51oxF09LiInhGj9mua+ksGE6YKK42vFxTPd9b5owce8NFTIgukwQNELir Q5nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Sc+Bu3TQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k9-20020a056a00168900b0051854e7af02si14160641pfc.32.2022.05.23.00.28.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:28:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Sc+Bu3TQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9C3F42DA9B; Sun, 22 May 2022 23:41:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242677AbiEVJqT (ORCPT + 99 others); Sun, 22 May 2022 05:46:19 -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-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" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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-