Re: [PATCH 08/48] objtool/klp: Don't correlate __initstub__ symbols

Song Liu
2026-04-24T20:57:17Z

On Wed, Apr 22, 2026 at 9:04 PM Josh Poimboeuf <jpoimboe@kernel.org> wrote:
>
> With LTO, the initcall infrastructure generates __initstub__kmod_*
> wrapper functions in .init.text. These are the LTO equivalent of
> __initcall__kmod_* data pointers, which are already excluded from
> correlation.
>
> These are __init functions whose memory is freed after boot, so there's
> no reason to include or reference them in a livepatch module.
>
> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>

Acked-by: Song Liu <song@kernel.org>