================================================================== BUG: KCSAN: data-race in __queue_work / wq_worker_running read-write to 0xffff888237c2d164 of 4 bytes by task 3160 on cpu 0: wq_worker_running+0x98/0x120 kernel/workqueue.c:1265 schedule_timeout+0x55/0x230 kernel/time/timer.c:2159 do_wait_for_common kernel/sched/completion.c:95 [inline] __wait_for_common kernel/sched/completion.c:116 [inline] wait_for_common+0xfa/0x1b0 kernel/sched/completion.c:127 rcu_barrier+0x426/0x530 kernel/rcu/tree.c:4132 fqdir_free_fn+0x1e/0xe0 net/ipv4/inet_fragment.c:164 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:243 read to 0xffff888237c2d164 of 4 bytes by interrupt 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_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+0x850/0xad0 drivers/net/wireguard/send.c:388 wg_packet_send_keepalive+0xe2/0x100 drivers/net/wireguard/send.c:239 wg_expired_send_persistent_keepalive+0x3c/0x50 drivers/net/wireguard/timers.c:141 call_timer_fn+0x37/0x2f0 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x448/0x630 kernel/time/timer.c:2038 run_timer_softirq+0x1d/0x40 kernel/time/timer.c:2051 __do_softirq+0xc4/0x27b kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0x3b/0x90 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x6f/0x80 arch/x86/kernel/apic/apic.c:1076 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 kcsan_setup_watchpoint+0x3fe/0x410 kernel/kcsan/core.c:705 follow_pud_mask mm/gup.c:754 [inline] follow_p4d_mask mm/gup.c:784 [inline] follow_page_mask+0x137/0xd60 mm/gup.c:834 __get_user_pages+0x3a3/0xe40 mm/gup.c:1239 __get_user_pages_locked mm/gup.c:1509 [inline] get_dump_page+0xb7/0x1b0 mm/gup.c:2031 dump_user_range+0xc6/0x550 fs/coredump.c:949 elf_core_dump+0x1a8e/0x1bb0 fs/binfmt_elf.c:2077 do_coredump+0x102a/0x1890 fs/coredump.c:764 get_signal+0xdb5/0x10a0 kernel/signal.c:2879 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:105 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] irqentry_exit_to_user_mode+0x8f/0x120 kernel/entry/common.c:225 irqentry_exit+0x12/0x40 kernel/entry/common.c:328 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 value changed: 0x00000000 -> 0x00000001 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 25920 Comm: syz-executor.4 Not tainted 6.8.0-rc7-syzkaller-00229-g10d48d70e82d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 ==================================================================