On Thu, 2 Apr 2026 00:03:15 +0800
Pengpeng Hou <[email protected]> wrote:
> 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.
>
> Reject empty immediate strings before checking for the closing quote.
>
> Fixes: a42e3c4de964 ("tracing/probe: Add immediate string parameter support")
> Signed-off-by: Pengpeng Hou <[email protected]>
Reviewed-by: Steven Rostedt (Google) <[email protected]>
-- Steve