public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/5] tracing/fprobe: Fix fprobe_ip_table related bugs
@ 2026-04-14  9:14 Masami Hiramatsu (Google)
  2026-04-14  9:14 ` [PATCH v6 1/5] tracing/fprobe: Reject registration of a registered fprobe before init Masami Hiramatsu (Google)
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Masami Hiramatsu (Google) @ 2026-04-14  9:14 UTC (permalink / raw)
  To: Steven Rostedt, Masami Hiramatsu
  Cc: Menglong Dong, Mathieu Desnoyers, jiang.biao, linux-kernel,
	linux-trace-kernel

Hi,

Here is the 6th version of fprobe bugfix series.
The previous version is here.

https://lore.kernel.org/all/177606956628.929411.17392736689322577701.stgit@devnote2/

In this version, I added yet another bugfixes for rejecting registered
fprobe correctly [1/5], and unregistering ftrace_ops if it is empty on
module unloading [5/5]. Also, add RCU synchronization for failure path
[2/5] and retry rhashtable walking outside of rhltable_walk_enter/exit
[3/5].

The [5/5] is to handle the module unloading problem I reported
previously [1]. This was handled solely within fprobe to avoid
impacting the live patch.

[1] https://lore.kernel.org/all/20260408110237.08d982fab08356bc8d48af45@kernel.org/

Thank you!

Masami Hiramatsu (Google) (5):
      tracing/fprobe: Reject registration of a registered fprobe before init
      tracing/fprobe: Remove fprobe from hash in failure path
      tracing/fprobe: Avoid kcalloc() in rcu_read_lock section
      tracing/fprobe: Check the same type fprobe on table as the unregistered one
      tracing/fprobe: Fix to unregister ftrace_ops if it is empty on module unloading


 kernel/trace/fprobe.c |  462 +++++++++++++++++++++++++++++++++----------------
 1 file changed, 308 insertions(+), 154 deletions(-)


base-commit: 4346be6577aaa04586167402ae87bbdbe32484a4
--
Masami Hiramatsu (Google) <mhiramat@kernel.org>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-04-15 10:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-14  9:14 [PATCH v6 0/5] tracing/fprobe: Fix fprobe_ip_table related bugs Masami Hiramatsu (Google)
2026-04-14  9:14 ` [PATCH v6 1/5] tracing/fprobe: Reject registration of a registered fprobe before init Masami Hiramatsu (Google)
2026-04-14  9:14 ` [PATCH v6 2/5] tracing/fprobe: Remove fprobe from hash in failure path Masami Hiramatsu (Google)
2026-04-15  9:47   ` Menglong Dong
2026-04-15 10:06     ` Masami Hiramatsu
2026-04-14  9:15 ` [PATCH v6 3/5] tracing/fprobe: Avoid kcalloc() in rcu_read_lock section Masami Hiramatsu (Google)
2026-04-14  9:15 ` [PATCH v6 4/5] tracing/fprobe: Check the same type fprobe on table as the unregistered one Masami Hiramatsu (Google)
2026-04-14  9:15 ` [PATCH v6 5/5] tracing/fprobe: Fix to unregister ftrace_ops if it is empty on module unloading Masami Hiramatsu (Google)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox