]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tracing: Replace strncpy() with strscpy() when copying comm
authorJinjie Ruan <ruanjinjie@huawei.com>
Thu, 31 Oct 2024 12:01:39 +0000 (20:01 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 1 Nov 2024 18:37:31 +0000 (14:37 -0400)
commit242b32d8073ed16868ff0f9381732e9782dea63b
treec586705e882be3b8e6e9ceedf9b99bcbd5b4415c
parentee3685a98ea920369696d31e54d1fe6a939ed65f
tracing: Replace strncpy() with strscpy() when copying comm

Replace the depreciated[1] strncpy() calls with strscpy()
when copying comm.

Link: https://github.com/KSPP/linux/issues/90
Cc: <mhiramat@kernel.org>
Cc: <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20241031120139.1343025-1-ruanjinjie@huawei.com
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace_events_hist.c
kernel/trace/trace_sched_switch.c