[next-20251022] Kernel Boot Warnings at arch/powerpc/kernel/trace/ftrace.c:234
Josh Poimboeuf
jpoimboe at kernel.org
Fri Oct 31 12:07:15 AEDT 2025
On Thu, Oct 30, 2025 at 06:09:54PM +0530, Hari Bathini wrote:
> On 30/10/25 7:36 am, Josh Poimboeuf wrote:
> > On Wed, Oct 29, 2025 at 11:42:54PM +0530, Hari Bathini wrote:
> > > > I looks like another problem. I would expect that it is in
> > > > the ftrace code, either in the generic or arch-specific part.
> > > Yeah. This is part of arch-specific code that does init of ftrace
> > > out line stubs. The problem seems to be since commit 1ba9f8979426
> > > ("vmlinux.lds: Unify TEXT_MAIN, DATA_MAIN, and related macros").
> > > Before this commit, .text.startup section was featured in INIT_TEXT
> > > but now it seems to feature in TEXT. Is this change right/intentional?
> > > If yes, I can post a fix patch in ftrace arch-specific code accordingly.
> >
> > Ah, I wasn't aware of .text.startup. Apparently it's used by KASAN,
> > KCSCAN and GCOV for a significant amount of constructor code, which is
> > only called during boot. So we should try to keep it in .init.text.
> >
> > Venkat, does this fix it?
>
> I tried the patch along with
> https://lore.kernel.org/r/e52ee3edf32874da645a9e037a7d77c69893a22a.1760982784.git.jpoimboe@kernel.org
> It fixes the problems reported. Thanks!
Thanks! Patch posted here:
https://lore.kernel.org/07f74b4e5c43872572b7def30f2eac45f28675d9.1761872421.git.jpoimboe@kernel.org
--
Josh
More information about the Linuxppc-dev
mailing list