================================================================== BUG: KCSAN: data-race in strscpy / strscpy write to 0xffff8881398f75d8 of 8 bytes by task 10306 on cpu 0: strscpy+0xa8/0x170 lib/string.c:210 strscpy_pad+0x23/0x80 lib/string_helpers.c:791 __set_task_comm+0x3b/0x110 fs/exec.c:1236 set_task_comm include/linux/sched.h:1951 [inline] __kthread_create_on_node+0x2aa/0x320 kernel/kthread.c:474 kthread_create_on_node+0x86/0xb0 kernel/kthread.c:512 init_rescuer+0x10e/0x190 kernel/workqueue.c:4265 alloc_workqueue+0x839/0xad0 kernel/workqueue.c:4340 wg_newlink+0x1f1/0x4c0 drivers/net/wireguard/device.c:346 rtnl_newlink_create net/core/rtnetlink.c:3363 [inline] __rtnl_newlink net/core/rtnetlink.c:3580 [inline] rtnl_newlink+0xf46/0x16a0 net/core/rtnetlink.c:3593 rtnetlink_rcv_msg+0x811/0x8c0 net/core/rtnetlink.c:6089 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2501 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:6107 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x58a/0x660 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x661/0x750 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg net/socket.c:734 [inline] ____sys_sendmsg+0x38f/0x500 net/socket.c:2492 ___sys_sendmsg net/socket.c:2546 [inline] __sys_sendmsg+0x197/0x230 net/socket.c:2575 __do_sys_sendmsg net/socket.c:2584 [inline] __se_sys_sendmsg net/socket.c:2582 [inline] __x64_sys_sendmsg+0x42/0x50 net/socket.c:2582 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+0x46/0xb0 read to 0xffff8881398f75da of 1 bytes by task 10307 on cpu 1: strscpy+0xdf/0x170 lib/string.c:219 ____bpf_get_current_comm kernel/bpf/helpers.c:245 [inline] bpf_get_current_comm+0x42/0x70 kernel/bpf/helpers.c:237 ___bpf_prog_run+0x278/0x2da0 kernel/bpf/core.c:1850 __bpf_prog_run32+0x70/0xa0 kernel/bpf/core.c:2073 bpf_dispatcher_nop_func include/linux/bpf.h:869 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2046 [inline] bpf_trace_run4+0x6d/0x100 kernel/trace/bpf_trace.c:2085 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x698/0x6b0 kernel/sched/core.c:6425 schedule+0x71/0xa0 kernel/sched/core.c:6500 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6559 kthread+0x129/0x1e0 kernel/kthread.c:369 ret_from_fork+0x1f/0x30 value changed: 0x68 -> 0x2d Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 10307 Comm: wg-crypt-wiregu Not tainted 5.19.0-rc2-syzkaller-00205-g462abc9de7a1-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================