diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-04-02 00:03:15 +0800 |
|---|---|---|
| committer | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2026-04-06 09:22:42 +0900 |
| commit | 4346be6577aaa04586167402ae87bbdbe32484a4 (patch) | |
| tree | 5f31244aeedc7bab1a516892858ec7b1604ca369 /samples/workqueue | |
| parent | 591cd656a1bf5ea94a222af5ef2ee76df029c1d2 (diff) | |
tracing/probe: reject non-closed empty immediate strings
parse_probe_arg() accepts quoted immediate strings and passes the body
after the opening quote to __parse_imm_string(). That helper currently
computes strlen(str) and immediately dereferences str[len - 1], which
underflows when the body is empty and not closed with double-quotation.
Reject empty non-closed immediate strings before checking for the closing quote.
Link: https://lore.kernel.org/all/20260401160315.88518-1-pengpeng@iscas.ac.cn/
Fixes: a42e3c4de964 ("tracing/probe: Add immediate string parameter support")
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'samples/workqueue')
0 files changed, 0 insertions, 0 deletions
