public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] tracing/fprobe: Fix fprobe_ip_table related bugs
@ 2026-04-10 17:11 Masami Hiramatsu (Google)
  2026-04-10 17:11 ` [PATCH v4 1/3] tracing/fprobe: Remove fprobe from hash in failure path Masami Hiramatsu (Google)
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Masami Hiramatsu (Google) @ 2026-04-10 17:11 UTC (permalink / raw)
  To: Steven Rostedt, Masami Hiramatsu
  Cc: Menglong Dong, Mathieu Desnoyers, jiang.biao, linux-kernel,
	linux-trace-kernel

Here are patches to fix bugs in fprobe.

The previous version is here.

https://lore.kernel.org/all/177581370903.617881.3002655215679528157.stgit@mhiramat.tok.corp.google.com/

In this version, I fixed some issues on the previous version.

Patch 1/3 updates:
      - Remove short-cut case because we always need to upadte ftrace_ops.
      - Use guard(mutex) in register_fprobe_ips() to unlock it correctly.
      - Remove redundant !ret check in register_fprobe_ips().
      - Do not set hlist_array->size in failure case, instead,
        hlist_array->array[i].fp is set only when insertion is succeeded.
Patch 2/3 updates:
      - fix a build error typo in case of CONFIG_DYNAMIC_FTRACE=n.

Thank you!


---

Masami Hiramatsu (Google) (3):
      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


 kernel/trace/fprobe.c |  236 ++++++++++++++++++++++++++++---------------------
 1 file changed, 135 insertions(+), 101 deletions(-)

--
Signature

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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-10 17:11 [PATCH v4 0/3] tracing/fprobe: Fix fprobe_ip_table related bugs Masami Hiramatsu (Google)
2026-04-10 17:11 ` [PATCH v4 1/3] tracing/fprobe: Remove fprobe from hash in failure path Masami Hiramatsu (Google)
2026-04-10 17:11 ` [PATCH v4 2/3] tracing/fprobe: Avoid kcalloc() in rcu_read_lock section Masami Hiramatsu (Google)
2026-04-10 17:11 ` [PATCH v4 3/3] tracing/fprobe: Check the same type fprobe on table as the unregistered one 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