]> git.ipfire.org Git - thirdparty/linux.git/commit
tracing/probes: Point the error offset correctly for eprobe argument error
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Mon, 25 May 2026 02:21:14 +0000 (11:21 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Sat, 30 May 2026 13:45:50 +0000 (22:45 +0900)
commit85e0f27dd1396307913ffc5745b0c05137e9beac
tree6b48609115bacf4a9168ecffcfd875741c0a0646
parente7ae89a0c97ce2b68b0983cd01eda67cf373517d
tracing/probes: Point the error offset correctly for eprobe argument error

Fix to point the error offset correctly for eprobe argument error.
In the cleanup commit 1b8b0cd754cd ("tracing/probes: Move event parameter
fetching code to common parser"), due to incorrect backward compatibility
aimed at conforming to the test specifications, the error location was set
to 0 when a non-existent formal parameter was specified for Eprobe.
However, this should be corrected in both the test and the implementation
to point correct error position.

Link: https://lore.kernel.org/all/177967567399.209006.1451571244515632097.stgit@devnote2/
Fixes: 1b8b0cd754cd ("tracing/probes: Move event parameter fetching code to common parser")
Cc: stable@vger.kernel.org
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_probe.c
tools/testing/selftests/ftrace/test.d/dynevent/eprobes_syntax_errors.tc