================================================================== BUG: KCSAN: data-race in strncpy / strscpy write to 0xffff8881589fd2d8 of 8 bytes by task 22061 on cpu 1: strscpy+0x12f/0x160 lib/string.c:207 strscpy_pad+0x23/0x80 lib/string_helpers.c:788 __set_task_comm+0x3b/0x110 fs/exec.c:1226 set_task_comm include/linux/sched.h:1936 [inline] __kthread_create_on_node+0x2aa/0x320 kernel/kthread.c:475 kthread_create_on_node+0x86/0xb0 kernel/kthread.c:513 init_rescuer+0x10e/0x190 kernel/workqueue.c:4283 alloc_workqueue+0x853/0xad0 kernel/workqueue.c:4358 bond_init+0x8b/0x320 drivers/net/bonding/bond_main.c:5957 register_netdevice+0x404/0x10b0 net/core/dev.c:9597 bond_newlink+0x3f/0x90 drivers/net/bonding/bond_netlink.c:479 __rtnl_newlink net/core/rtnetlink.c:3479 [inline] rtnl_newlink+0xdae/0x13b0 net/core/rtnetlink.c:3527 rtnetlink_rcv_msg+0x745/0x7e0 net/core/rtnetlink.c:5592 netlink_rcv_skb+0x14e/0x250 net/netlink/af_netlink.c:2494 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5610 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x602/0x6d0 net/netlink/af_netlink.c:1343 netlink_sendmsg+0x728/0x850 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg net/socket.c:725 [inline] ____sys_sendmsg+0x39a/0x510 net/socket.c:2413 ___sys_sendmsg net/socket.c:2467 [inline] __sys_sendmsg+0x195/0x230 net/socket.c:2496 __do_sys_sendmsg net/socket.c:2505 [inline] __se_sys_sendmsg net/socket.c:2503 [inline] __x64_sys_sendmsg+0x42/0x50 net/socket.c:2503 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff8881589fd2d8 of 1 bytes by task 22066 on cpu 0: strncpy+0x57/0x150 lib/string.c:114 ____bpf_get_current_comm kernel/bpf/helpers.c:226 [inline] bpf_get_current_comm+0x42/0x80 kernel/bpf/helpers.c:219 ___bpf_prog_run+0xc87/0x30c0 kernel/bpf/core.c:1558 __bpf_prog_run32+0x70/0xa0 kernel/bpf/core.c:1785 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline] __bpf_prog_run include/linux/filter.h:626 [inline] bpf_prog_run include/linux/filter.h:633 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1988 [inline] bpf_trace_run3+0x63/0xf0 kernel/trace/bpf_trace.c:2026 __traceiter_sched_switch+0x31/0x50 include/trace/events/sched.h:220 trace_sched_switch include/trace/events/sched.h:220 [inline] __schedule+0x66b/0x690 kernel/sched/core.c:6293 schedule+0x81/0xb0 kernel/sched/core.c:6369 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6428 kthread+0x12e/0x1e0 kernel/kthread.c:370 ret_from_fork+0x1f/0x30 value changed: 0x6b -> 0x62 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 22066 Comm: bond490 Tainted: G W 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================