Re: [GIT PULL] tracing: Fixes for v6.17

From: Nathan Chancellor
Date: Fri Aug 22 2025 - 17:23:29 EST


On Fri, Aug 22, 2025 at 05:16:37PM -0400, Steven Rostedt wrote:
> On Fri, 22 Aug 2025 17:08:08 -0400
> Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>
> > >
> > > If there is any other information I can provide or patches I can test, I
> > > am happy to do so.
> >
> > Can you send me your .config file?
>
> Actually, can you see if this fixes the bug you are seeing?

Yes, it does.

Tested-by: Nathan Chancellor <nathan@xxxxxxxxxx>

> diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
> index f992a5eb878e..2b570e057ba3 100644
> --- a/kernel/trace/ftrace.c
> +++ b/kernel/trace/ftrace.c
> @@ -4662,7 +4662,8 @@ ftrace_regex_open(struct ftrace_ops *ops, int flag,
> iter->hash = alloc_and_copy_ftrace_hash(size_bits, hash);
> }
> } else {
> - iter->hash = alloc_and_copy_ftrace_hash(hash->size_bits, hash);
> + if (hash)
> + iter->hash = alloc_and_copy_ftrace_hash(hash->size_bits, hash);
> }
>
> if (!iter->hash) {
>
>
> -- Steve