From: Nathan Chancellor <nathan@kernel.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>,
Masami Hiramatsu <mhiramat@kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Mark Rutland <mark.rutland@arm.com>,
Andrew Morton <akpm@linux-foundation.org>,
Liao Yuanhong <liaoyuanhong@vivo.com>,
Pu Lehui <pulehui@huawei.com>, Tao Chen <chen.dylane@linux.dev>,
Tengda Wu <wutengda@huaweicloud.com>,
Ye Weihua <yeweihua4@huawei.com>
Subject: Re: [GIT PULL] tracing: Fixes for v6.17
Date: Fri, 22 Aug 2025 16:55:36 -0700 [thread overview]
Message-ID: <20250822235536.GA1367428@ax162> (raw)
In-Reply-To: <20250822173959.72e636c4@gandalf.local.home>
On Fri, Aug 22, 2025 at 05:39:59PM -0400, Steven Rostedt wrote:
> On Fri, 22 Aug 2025 14:23:11 -0700
> Nathan Chancellor <nathan@kernel.org> wrote:
>
> > > Actually, can you see if this fixes the bug you are seeing?
> >
> > Yes, it does.
> >
> > Tested-by: Nathan Chancellor <nathan@kernel.org>
>
> Ah, that patch isn't good, as iter->hash must be non NULL going forward,
> otherwise it thinks it failed to allocated.
>
> Could you test this one instead?
Yes, this one works as well for that test.
> diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
> index f992a5eb878e..a69067367c29 100644
> --- a/kernel/trace/ftrace.c
> +++ b/kernel/trace/ftrace.c
> @@ -4662,7 +4662,10 @@ 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);
> + else
> + iter->hash = EMPTY_HASH;
> }
>
> if (!iter->hash) {
>
>
> Thanks,
>
> -- Steve
next prev parent reply other threads:[~2025-08-22 23:55 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-22 16:49 [GIT PULL] tracing: Fixes for v6.17 Steven Rostedt
2025-08-22 19:24 ` Nathan Chancellor
2025-08-22 21:08 ` Steven Rostedt
2025-08-22 21:16 ` Steven Rostedt
2025-08-22 21:23 ` Nathan Chancellor
2025-08-22 21:31 ` Steven Rostedt
2025-08-22 21:39 ` Steven Rostedt
2025-08-22 23:55 ` Nathan Chancellor [this message]
2025-08-22 23:57 ` Steven Rostedt
-- strict thread matches above, loose matches on Subject: below --
2025-09-09 20:21 Steven Rostedt
2025-09-10 19:19 ` Linus Torvalds
2025-09-10 19:37 ` Linus Torvalds
2025-09-10 19:49 ` Mathieu Desnoyers
2025-09-10 20:21 ` Steven Rostedt
2025-09-10 20:42 ` Linus Torvalds
2025-09-10 20:04 ` Steven Rostedt
2025-09-10 19:42 ` pr-tracker-bot
2025-09-28 12:46 Steven Rostedt
2025-09-28 17:31 ` pr-tracker-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250822235536.GA1367428@ax162 \
--to=nathan@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=chen.dylane@linux.dev \
--cc=liaoyuanhong@vivo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=pulehui@huawei.com \
--cc=rostedt@goodmis.org \
--cc=torvalds@linux-foundation.org \
--cc=wutengda@huaweicloud.com \
--cc=yeweihua4@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.