Azeem Shaikh 2933d3cd07 tracing: Replace strlcpy with strscpy in trace/events/task.h
strlcpy() reads the entire source buffer first.
This read may exceed the destination size limit.
This is both inefficient and can lead to linear read
overflows if a source string is not NUL-terminated [1].
In an effort to remove strlcpy() completely [2], replace
strlcpy() here with strscpy().

No return values were used, so direct replacement is safe.

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strlcpy
[2] https://github.com/KSPP/linux/issues/89

Link: https://lore.kernel.org/linux-trace-kernel/20230831194212.1529941-1-azeemshaikh38@gmail.com

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Azeem Shaikh <azeemshaikh38@gmail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2023-09-01 21:00:00 -04:00
..
2020-11-30 12:54:01 +00:00
2023-08-02 09:13:09 -06:00
2023-08-21 14:54:48 +02:00
2022-12-07 13:54:09 -08:00
2023-08-10 10:33:03 -05:00
2023-07-04 19:40:16 +01:00
2023-07-04 19:40:16 +01:00
2023-01-13 16:39:18 +01:00
2023-03-24 11:01:29 +01:00
2023-03-28 16:20:08 -07:00
2023-07-17 08:18:17 -06:00
2022-08-03 17:50:58 +02:00
2023-04-24 12:16:14 -07:00
2023-06-17 13:18:06 -04:00
2022-07-30 14:01:30 -04:00
2023-05-31 11:05:34 -04:00
2023-02-20 08:28:49 +00:00
2023-08-29 17:45:22 -04:00
2023-03-16 23:16:18 -04:00
2023-07-17 08:18:17 -06:00