================================================================== BUG: KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll write to 0xffff8881314ae888 of 8 bytes by interrupt on cpu 0: counter_validate drivers/net/wireguard/receive.c:327 [inline] wg_packet_rx_poll+0x4ab/0x12f0 drivers/net/wireguard/receive.c:469 napi_poll+0x181/0x630 net/core/dev.c:6806 net_rx_action+0x17a/0x490 net/core/dev.c:6889 __do_softirq+0x13c/0x2c3 kernel/softirq.c:343 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+0x32/0x40 arch/x86/kernel/irq_64.c:77 do_softirq kernel/softirq.c:246 [inline] __local_bh_enable_ip+0xba/0xd0 kernel/softirq.c:196 __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+0x6f2/0x730 drivers/net/wireguard/receive.c:507 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275 worker_thread+0x616/0xa70 kernel/workqueue.c:2421 kthread+0x20b/0x230 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 read to 0xffff8881314ae888 of 8 bytes by task 9312 on cpu 1: decrypt_packet drivers/net/wireguard/receive.c:258 [inline] wg_packet_decrypt_worker+0x219/0x730 drivers/net/wireguard/receive.c:509 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275 worker_thread+0x616/0xa70 kernel/workqueue.c:2421 kthread+0x20b/0x230 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 9312 Comm: kworker/1:4 Not tainted 5.11.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: wg-crypt-wg2 wg_packet_decrypt_worker ==================================================================