================================================================== BUG: KCSAN: data-race in kick_pool / wq_worker_running read-write to 0xffff888237c2e8a4 of 4 bytes by task 3444 on cpu 0: wq_worker_running+0x98/0x130 kernel/workqueue.c:1400 schedule_timeout+0xb8/0x160 kernel/time/sleep_timeout.c:99 do_wait_for_common kernel/sched/completion.c:95 [inline] __wait_for_common kernel/sched/completion.c:116 [inline] wait_for_common+0xfb/0x1c0 kernel/sched/completion.c:127 usb_start_wait_urb+0xdc/0x190 drivers/usb/core/message.c:64 usb_internal_control_msg drivers/usb/core/message.c:103 [inline] usb_control_msg+0x182/0x240 drivers/usb/core/message.c:154 get_port_status drivers/usb/core/hub.c:604 [inline] hub_ext_port_status+0xbf/0x480 drivers/usb/core/hub.c:621 usb_hub_port_status drivers/usb/core/hub.c:671 [inline] port_event drivers/usb/core/hub.c:5714 [inline] hub_event+0x538/0x2910 drivers/usb/core/hub.c:5903 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3310 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3391 kthread+0x1d1/0x210 kernel/kthread.c:389 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 read to 0xffff888237c2e8a4 of 4 bytes by task 4573 on cpu 1: need_more_worker kernel/workqueue.c:934 [inline] kick_pool+0x4d/0x2c0 kernel/workqueue.c:1240 __queue_work+0x8bb/0xb40 kernel/workqueue.c:2340 queue_work_on+0xd3/0x180 kernel/workqueue.c:2390 wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:176 [inline] wg_packet_create_data drivers/net/wireguard/send.c:320 [inline] wg_packet_send_staged_packets+0x83c/0xac0 drivers/net/wireguard/send.c:388 wg_xmit+0x5ca/0x6b0 drivers/net/wireguard/device.c:218 __netdev_start_xmit include/linux/netdevice.h:5002 [inline] netdev_start_xmit include/linux/netdevice.h:5011 [inline] xmit_one net/core/dev.c:3590 [inline] dev_hard_start_xmit+0x119/0x3f0 net/core/dev.c:3606 __dev_queue_xmit+0x100a/0x2090 net/core/dev.c:4434 dev_queue_xmit include/linux/netdevice.h:3168 [inline] neigh_connected_output+0x247/0x2b0 net/core/neighbour.c:1543 neigh_output include/net/neighbour.h:539 [inline] ip_finish_output2+0x767/0x890 net/ipv4/ip_output.c:236 ip_finish_output+0x11a/0x2a0 net/ipv4/ip_output.c:324 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip_output+0xab/0x170 net/ipv4/ip_output.c:434 dst_output include/net/dst.h:450 [inline] ip_local_out+0xab/0xd0 net/ipv4/ip_output.c:130 iptunnel_xmit+0x351/0x490 net/ipv4/ip_tunnel_core.c:82 ip_tunnel_xmit+0x1662/0x1720 net/ipv4/ip_tunnel.c:858 __gre_xmit net/ipv4/ip_gre.c:484 [inline] ipgre_xmit+0x5e6/0x6c0 net/ipv4/ip_gre.c:688 __netdev_start_xmit include/linux/netdevice.h:5002 [inline] netdev_start_xmit include/linux/netdevice.h:5011 [inline] xmit_one net/core/dev.c:3590 [inline] dev_hard_start_xmit+0x119/0x3f0 net/core/dev.c:3606 __dev_queue_xmit+0x100a/0x2090 net/core/dev.c:4434 dev_queue_xmit include/linux/netdevice.h:3168 [inline] __bpf_tx_skb net/core/filter.c:2135 [inline] __bpf_redirect_no_mac net/core/filter.c:2165 [inline] __bpf_redirect+0x728/0x970 net/core/filter.c:2188 ____bpf_clone_redirect net/core/filter.c:2460 [inline] bpf_clone_redirect+0x18a/0x200 net/core/filter.c:2430 bpf_prog_1eda3e3d4f38ab1d+0x5f/0x64 bpf_dispatcher_nop_func include/linux/bpf.h:1290 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run include/linux/filter.h:708 [inline] bpf_test_run+0x1e5/0x4a0 net/bpf/test_run.c:434 bpf_prog_test_run_skb+0x858/0xc00 net/bpf/test_run.c:1095 bpf_prog_test_run+0x20f/0x3a0 kernel/bpf/syscall.c:4402 __sys_bpf+0x400/0x7a0 kernel/bpf/syscall.c:5808 __do_sys_bpf kernel/bpf/syscall.c:5897 [inline] __se_sys_bpf kernel/bpf/syscall.c:5895 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5895 x64_sys_call+0x2914/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000000 -> 0x00000001 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 4573 Comm: syz.6.419 Not tainted 6.13.0-rc1-syzkaller-00316-gb5f217084ab3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================