Re: [PATCH v3 09/11] tracing: Replace strncpy() with __get_task_comm()

2024-06-20 Thread Google
On Fri, 21 Jun 2024 10:29:57 +0800 Yafang Shao wrote: > Using __get_task_comm() to read the task comm ensures that the name is > always NUL-terminated, regardless of the source string. This approach also > facilitates future extensions to the task comm. Good catch! Looks good to me. Acked-by:

[PATCH v3 09/11] tracing: Replace strncpy() with __get_task_comm()

2024-06-20 Thread Yafang Shao
Using __get_task_comm() to read the task comm ensures that the name is always NUL-terminated, regardless of the source string. This approach also facilitates future extensions to the task comm. Signed-off-by: Yafang Shao Cc: Steven Rostedt Cc: Masami Hiramatsu Cc: Mathieu Desnoyers ---