Skip to contentSkip to conversation

probes: Fixes for v6.17-rc2

GIT PULL Merged Masami Hiramatsu (Google) 2 participants 2 messages Aug 20, 2025 Tracing

lore
Share & tools
lore

Masami Hiramatsu (Google)

author maintainer
#0 lore raw

Hi Linus,

Probes fixes for v6.17-rc2:

- tracing: fprobe-event: Sanitize wildcard for fprobe event name Fprobe event accepts wildcards for the target functions, but unless the user specifies its event name, it makes an event with the wildcards. Replace the wildcard '*' with the underscore '_'.

Please pull the latest probes-fixes-v6.17-rc2 tree, which can be found at:

git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
probes-fixes-v6.17-rc2

Tag SHA1: 79f2c8d9a0956a85dadb6c8cd1c972e87777969b Head SHA1: ec879e1a0be8007aa232ffedcf6a6445dfc1a3d7

Masami Hiramatsu (Google) (1):
tracing: fprobe-event: Sanitize wildcard for fprobe event name

----

 kernel/trace/trace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---------------------------
commit ec879e1a0be8007aa232ffedcf6a6445dfc1a3d7
Author: Masami Hiramatsu (Google) <[email protected]>
Date:   Sat Aug 16 23:10:51 2025 +0900

tracing: fprobe-event: Sanitize wildcard for fprobe event name

Fprobe event accepts wildcards for the target functions, but unless user specifies its event name, it makes an event with the wildcards.

/sys/kernel/tracing # echo 'f mutex*' >> dynamic_events /sys/kernel/tracing # cat dynamic_events f:fprobes/mutex*__entry mutex* /sys/kernel/tracing # ls events/fprobes/
enable filter mutex*__entry

To fix this, replace the wildcard ('*') with an underscore.

Fixes 334e5519c375 ("tracing/probes: Add fprobe events for tracing function entry and exit.")
kernel/trace/trace.h +1 -1
index 1dbf1d3cf2f1..5a6688832da8 100644
@@ -2204,7 +2204,7 @@ static inline bool is_good_system_name(const char *name)
 static inline void sanitize_event_name(char *name)
 {
 	while (*name++ != '\0')
-		if (*name == ':' || *name == '.')
+		if (*name == ':' || *name == '.' || *name == '*')
 			*name = '_';
 }
 
Signature · 1 line
Masami Hiramatsu (Google) <[email protected]>
merge bot Merged
#1 lore raw
The pull request you sent on Thu, 21 Aug 2025 08:21:29 +0900:

The pull request you sent on Thu, 21 Aug 2025 08:21:29 +0900:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git probes-fixes-v6.17-rc2

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/068a56e56fa81e42fc5f08dff34fab149bb60a09

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html