Re: [PATCH] fprobe: Use guard(rcu_sched_notrace) and check rcu_is_watching()
From: Steven Rostedt
Date: Wed Sep 30 2026 - 16:54:04 EST
On Tue, 29 Sep 2026 09:19:12 +0900
"Masami Hiramatsu (Google)" <mhiramat@xxxxxxxxxx> wrote:
> @@ -329,16 +333,14 @@ static void fprobe_ftrace_entry(unsigned long ip, unsigned long parent_ip,
> struct fprobe *fp;
> int bit;
>
> + if (!rcu_is_watching())
> + return;
> +
I'm thinking these should really be:
if (WARN_ON_ONCE(!rcu_is_watching()))
return;
-- Steve