================================================================== BUG: KCSAN: data-race in strncpy / strscpy write to 0xffff88813ec5ac70 of 8 bytes by task 21027 on cpu 1: strscpy+0xa9/0x170 lib/string.c:165 strscpy_pad+0x27/0x80 lib/string_helpers.c:835 __set_task_comm+0x46/0x140 fs/exec.c:1232 set_task_comm include/linux/sched.h:1984 [inline] __kthread_create_on_node+0x2b2/0x320 kernel/kthread.c:474 kthread_create_on_node+0x8a/0xb0 kernel/kthread.c:512 cryptomgr_schedule_probe crypto/algboss.c:158 [inline] cryptomgr_notify+0x4a4/0x590 crypto/algboss.c:226 notifier_call_chain kernel/notifier.c:87 [inline] blocking_notifier_call_chain+0x70/0xe0 kernel/notifier.c:382 crypto_probing_notify crypto/api.c:305 [inline] crypto_alg_mod_lookup+0x282/0x4e0 crypto/api.c:335 crypto_find_alg+0x62/0x70 crypto/api.c:544 crypto_grab_spawn+0x5e/0x1c0 crypto/algapi.c:724 crypto_grab_skcipher+0x45/0x50 crypto/skcipher.c:735 crypto_gcm_create_common+0x173/0x460 crypto/gcm.c:606 crypto_gcm_create+0xba/0xf0 crypto/gcm.c:669 cryptomgr_probe+0x51/0x120 crypto/algboss.c:61 kthread+0x1ac/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 read to 0xffff88813ec5ac76 of 1 bytes by task 21035 on cpu 0: strncpy+0xd4/0x150 lib/string.c:96 set_cmdline kernel/trace/trace.c:2285 [inline] trace_save_cmdline+0x19d/0x1f0 kernel/trace/trace.c:2497 tracing_record_taskinfo_sched_switch+0x8d/0x280 kernel/trace/trace.c:2637 probe_sched_switch+0x80/0x90 kernel/trace/trace_sched_switch.c:35 __traceiter_sched_switch+0x3a/0x50 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x811/0x910 kernel/sched/core.c:6619 schedule+0x54/0x90 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 kthread+0x12c/0x1e0 kernel/kthread.c:369 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 value changed: 0x64 -> 0x6d Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 21035 Comm: cryptomgr_probe Not tainted 6.2.0-syzkaller-12485-gf3a2439f20d9-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 ==================================================================