Re: [PATCH v6 7/9] tracing: Replace strncpy() with strscpy()

2024-08-13 Thread Yafang Shao
On Wed, Aug 14, 2024 at 6:31 AM Justin Stitt wrote: > > On Tue, Aug 13, 2024 at 3:19 PM Justin Stitt wrote: > > > > Hi, > > > > On Mon, Aug 12, 2024 at 10:29:31AM GMT, Yafang Shao wrote: > > > Using strscpy() to read the task comm ensures that the name is > > > always NUL-terminated, regardless o

Re: [PATCH v6 7/9] tracing: Replace strncpy() with strscpy()

2024-08-13 Thread Justin Stitt
On Tue, Aug 13, 2024 at 3:19 PM Justin Stitt wrote: > > Hi, > > On Mon, Aug 12, 2024 at 10:29:31AM GMT, Yafang Shao wrote: > > Using strscpy() to read the task comm ensures that the name is > > always NUL-terminated, regardless of the source string. This approach also > > facilitates future extens

Re: [PATCH v6 7/9] tracing: Replace strncpy() with strscpy()

2024-08-13 Thread Justin Stitt
Hi, On Mon, Aug 12, 2024 at 10:29:31AM GMT, Yafang Shao wrote: > Using strscpy() 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. Thanks for sending patches replacing str{n

[PATCH v6 7/9] tracing: Replace strncpy() with strscpy()

2024-08-11 Thread Yafang Shao
Using strscpy() 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 Acked-by: Masami Hiramatsu (Google) Cc: Steven Rostedt Cc: Mathieu Desnoyers ---