[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNAR6aPQEM3e_yuq4jgCAAiJ+cr6xGvG1N4uZfw70xk_YSg@mail.gmail.com>
Date: Wed, 14 Dec 2022 15:52:06 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Nathan Chancellor <nathan@...nel.org>
Cc: Nick Desaulniers <ndesaulniers@...gle.com>,
Tom Rix <trix@...hat.com>, Nicolas Schier <nicolas@...sle.eu>,
Sami Tolvanen <samitolvanen@...gle.com>,
Vincent Donnefort <vdonnefort@...gle.com>,
linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
llvm@...ts.linux.dev, patches@...ts.linux.dev,
Steffen Klassert <steffen.klassert@...unet.com>,
Daniel Jordan <daniel.m.jordan@...cle.com>,
linux-crypto@...r.kernel.org
Subject: Re: [PATCH v3 0/2] Fix lack of section mismatch warnings with LTO
On Wed, Dec 14, 2022 at 3:35 AM Nathan Chancellor <nathan@...nel.org> 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 <steffen.klassert@...unet.com>
> Cc: Daniel Jordan <daniel.m.jordan@...cle.com>
> Cc: linux-crypto@...r.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
Powered by blists - more mailing lists