================================================================== BUG: KCSAN: data-race in strscpy / strscpy write to 0xffff888159577170 of 8 bytes by task 24162 on cpu 1: strscpy+0x138/0x170 lib/string.c:207 strscpy_pad+0x23/0x80 lib/string_helpers.c:791 __set_task_comm+0x3b/0x110 fs/exec.c:1231 set_task_comm include/linux/sched.h:1963 [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:4272 alloc_workqueue+0x90a/0xac0 kernel/workqueue.c:4347 bond_init+0x89/0x270 drivers/net/bonding/bond_main.c:6248 register_netdevice+0x401/0xe00 net/core/dev.c:9983 bond_newlink+0x3f/0x90 drivers/net/bonding/bond_netlink.c:560 rtnl_newlink_create net/core/rtnetlink.c:3364 [inline] __rtnl_newlink net/core/rtnetlink.c:3581 [inline] rtnl_newlink+0xf46/0x16a0 net/core/rtnetlink.c:3594 rtnetlink_rcv_msg+0x811/0x8d0 net/core/rtnetlink.c:6091 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2540 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:6109 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x58a/0x660 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x666/0x760 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:2482 ___sys_sendmsg net/socket.c:2536 [inline] __sys_sendmsg+0x19a/0x230 net/socket.c:2565 __do_sys_sendmsg net/socket.c:2574 [inline] __se_sys_sendmsg net/socket.c:2572 [inline] __x64_sys_sendmsg+0x42/0x50 net/socket.c:2572 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 0xffff888159577174 of 1 bytes by task 24187 on cpu 0: strscpy+0xdf/0x170 lib/string.c:219 ____bpf_get_current_comm kernel/bpf/helpers.c:258 [inline] bpf_get_current_comm+0x42/0x70 kernel/bpf/helpers.c:250 ___bpf_prog_run+0x278/0x2da0 kernel/bpf/core.c:1818 __bpf_prog_run32+0x70/0xa0 kernel/bpf/core.c:2041 bpf_dispatcher_nop_func include/linux/bpf.h:963 [inline] __bpf_prog_run include/linux/filter.h:600 [inline] bpf_prog_run include/linux/filter.h:607 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2249 [inline] bpf_trace_run4+0x98/0x150 kernel/trace/bpf_trace.c:2290 __traceiter_sched_switch+0x45/0x60 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x6bd/0x6e0 kernel/sched/core.c:6492 schedule+0x51/0x80 kernel/sched/core.c:6571 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6630 kthread+0x129/0x1e0 kernel/kthread.c:369 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 value changed: 0x65 -> 0x37 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 24187 Comm: bond738 Not tainted 6.0.0-syzkaller-02734-g0326074ff465-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 ==================================================================