Re: [PATCH v3 2/7] tracing: probe: Allocate traceprobe_parse_context from heap

From: Steven Rostedt
Date: Tue Jul 22 2025 - 18:38:27 EST


On Wed, 23 Jul 2025 07:01:46 +0900
"Masami Hiramatsu (Google)" <mhiramat@xxxxxxxxxx> wrote:

> From: Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>
>
> Instead of allocating traceprobe_parse_context on stack, allocate it
> dynamically from heap (slab).
>
> This change is likely intended to prevent potential stack overflow
> issues, which can be a concern in the kernel environment where stack
> space is limited.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202506240416.nZIhDXoO-lkp@xxxxxxxxx/
> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>

Reviewed-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>

-- Steve