================================================================== BUG: KCSAN: data-race in strncpy / strscpy write to 0xffff8881369cd738 of 8 bytes by task 32730 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 init_rescuer+0x10a/0x190 kernel/workqueue.c:4387 alloc_workqueue+0x8d5/0xa80 kernel/workqueue.c:4462 nci_register_device+0x229/0x570 net/nfc/nci/core.c:1233 virtual_ncidev_open+0xdc/0x140 drivers/nfc/virtual_ncidev.c:148 misc_open+0x1fd/0x230 drivers/char/misc.c:165 chrdev_open+0x349/0x3c0 fs/char_dev.c:414 do_dentry_open+0x5b3/0x930 fs/open.c:920 vfs_open+0x47/0x50 fs/open.c:1051 do_open fs/namei.c:3560 [inline] path_openat+0x17e6/0x1d00 fs/namei.c:3715 do_filp_open+0xf6/0x200 fs/namei.c:3742 do_sys_openat2+0xb5/0x2a0 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_openat fs/open.c:1380 [inline] __se_sys_openat fs/open.c:1375 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1375 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff8881369cd738 of 1 bytes by task 32732 on cpu 1: strncpy+0xb4/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 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 -> 0x5f Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 32732 Comm: nfc2_nci_rx_wq Not tainted 6.3.0-rc6-syzkaller-00168-g95abc817ab3a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 ==================================================================