diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-04-11 11:33:08 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-04-11 11:33:08 -0700 |
| commit | 558b9206d59c317186786ec21c1b616ab6a6f0a4 (patch) | |
| tree | 24945dd4205ddef7dcf40a56036b7d166a2fe8c4 | |
| parent | 6b5199f4cf8d87e0952043c814cc3c6d45ae9ef6 (diff) | |
| parent | 4346be6577aaa04586167402ae87bbdbe32484a4 (diff) | |
| download | linux-558b9206d59c317186786ec21c1b616ab6a6f0a4.tar.gz linux-558b9206d59c317186786ec21c1b616ab6a6f0a4.zip | |
Merge tag 'probes-fixes-v7.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull tracing probe fix from Masami Hiramatsu:
"Reject non-closed empty immediate strings
Fix a buffer index underflow bug that occurred when passing an
non-closed empty immediate string to the probe event"
* tag 'probes-fixes-v7.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
tracing/probe: reject non-closed empty immediate strings
| -rw-r--r-- | kernel/trace/trace_probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_probe.c b/kernel/trace/trace_probe.c index e0a5dc86c07e9..e1c73065dae51 100644 --- a/kernel/trace/trace_probe.c +++ b/kernel/trace/trace_probe.c @@ -1068,7 +1068,7 @@ static int __parse_imm_string(char *str, char **pbuf, int offs) { size_t len = strlen(str); - if (str[len - 1] != '"') { + if (!len || str[len - 1] != '"') { trace_probe_log_err(offs + len, IMMSTR_NO_CLOSE); return -EINVAL; } |
