Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4274088iog; Tue, 28 Jun 2022 12:39:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sx9lYCh3D9wr2HjfOkpuUuewSlrhXPbRcwnCvtYGCbktHzNPAywZos8Oy2r4lqx91Gs8ap X-Received: by 2002:a05:6a00:1354:b0:525:7483:b853 with SMTP id k20-20020a056a00135400b005257483b853mr5242996pfu.6.1656445157361; Tue, 28 Jun 2022 12:39:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656445157; cv=none; d=google.com; s=arc-20160816; b=Ss1MLzAuoYkJ7H5yK1WK+RxF0iGUU3cwyqSRpZMrp4QgkTvl1LPI6zAe5RMbgowooz a/qKw05DM0vzYOTnjdIMFm8MimSBTZaUTR67twAv+QPQXQUGC4dhXhqcQXOZulY5na5M 2IoErnYuwe44spknSO+gVHGtFTMSTnfBG8ELMiAWdi9vSOOmez2qy2Yf8HlVFtOP6eCE TG6SRjgRjT+sAvCU/+sXOe6oP0arSAImYUErKiUXTK/StGjiioJrudxgwHmSfklqHH1a uJCEEafZ6yFvrNgu1bHEZ/mEeoQN44IowLxkEngkVCNhoOeTI7hdzs1Tn4iCQ7RwyNH1 k43A== 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:in-reply-to :references:mime-version:dkim-signature; bh=nFFSUfbIlnfGEOyywbDGgiZf7UOcQCwXH88vizRPb54=; b=Bx1z563K75Ta1Zp67o9++8gi8IS/MTaZMz6k/eNV49WzMKup2/sCo8w2IEuscudSqX TLUZVH7rG69JXm6yYQPpjglM+CQLIk5aQtcXeLxcL5AHyCDc6NGinSFc3sD9gSbB9faP s0iqcwwotJAMvyc7eMtRdHc4eqR2cGb2Ffusq5qO+seXimoSeZojZYMYYRaZfJmcvP20 8Dnav/YT6us+MBM7VuP5JaM8VgQCdMNAEvksgZ9n5wq0sJPJ7irihhyjeeqzHBUxq2nm uDmMp0kkObYGJheINTtpzRLHWATjRT1eoADFdTrLsrC+Weo35mx7yU0x13vpvDv+lBH6 I27A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=QMGSWZMt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m17-20020a639411000000b003fb23692294si21317832pge.218.2022.06.28.12.39.03; Tue, 28 Jun 2022 12:39:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=QMGSWZMt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234798AbiF1TP2 (ORCPT + 99 others); Tue, 28 Jun 2022 15:15:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235696AbiF1TM2 (ORCPT ); Tue, 28 Jun 2022 15:12:28 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A141366B0 for ; Tue, 28 Jun 2022 12:12:03 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id a39so14941792ljq.11 for ; Tue, 28 Jun 2022 12:12:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nFFSUfbIlnfGEOyywbDGgiZf7UOcQCwXH88vizRPb54=; b=QMGSWZMtfiJD3l0VtJHwCLztNiH9/QdWHd1qMkxVRBBfxwdZXg2eMFZDZjTdTy3ECw C/KQlSA3z+4RLgJA7MiVQuBx0uJwo8NS6prEyRSLqpmHd9wUj9d8X3SIPLb7KDavXMGp HFuF+E7rFfOqJ2ahYwZAlyA4WHHcH8+eJseap1Mn9SRHjTt5y9b2fQDyq+1E3DEPiE9E LE5iP3WMCbHmXpceA5Pv7TtH8lVuRbjeBDn2XfJAv74YdPKWXQRCk32wQKzxtwFb5nx0 pSje8cLaIjnZEcJzX+X+TR63VDvW78xmRnegA3OqOwdyJ3ezc4AZLcl38Vl2dV9Fofl3 VP0Q== 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:from:date :message-id:subject:to:cc; bh=nFFSUfbIlnfGEOyywbDGgiZf7UOcQCwXH88vizRPb54=; b=ZNP9pMWfw0Mk/HK4n9KsRpj304ncXH5mSp7dpx/XSMELg0ppUGor5oKEta1Aix0IXr x63iqWzWWqMUNS1Jhps//toiIpHP1Q+gIgkDSaHQAyK5+LhLSzEkI+rc29UaWfu2AQIT Ox34h7RKioMpSw6J3qQPARidxOj4okEaz+Omb4GonifjXGNkuou21hz4e0mhzWjcGVm7 c/2KGmM2E/cvX60c60JEN714NhezB3lljMIR8yvglJ47z65CP1GQMiVa3ILoXGueIYlS BOyQosPh5+c2paINsc8bxERmwpeAFiAkZueRG8Yd4hyGqfXMhQnp98GA8FozuxLWPb0t 7PZQ== X-Gm-Message-State: AJIora+IKvo15rPmbrdMOkWY1g+/YdC597rqHd2K65eHYwiohtE103zO VCctzW0U3QJ1t2rGva85fkMHbiZXMSM7GEVHHsKP+Q== X-Received: by 2002:a05:651c:d4:b0:25a:91c6:d9b1 with SMTP id 20-20020a05651c00d400b0025a91c6d9b1mr10338005ljr.400.1656443521986; Tue, 28 Jun 2022 12:12:01 -0700 (PDT) MIME-Version: 1.0 References: <20220627111927.641837068@linuxfoundation.org> <20220627111929.368555413@linuxfoundation.org> <6cd16364-f0cd-b3f3-248f-4b6d585d05ef@gmail.com> In-Reply-To: <6cd16364-f0cd-b3f3-248f-4b6d585d05ef@gmail.com> From: Nick Desaulniers Date: Tue, 28 Jun 2022 12:11:50 -0700 Message-ID: Subject: Re: [PATCH 5.4 57/60] modpost: fix section mismatch check for exported init/exit sections To: Florian Fainelli , Christoph Hellwig Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Masahiro Yamada , Daniel Vetter , Jessica Yu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 Mon, Jun 27, 2022 at 10:03 AM Florian Fainelli wrote: > > On 6/27/22 04:22, Greg Kroah-Hartman wrote: > > From: Masahiro Yamada > > > > commit 28438794aba47a27e922857d27b31b74e8559143 upstream. > > > > Since commit f02e8a6596b7 ("module: Sort exported symbols"), > > EXPORT_SYMBOL* is placed in the individual section ___ksymtab(_gpl)+ > > (3 leading underscores instead of 2). > > > > Since then, modpost cannot detect the bad combination of EXPORT_SYMBOL > > and __init/__exit. > > > > Fix the .fromsec field. > > > > Fixes: f02e8a6596b7 ("module: Sort exported symbols") > > Signed-off-by: Masahiro Yamada > > Reviewed-by: Nick Desaulniers > > Signed-off-by: Greg Kroah-Hartman > > This commit causes the following warning to show up on my kernel builds > used for testing 5.4 stable candidates: > > WARNING: vmlinux.o(___ksymtab+drm_fb_helper_modinit+0x0): Section > mismatch in reference from the variable __ksymtab_drm_fb_helper_modinit > to the function .init.text:drm_fb_helper_modinit() > The symbol drm_fb_helper_modinit is exported and annotated __init > Fix this by removing the __init annotation of drm_fb_helper_modinit or > drop the export. Thanks for the report. Looks like the patch is "working as intended." It looks like drm_fb_helper_modinit was deleted outright in commit bf22c9ec39da ("drm: remove drm_fb_helper_modinit") in v5.12-rc1. Florian, can you test if that cherry-picks cleanly and resolves the issue for you? Maybe let's check with Christoph if it's ok to backport bf22c9ec39da to stable 5.10 and 5.4? > > The kernel configuration to reproduce this is located here (this is 5.10 > but works in 5.4 as well): > > https://gist.github.com/2c3e8edd5ceb089c8040db724073d941 > > Same applies to the 5.10, 5.15 and 5.18 stable queues FWIW. > -- > Florian -- Thanks, ~Nick Desaulniers