BUG: KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll write to 0xffff8881220ce888 of 8 bytes by interrupt on cpu 0: counter_validate drivers/net/wireguard/receive.c:327 [inline] wg_packet_rx_poll+0x4a6/0x1410 drivers/net/wireguard/receive.c:475 napi_poll+0x154/0x480 net/core/dev.c:6682 net_rx_action+0x1ba/0x530 net/core/dev.c:6750 __do_softirq+0x198/0x360 kernel/softirq.c:292 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] do_softirq_own_stack+0x5d/0x80 arch/x86/kernel/irq_64.c:77 do_softirq+0x86/0xb0 kernel/softirq.c:337 __local_bh_enable_ip+0x63/0x70 kernel/softirq.c:189 __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:398 [inline] ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline] wg_packet_decrypt_worker+0x6e7/0x720 drivers/net/wireguard/receive.c:513 process_one_work+0x3cb/0x990 kernel/workqueue.c:2269 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415 kthread+0x210/0x220 kernel/kthread.c:291 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293 read to 0xffff8881220ce888 of 8 bytes by task 5013 on cpu 1: decrypt_packet drivers/net/wireguard/receive.c:258 [inline] wg_packet_decrypt_worker+0x223/0x720 drivers/net/wireguard/receive.c:515 process_one_work+0x3cb/0x990 kernel/workqueue.c:2269 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415 kthread+0x210/0x220 kernel/kthread.c:291 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 5013 Comm: kworker/1:2 Not tainted 5.8.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: wg-crypt-wg0 wg_packet_decrypt_worker ==================================================================