================================================================== BUG: KCSAN: data-race in strncpy / strscpy write to 0xffff888125acd738 of 8 bytes by task 9873 on cpu 1: strscpy+0x138/0x170 lib/string.c:162 strscpy_pad+0x23/0x80 lib/string_helpers.c:835 __set_task_comm+0x3b/0x110 fs/exec.c:1231 set_task_comm include/linux/sched.h:1978 [inline] __kthread_create_on_node+0x2aa/0x320 kernel/kthread.c:474 kthread_create_on_node+0x86/0xb0 kernel/kthread.c:512 cryptomgr_schedule_probe crypto/algboss.c:158 [inline] cryptomgr_notify+0x4a1/0x590 crypto/algboss.c:226 notifier_call_chain kernel/notifier.c:87 [inline] blocking_notifier_call_chain+0x73/0xf0 kernel/notifier.c:382 crypto_probing_notify crypto/api.c:305 [inline] crypto_alg_mod_lookup+0x57a/0xaf0 crypto/api.c:335 crypto_find_alg+0x5e/0x70 crypto/api.c:544 crypto_type_has_alg+0x28/0x60 crypto/algapi.c:1030 crypto_has_ahash+0x25/0x30 crypto/ahash.c:564 xfrm_probe_algs+0x56/0x2c0 net/xfrm/xfrm_algo.c:824 pfkey_register+0xd0/0x410 net/key/af_key.c:1701 pfkey_process net/key/af_key.c:2844 [inline] pfkey_sendmsg+0x6ba/0x890 net/key/af_key.c:3695 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg net/socket.c:734 [inline] ____sys_sendmsg+0x38f/0x500 net/socket.c:2476 ___sys_sendmsg net/socket.c:2530 [inline] __sys_sendmsg+0x19a/0x230 net/socket.c:2559 __do_sys_sendmsg net/socket.c:2568 [inline] __se_sys_sendmsg net/socket.c:2566 [inline] __x64_sys_sendmsg+0x42/0x50 net/socket.c:2566 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888125acd738 of 1 bytes by task 9900 on cpu 0: strncpy+0xe9/0x160 lib/string.c:96 set_cmdline kernel/trace/trace.c:2240 [inline] trace_save_cmdline kernel/trace/trace.c:2452 [inline] tracing_record_taskinfo_sched_switch+0x20f/0x610 kernel/trace/trace.c:2592 probe_sched_switch+0x7c/0x90 kernel/trace/trace_sched_switch.c:35 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x6d4/0x6f0 kernel/sched/core.c:6552 schedule+0x51/0x80 kernel/sched/core.c:6631 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6690 kthread+0x129/0x1e0 kernel/kthread.c:369 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 value changed: 0x00 -> 0x72 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 9900 Comm: cryptomgr_probe Tainted: G W 6.2.0-rc2-syzkaller-00024-g512dee0c00ad-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 ==================================================================