================================================================== BUG: KCSAN: data-race in update_rx_stats / wg_packet_handshake_receive_worker read-write to 0xffff88813d478410 of 8 bytes by interrupt on cpu 1: update_rx_stats+0x76/0x90 drivers/net/wireguard/receive.c:23 wg_packet_consume_data_done drivers/net/wireguard/receive.c:358 [inline] wg_packet_rx_poll+0xe7a/0x10c0 drivers/net/wireguard/receive.c:474 __napi_poll+0x65/0x390 net/core/dev.c:6485 napi_poll net/core/dev.c:6552 [inline] net_rx_action+0x37e/0x730 net/core/dev.c:6663 __do_softirq+0xf2/0x2c7 kernel/softirq.c:571 do_softirq+0xb1/0xf0 kernel/softirq.c:472 __local_bh_enable_ip+0x6f/0x80 kernel/softirq.c:396 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline] _raw_spin_unlock_bh+0x32/0x40 kernel/locking/spinlock.c:210 spin_unlock_bh include/linux/spinlock.h:395 [inline] ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline] wg_packet_handshake_receive_worker+0x18c/0x660 drivers/net/wireguard/receive.c:212 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289 worker_thread+0x618/0xa70 kernel/workqueue.c:2436 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 read-write to 0xffff88813d478410 of 8 bytes by task 6 on cpu 0: update_rx_stats drivers/net/wireguard/receive.c:23 [inline] wg_receive_handshake_packet drivers/net/wireguard/receive.c:198 [inline] wg_packet_handshake_receive_worker+0x4b2/0x660 drivers/net/wireguard/receive.c:213 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289 worker_thread+0x618/0xa70 kernel/workqueue.c:2436 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 value changed: 0x0000000000002a00 -> 0x0000000000002a20 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 6 Comm: kworker/0:0 Not tainted 6.2.0-rc4-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: wg-kex-wg2 wg_packet_handshake_receive_worker ==================================================================