================================================================== BUG: KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll write to 0xffff88802a0f7088 of 8 bytes by interrupt on cpu 1: counter_validate drivers/net/wireguard/receive.c:327 [inline] wg_packet_rx_poll+0x406/0x11b0 drivers/net/wireguard/receive.c:467 __napi_poll+0x77/0x510 net/core/dev.c:6892 napi_poll net/core/dev.c:6959 [inline] net_rx_action+0x29f/0x680 net/core/dev.c:7036 __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+0x18c/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 0xffff88802a0f7088 of 8 bytes by task 9105 on cpu 0: 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: 0 PID: 9105 Comm: kworker/0:3 Not tainted 5.12.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: wg-crypt-wg2 wg_packet_decrypt_worker ================================================================== usb 5-1: new high-speed USB device number 67 using dummy_hcd usb 5-1: Using ep0 maxpacket: 8 usb 5-1: config 0 interface 0 altsetting 0 endpoint 0x82 has an invalid bInterval 0, changing to 7 usb 5-1: New USB device found, idVendor=07c0, idProduct=1512, bcdDevice=30.22 usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 5-1: config 0 descriptor?? iowarrior 5-1:0.0: IOWarrior product=0x1512, serial= interface=0 now attached to iowarrior0 usb 5-1: USB disconnect, device number 67 iowarrior 5-1:0.0: I/O-Warror #0 now disconnected usb 5-1: new high-speed USB device number 68 using dummy_hcd usb 5-1: Using ep0 maxpacket: 8 usb 5-1: config 0 interface 0 altsetting 0 endpoint 0x82 has an invalid bInterval 242, changing to 11 usb 5-1: config 0 interface 0 altsetting 0 endpoint 0x82 has invalid maxpacket 1609, setting to 1024 usb 5-1: New USB device found, idVendor=07c0, idProduct=1512, bcdDevice=30.22 usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 5-1: config 0 descriptor?? iowarrior 5-1:0.0: IOWarrior product=0x1512, serial= interface=0 now attached to iowarrior0