Re: [mainline]Kernel crash while running ftrace selftest

From: Steven Rostedt
Date: Wed Apr 16 2025 - 15:06:06 EST


On Wed, 16 Apr 2025 22:36:11 +0530
Venkat Rao Bagalkote <venkat88@xxxxxxxxxxxxx> wrote:

> > diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
> > index a8a02868b435..777574fa3095 100644
> > --- a/kernel/trace/ftrace.c
> > +++ b/kernel/trace/ftrace.c
> > @@ -3625,8 +3625,8 @@ static int rebuild_hashes(struct ftrace_hash **filter_hash, struct ftrace_hash *
> > */
> > int ftrace_shutdown_subops(struct ftrace_ops *ops, struct ftrace_ops *subops, int command)
> > {
> > - struct ftrace_hash *filter_hash;
> > - struct ftrace_hash *notrace_hash;
> > + struct ftrace_hash *filter_hash = EMPTY_HASH;
> > + struct ftrace_hash *notrace_hash = EMPTY_HASH;
> > int ret;
> >
> > if (unlikely(ftrace_disabled))
>
>
> Hello Steve,
>
> Issue still persists with the above patch.
>

Damn!

I know you are testing PPC but can you send me your config. I can't
reproduce it on x86, but it could be some tracing options you have enable
or disabled that I don't.

Thanks,

-- Steve