================================================================== BUG: KCSAN: data-race in strncpy / strscpy write to 0xffff888109648738 of 8 bytes by task 7352 on cpu 0: strscpy+0x137/0x170 lib/string.c:162 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_ahash+0x45/0x50 crypto/ahash.c:520 crypto_ccm_create_common+0xd6/0x4a0 crypto/ccm.c:466 crypto_ccm_create+0x114/0x140 crypto/ccm.c:548 cryptomgr_probe+0x51/0x120 crypto/algboss.c:61 kthread+0x1a6/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 read to 0xffff888109648738 of 1 bytes by task 7356 on cpu 1: strncpy+0xf6/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+0x81/0x270 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+0x7e7/0x8e0 kernel/sched/core.c:6622 schedule+0x51/0x80 kernel/sched/core.c:6701 schedule_preempt_disabled+0x10/0x20 kernel/sched/core.c:6760 kthread+0x11c/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: 1 PID: 7356 Comm: cryptomgr_probe Not tainted 6.3.0-rc7-syzkaller-00089-gcb0856346a60 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 ==================================================================