Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp555435rwb; Tue, 13 Dec 2022 22:53:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf4l0mxFm25h1L6SXk3JiLw2W8PL+q/QcpHeg4oC34I3xjGWRYyMpVHhG2r93plhiREUGCUh X-Received: by 2002:aa7:dd4a:0:b0:463:bdde:a343 with SMTP id o10-20020aa7dd4a000000b00463bddea343mr19711133edw.26.1671000835966; Tue, 13 Dec 2022 22:53:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671000835; cv=none; d=google.com; s=arc-20160816; b=wLN1b6CNiSeo94jwqp57cwJkprNxPH0AfkG/Ei9WUfkqvoeZ6L4otG9WXbsDcqb2VQ xxNhqWofec2zuZ1Jwnz1VY1SCycPM1c/dCdGNNpSkJ3bZ7wtPyl3Wbg5ZJd64kP0R12r awCF0gKGR/l8cgcuLWc68QKaoIST3mprmZJOa4gYws+bd1+voohS07K1mKrGBfdJbVtL 2eA2A2Gz8Rlbq/yCYynDvcKYCOlZGBvS5swHNhUHixsXPkCbWr5ykcOkNJycPIBLNl4l QZE9gTjPWHkYd2zlbl4z0Vxtt9Qcg46gLh6p5Hloj2Q2zvIO7FgFOWkHd/6BclbrTH+n deaQ== 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:dkim-filter; bh=kUp70rP8+WE375gZo6RwGVSoC7tN1va3x0gcuXXmVAc=; b=rh/0QR7cLRpjTUo84lCkr/qhQCyVCt0jhtQYhgI9H22DeGpK1JgmNTl8JjomWVKYjG 5YY/FOw6xLICDtuMeWCY/iQAtAiJfu0kL967u04SKjkA5+OoJnujUtDzbQpy8biwdEqt 7TQTdk4XPDOm+HoUSIUrNN/tGKNQDyjumyHeCm/GhY2OOGxZrBKc1kuHqnuvNnq/HLAM YGodwcVbb+Lv+uoetm30XhXafAAIdv/c3jcB//7FPmje+s7yrBZLBcB2utRerA8pWG2F d6XbjJ/eP/J+NIjfcsNkipDCzAD0NI4w80x+rzJr6ydyNsqovUVIn3mLywzNSfqGEs8U cZcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=fWj4uAFn; 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 c16-20020aa7df10000000b00461540620f1si10138031edy.169.2022.12.13.22.53.12; Tue, 13 Dec 2022 22:53:55 -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=@nifty.com header.s=dec2015msa header.b=fWj4uAFn; 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 S237432AbiLNGxC (ORCPT + 99 others); Wed, 14 Dec 2022 01:53:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbiLNGxA (ORCPT ); Wed, 14 Dec 2022 01:53:00 -0500 Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C434A3897; Tue, 13 Dec 2022 22:52:58 -0800 (PST) Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 2BE6qgeX000412; Wed, 14 Dec 2022 15:52:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 2BE6qgeX000412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1671000763; bh=kUp70rP8+WE375gZo6RwGVSoC7tN1va3x0gcuXXmVAc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=fWj4uAFnhzIPVRwYJ4AcO3K43yxwwVige5gzPnptks2Dc9KHP0gdXw9ZgqA7lVN/l tBYwl+YsZkBxWNB6vDEkAPbxh+LGu0R8VVXeBNF/q9nkYNMYlt80QOkhs5MKWZLikb 4PtdUJLwxzTDWDgGmc4daFosAMPfFbyWowixaKgfddq67sxqKUJo4z/Phn13gitaOo 1D6D4U25eKwdG0sxEmLzfJPnw93R5vNJh9rGwzFvRBld/t5o65vDgOWr/byh9tc6U4 Hr4F4MOPTsrLu4ux++vp+Dz3LZ7GEgyPxg2Jv94UDbgNnzvr2cunvmVVwmEvgZavlo tF8MkaknFwwOg== X-Nifty-SrcIP: [209.85.210.51] Received: by mail-ot1-f51.google.com with SMTP id x25-20020a056830115900b00670932eff32so1244238otq.3; Tue, 13 Dec 2022 22:52:43 -0800 (PST) X-Gm-Message-State: ANoB5pnaFpu9knjPXF18CWtwdt1uiMu46BvaX5wVKNtZp6cDwV4cv0pR UysForg8Qth7nMfLYIhwv3ZLUbYKvxBxWOAyZQo= X-Received: by 2002:a9d:282:0:b0:66c:794e:f8c6 with SMTP id 2-20020a9d0282000000b0066c794ef8c6mr49412729otl.343.1671000762325; Tue, 13 Dec 2022 22:52:42 -0800 (PST) MIME-Version: 1.0 References: <20221213183529.766630-1-nathan@kernel.org> In-Reply-To: <20221213183529.766630-1-nathan@kernel.org> From: Masahiro Yamada Date: Wed, 14 Dec 2022 15:52:06 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 0/2] Fix lack of section mismatch warnings with LTO To: Nathan Chancellor 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, Steffen Klassert , Daniel Jordan , linux-crypto@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL 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-crypto@vger.kernel.org On Wed, Dec 14, 2022 at 3:35 AM Nathan Chancellor wrote: > > 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. Daniel Acked v2. Applied to kbuild with his Acked-by. Thanks. > > Cc: Steffen Klassert > Cc: Daniel Jordan > Cc: linux-crypto@vger.kernel.org > > v3: > - Stick a comment above padata_work_init() to explain presence of > __ref (Masahiro, Daniel). > - Expand on problem in first patch's commit message (Masahiro). > - Adjust location of __ref within function definition (Daniel) > - Fix typo in commit message of second patch (Masahiro). > v2: https://lore.kernel.org/20221207191657.2852229-1-nathan@kernel.org/ > v1: https://lore.kernel.org/20221129190123.872394-1-nathan@kernel.org/ > > Nathan Chancellor (2): > padata: Mark padata_work_init() as __ref > modpost: Include '.text.*' in TEXT_SECTIONS > > kernel/padata.c | 12 ++++++++++-- > scripts/mod/modpost.c | 4 ++-- > 2 files changed, 12 insertions(+), 4 deletions(-) > > > base-commit: 830b3c68c1fb1e9176028d02ef86f3cf76aa2476 > -- > 2.39.0 > -- Best Regards Masahiro Yamada