From: Steven Rostedt <rostedt@goodmis.org>
To: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Madhavan Srinivasan <maddy@linux.ibm.com>,
Hari Bathini <hbathini@linux.ibm.com>
Subject: Re: [mainline]Kernel crash while running ftrace selftest
Date: Wed, 16 Apr 2025 11:02:53 -0400 [thread overview]
Message-ID: <20250416110253.62056f4f@batman.local.home> (raw)
In-Reply-To: <1db64a42-626d-4b3a-be08-c65e47333ce2@linux.ibm.com>
On Wed, 16 Apr 2025 12:37:15 +0530
Venkat Rao Bagalkote <venkat88@linux.ibm.com> wrote:
Thanks for the bug report!
> [15137.589546] NIP [c0000000003e4738] ops_equal+0x8/0x170
> [15137.589553] LR [c0000000003ec708] ftrace_update_ops+0x78/0xe0
Hmm, I'm guessing that you hit a path where the filter_hash or
notrace_hash never was initialized.
> [15137.589561] Call Trace:
> [15137.589564] [c00000001473f9c0] [c0000000003ec6ec]
> ftrace_update_ops+0x5c/0xe0 (unreliable)
> [15137.589575] [c00000001473fa00] [c0000000003f31b4]
> ftrace_startup_subops+0x124/0x5c0
> [15137.589583] [c00000001473faa0] [c
Can you see if this fixes the issue for you?
Thanks!
-- Steve
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))
next prev parent reply other threads:[~2025-04-16 15:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-16 7:07 Venkat Rao Bagalkote
2025-04-16 15:02 ` Steven Rostedt [this message]
2025-04-16 17:06 ` Venkat Rao Bagalkote
2025-04-16 19:07 ` Steven Rostedt
2025-04-16 19:20 ` Steven Rostedt
2025-04-17 5:57 ` Venkat Rao Bagalkote
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=20250416110253.62056f4f@batman.local.home \
--to=rostedt@goodmis.org \
--cc=hbathini@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maddy@linux.ibm.com \
--cc=venkat88@linux.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®