================================================================== BUG: KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll write to 0xffff88810a0d4088 of 8 bytes by interrupt on cpu 0: counter_validate drivers/net/wireguard/receive.c:327 [inline] wg_packet_rx_poll+0x406/0x11b0 drivers/net/wireguard/receive.c:467 __napi_poll+0x65/0x3e0 net/core/dev.c:6912 napi_poll net/core/dev.c:6979 [inline] net_rx_action+0x29f/0x680 net/core/dev.c:7065 __do_softirq+0x13c/0x2c3 kernel/softirq.c:345 do_softirq+0x73/0xa0 kernel/softirq.c:248 __local_bh_enable_ip+0x5a/0x60 kernel/softirq.c:198 __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+0x732/0x770 drivers/net/wireguard/receive.c:505 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:294 read to 0xffff88810a0d4088 of 8 bytes by task 19 on cpu 1: decrypt_packet drivers/net/wireguard/receive.c:258 [inline] wg_packet_decrypt_worker+0x219/0x770 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:294 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 19 Comm: kworker/1:0 Tainted: G W 5.12.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: wg-crypt-wg1 wg_packet_decrypt_worker ================================================================== usb 1-1: USB disconnect, device number 17 yurex 1-1:0.0: USB YUREX #0 now disconnected usb 1-1: new high-speed USB device number 18 using dummy_hcd usb 1-1: Using ep0 maxpacket: 8 usb 1-1: config 0 interface 0 altsetting 0 endpoint 0x85 has an invalid bInterval 0, changing to 7 usb 1-1: New USB device found, idVendor=0c45, idProduct=1010, bcdDevice=6d.5d usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 1-1: config 0 descriptor?? yurex 1-1:0.0: USB YUREX device now attached to Yurex #0 usb 1-1: new high-speed USB device number 19 using dummy_hcd usb 1-1: Using ep0 maxpacket: 8 usb 1-1: config 0 interface 0 altsetting 0 endpoint 0x85 has an invalid bInterval 0, changing to 7 usb 1-1: New USB device found, idVendor=0c45, idProduct=1010, bcdDevice=6d.5d usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 1-1: config 0 descriptor?? yurex 1-1:0.0: USB YUREX device now attached to Yurex #0