================================================================== BUG: KCSAN: data-race in __queue_work / wq_worker_running read-write to 0xffff888237c2d164 of 4 bytes by task 9 on cpu 0: wq_worker_running+0x98/0x120 kernel/workqueue.c:1265 schedule_timeout+0xcc/0x230 kernel/time/timer.c:2183 schedule_timeout_uninterruptible kernel/time/timer.c:2217 [inline] msleep+0x52/0x70 kernel/time/timer.c:2338 nsim_fib4_rt_add drivers/net/netdevsim/fib.c:369 [inline] nsim_fib4_rt_insert drivers/net/netdevsim/fib.c:432 [inline] nsim_fib4_event drivers/net/netdevsim/fib.c:464 [inline] nsim_fib_event drivers/net/netdevsim/fib.c:884 [inline] nsim_fib_event_work+0x1574/0x2250 drivers/net/netdevsim/fib.c:1492 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x5b8/0xa40 kernel/workqueue.c:2706 worker_thread+0x525/0x730 kernel/workqueue.c:2787 kthread+0x1d7/0x210 kernel/kthread.c:388 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 read to 0xffff888237c2d164 of 4 bytes by task 3174 on cpu 1: need_more_worker kernel/workqueue.c:835 [inline] kick_pool kernel/workqueue.c:1118 [inline] __queue_work+0x7ce/0xbb0 kernel/workqueue.c:1803 queue_work_on+0x95/0xf0 kernel/workqueue.c:1837 wg_queue_enqueue_per_peer_tx+0x127/0x270 drivers/net/wireguard/queueing.h:188 wg_packet_encrypt_worker+0x885/0xa30 drivers/net/wireguard/send.c:305 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x5b8/0xa40 kernel/workqueue.c:2706 worker_thread+0x525/0x730 kernel/workqueue.c:2787 kthread+0x1d7/0x210 kernel/kthread.c:388 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 value changed: 0x00000000 -> 0x00000001 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3174 Comm: kworker/1:6 Not tainted 6.8.0-rc4-syzkaller-00005-gc664e16bb1ba #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Workqueue: wg-crypt-wg1 wg_packet_encrypt_worker ==================================================================