summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc.rs
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-07-20 19:12:38 +0900
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-07-21 10:23:21 +0900
commitf418d68d71fd4a0a9cef92377bc8c4c3334b5b53 (patch)
tree5e7da33e53d13dc0798b7489ea8337f8bf63b21d /rust/kernel/alloc.rs
parent8ce20bfba48902e1382187cd1a852f7cf3a1e739 (diff)
downloadlinux-f418d68d71fd4a0a9cef92377bc8c4c3334b5b53.tar.gz
linux-f418d68d71fd4a0a9cef92377bc8c4c3334b5b53.zip
tracing/eprobe: Fix exact system name matching in eprobe_dyn_event_match()
eprobe_dyn_event_match() checks if the target event system in argv[0] matches ep->event_system using strncmp(ep->event_system, argv[0], len). However, if ep->event_system is longer than len (e.g. "eprobes" vs "ep/event"), strncmp() still returns 0 because the first len characters match. Check that ep->event_system[len] is '\0' to ensure exact system name matching. Link: https://lore.kernel.org/all/178454235856.290363.14872590900774231133.stgit@devnote2/ Fixes: 7d5fda1c841f ("tracing: Fix event probe removal from dynamic events") Cc: stable@vger.kernel.org Assisted-by: Antigravity:gemini-3.5-flash Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'rust/kernel/alloc.rs')
0 files changed, 0 insertions, 0 deletions