Re: [PATCH v3 2/7] tracing: probe: Allocate traceprobe_parse_context from heap
From: Google
Date: Tue Jul 22 2025 - 20:26:59 EST
On Tue, 22 Jul 2025 18:38:13 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> 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>
>
Thanks!
> -- Steve
--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>