Re: [PATCH v7 2/6] treewide: Replace memcpy(..., current->comm) with copy_task_comm()
From: Steven Rostedt
Date: Sat Oct 10 2026 - 19:50:20 EST
On Fri, 11 Sep 2026 22:23:59 -0300
André Almeida <andrealmeid@xxxxxxxxxx> wrote:
> In order to increase the size of current->comm[] and to avoid breaking any
> existing code, replace memcpy() with copy_task_comm(). This new function
> makes sure that the copy is NUL terminated. This is crucial given that the
> source buffer might be larger than the destination buffer and could
> truncate the NUL character out of it.
>
> Signed-off-by: André Almeida <andrealmeid@xxxxxxxxxx>
Acked-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
-- Steve