================================================================== BUG: KCSAN: data-race in __mod_timer / __mod_timer write to 0xffff88808e77fdc8 of 8 bytes by interrupt on cpu 1: __mod_timer+0x6c0/0xc90 kernel/time/timer.c:1053 mod_timer+0x1b/0x20 kernel/time/timer.c:1109 mod_peer_timer drivers/net/wireguard/timers.c:37 [inline] wg_timers_any_authenticated_packet_traversal+0xc4/0xf0 drivers/net/wireguard/timers.c:215 wg_packet_consume_data_done drivers/net/wireguard/receive.c:360 [inline] wg_packet_rx_poll+0x8d5/0x1300 drivers/net/wireguard/receive.c:482 napi_poll+0x178/0x4f0 net/core/dev.c:6688 net_rx_action+0x1ba/0x530 net/core/dev.c:6758 __do_softirq+0x198/0x360 kernel/softirq.c:298 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x5b/0x70 arch/x86/kernel/irq_64.c:77 do_softirq+0x86/0xb0 kernel/softirq.c:343 __local_bh_enable_ip+0x63/0x70 kernel/softirq.c:195 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline] _raw_spin_unlock_bh+0x33/0x40 kernel/locking/spinlock.c:207 spin_unlock_bh include/linux/spinlock.h:399 [inline] ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline] wg_packet_decrypt_worker+0x6e7/0x720 drivers/net/wireguard/receive.c:507 process_one_work+0x3e1/0x9a0 kernel/workqueue.c:2269 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415 kthread+0x20d/0x230 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 read to 0xffff88808e77fdc8 of 8 bytes by task 5 on cpu 0: __mod_timer+0x74/0xc90 kernel/time/timer.c:981 mod_timer+0x1b/0x20 kernel/time/timer.c:1109 mod_peer_timer drivers/net/wireguard/timers.c:37 [inline] wg_timers_any_authenticated_packet_traversal+0xc4/0xf0 drivers/net/wireguard/timers.c:215 wg_packet_create_data_done drivers/net/wireguard/send.c:248 [inline] wg_packet_tx_worker+0x1a0/0x4c0 drivers/net/wireguard/send.c:280 process_one_work+0x3e1/0x9a0 kernel/workqueue.c:2269 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415 kthread+0x20d/0x230 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.9.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: wg-crypt-wg2 wg_packet_tx_worker ==================================================================