Re: [PATCH] tracing/probes: Limit size of event probe to 3K
From: Steven Rostedt
Date: Tue Apr 28 2026 - 20:32:48 EST
On Tue, 28 Apr 2026 12:23:02 -0400
Steven Rostedt <rostedt@xxxxxxxxxx> wrote:
> From: Steven Rostedt <rostedt@xxxxxxxxxxx>
>
> There currently isn't a max limit an event probe can be. One could make an
> event greater than PAGE_SIZE, which makes the event useless because if
> it's bigger than the max event that can be recorded into the ring buffer,
> then it will never be recorded.
>
> A event probe should never need to be greater than 3K, so make that the
> max size. As long as the max is less than the max that can be recorded
> onto the ring buffer, it should be fine.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: 93ccae7a22274 ("tracing/kprobes: Support basic types on dynamic events")
> Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
Hi Masami,
I ran this through my tests along with some other fixes I have. If you
ack it, I can push this to Linus along with my other changes.
-- Steve