Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1264429rwb; Tue, 29 Nov 2022 11:03:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf5SBQfPa+fqtro7lJHHM5Y4M1TUNGXEkm8iTIfN1IDTJ1bXRgkSQ4LKF97kiTZ+dl6lbyAh X-Received: by 2002:a17:902:ee82:b0:189:6ed3:95ea with SMTP id a2-20020a170902ee8200b001896ed395eamr20610380pld.164.1669748592109; Tue, 29 Nov 2022 11:03:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669748592; cv=none; d=google.com; s=arc-20160816; b=BZjYGX2PwQROrpNufQOHYk6CHdEn/agCORsPmso2882msqhVLupRkJZdxka+G9upah NVmRIV0Ra9c2nipSegLTDsNZlQJGMwE/rmOq80DYdxJyAEnmoCqeSZTkS9Nywxxc4W1p UBoIx6hpUaCvYu14SKqpeEfRPk5R1osjQ3Zb+2Jsnl4x2j2I2+iAP7CT52uxfp5S1ogg lZ4CGVXnPcU/fxmOxdvGuu478te9I7VXZnrocgQgNFAe3Aqln17BQoq8chbHq8P1soFh 59+/8lia6WPo04IcX9f2ekBpHOqMZK82o3afw696Xis43GXP0zpMSQQfclaPQC/6WJvi 02lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=h8izmOGT1N1XVNe1ufb82y6nnjWLxZGGhdgHPEAfZ+c=; b=mP1E196MkcsO9qJ14oV15+r9nSzXL74Wjekr/QiqaZcDMdSZa7OhGsClLeXatYH0EQ UhrhfNMa6MnYraUeY9Ndg9jbsqdhJKyod2k+Znz4KHuoHpzj7IRCSdgouTlCdpdyYIiD J+3mXAy+bhOiQbzQl9Q9cuob8g2vvJPiY1YD4T3uU4hhPVTZlHKHnj9k1HcVIVhVGjxw KD1e/UtCnExWf+fVjgW7ltrbmDPscVpJdlFb1FAAc5qHNq1Z0T9OSZ3P91yyKZaRBJcz x2gz62a35vljczeuyHAe6TPJhryYwaSwIKCxScLiHaRgQC6MFpSbXc9t3OKScxR+RbJK k8Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KsKrOrON; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a056a00159100b00574c8aba4d3si14635771pfk.153.2022.11.29.11.02.49; Tue, 29 Nov 2022 11:03:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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=@kernel.org header.s=k20201202 header.b=KsKrOrON; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S236266AbiK2TCm (ORCPT + 99 others); Tue, 29 Nov 2022 14:02:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236394AbiK2TCU (ORCPT ); Tue, 29 Nov 2022 14:02:20 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0444BA1BD; Tue, 29 Nov 2022 11:02:07 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9371461874; Tue, 29 Nov 2022 19:02:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4124BC433C1; Tue, 29 Nov 2022 19:02:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669748526; bh=76rMPn3p1fYb/OlmUR+9LC3Aio6SHBw/oxeOcaAWk9w=; h=From:To:Cc:Subject:Date:From; b=KsKrOrONiEvlBlKvrXEX0OiVBSQotOXCPTrbKjOJbp/7GWjnAYrOgYffiJ2aEIY+i Tovr9GCVJ2wAVvUR8bCLWC8UxRb+hHm6wAJsXKOuTnsmDtDVQIdaC/Az60aSgN4JWt IWBseyS/WVHS6nJ9Lugdg52Iv8bQKgXnGPfO7GiqDR7u0DEDN4/ZtADZ0lxF77qTgL 3IJ1jie/n/iRcwcd01gIRCcjTW1BI7h/c431CXz0Kl/fmnqxzxnHCtSH5stwKVFoqH hFkye6zaTnM73DBTWqD78knjzqIY93eSq+VU9Ve/dJOs6g+3HvZ2ej7MtqfRiT3FGr 6/C0P/ac9EXyw== From: Nathan Chancellor To: Masahiro Yamada Cc: Nick Desaulniers , Tom Rix , Nicolas Schier , Sami Tolvanen , Vincent Donnefort , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, Nathan Chancellor , Steffen Klassert , Daniel Jordan , linux-crypto@vger.kernel.org Subject: [PATCH 0/2] Fix lack of section mismatch warnings with LTO Date: Tue, 29 Nov 2022 12:01:21 -0700 Message-Id: <20221129190123.872394-1-nathan@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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-crypto@vger.kernel.org Hi all, Vincent recently reported an issue with lack of section mismatch warnings with LTO. This is due to commit 6c730bfc894f ("modpost: handle -ffunction-sections"), which ignores all function sections for modpost. I believe this is incorrect, as these function sections may still refer to symbols in other sections and they will ultimately be coalesced into .text by vmlinux.lds anyways. The first patch fixes a warning that I see with allmodconfig + ThinLTO builds after applying the second patch. The second patch moves ".text.*" into TEXT_SECTIONS so that modpost audits them for mismatches. I expect this to go via the kbuild tree with an ack from the padata maintainers. Cc: Steffen Klassert Cc: Daniel Jordan Cc: linux-crypto@vger.kernel.org Nathan Chancellor (2): padata: Do not mark padata_mt_helper() as __init modpost: Include '.text.*' in TEXT_SECTIONS kernel/padata.c | 4 ++-- scripts/mod/modpost.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) base-commit: b7b275e60bcd5f89771e865a8239325f86d9927d -- 2.38.1