Re: [PATCH] x86/cfi: add __init_or_module annotations for fineibt
From: Calvin Owens
Date: Thu Jun 11 2026 - 00:05:39 EST
On Wednesday 06/10 at 13:02 -0700, Borislav Petkov wrote:
> On Wed, Jun 10, 2026 at 08:54:26AM -0700, Calvin Owens wrote:
> > On Monday 05/25 at 20:22 -0700, Calvin Owens wrote:
> > > I'm seeing some benign section mismatch warnings with fineibt when
> > > building kernels with CONFIG_MODULES=n:
> > >
> > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0x1db (section: .text) -> text_poke_early (section: .init.text)
> > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0x473 (section: .text) -> text_poke_early (section: .init.text)
> > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0x57c (section: .text) -> text_poke_early (section: .init.text)
> > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0x6d9 (section: .text) -> text_poke_early (section: .init.text)
> > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0xb57 (section: .text) -> text_poke_early (section: .init.text)
> > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0xb81 (section: .text) -> text_poke_early (section: .init.text)
> > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0xd00 (section: .text) -> poison_endbr (section: .init.text)
> > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0xdd3 (section: .text) -> text_poke_early (section: .init.text)
> > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0xe58 (section: .text) -> text_poke_early (section: .init.text)
> > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0xe85 (section: .text) -> text_poke_early (section: .init.text)
> > > WARNING: modpost: vmlinux: section mismatch in reference: apply_fineibt+0x8 (section: .text.unlikely.) -> __apply_fineibt (section: .init.text)
> > >
> > > Add the missing __init_or_module section annotations to fix the
> > > warnings, and also free up a tiny bit of memory after boot.
> > >
> > > Signed-off-by: Calvin Owens <calvin@xxxxxxxxxx>
> >
> > Gentle ping.
>
> This is just fixing warnings so it can wait until after the merge window,
> right?
It can definitely wait for 7.2, I just haven't seen it in -next yet.
But if it's easier to do it after 7.2-rc1 at this point that's fine too.
> --
> Regards/Gruss,
> Boris.
>
> https://people.kernel.org/tglx/notes-about-netiquette