================================================================== BUG: KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets write to 0xffff8880b25e7a08 of 4 bytes by interrupt on cpu 1: wg_cpumask_next_online drivers/net/wireguard/queueing.h:149 [inline] wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:168 [inline] wg_packet_create_data drivers/net/wireguard/send.c:326 [inline] wg_packet_send_staged_packets+0x5c1/0x990 drivers/net/wireguard/send.c:396 wg_packet_send_keepalive+0x102/0x120 drivers/net/wireguard/send.c:239 wg_expired_send_persistent_keepalive+0x38/0x50 drivers/net/wireguard/timers.c:141 call_timer_fn+0x30/0x2a0 kernel/time/timer.c:1404 expire_timers+0x116/0x290 kernel/time/timer.c:1449 __run_timers+0x443/0x500 kernel/time/timer.c:1773 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1786 __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 invoke_softirq kernel/softirq.c:387 [inline] __irq_exit_rcu+0x115/0x120 kernel/softirq.c:417 sysvec_apic_timer_interrupt+0xd9/0xf0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:596 tomoyo_check_acl+0xfb/0x220 security/tomoyo/domain.c:173 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_perm+0x22f/0x330 security/tomoyo/file.c:838 tomoyo_sb_umount+0x3e/0x60 security/tomoyo/tomoyo.c:409 security_sb_umount+0x42/0x90 security/security.c:921 do_umount fs/namespace.c:1561 [inline] ksys_umount+0x1e2/0xa80 fs/namespace.c:1748 __do_sys_umount fs/namespace.c:1759 [inline] __se_sys_umount fs/namespace.c:1757 [inline] __x64_sys_umount+0x2c/0x40 fs/namespace.c:1757 do_syscall_64+0x71/0x120 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff8880b25e7a08 of 4 bytes by interrupt on cpu 0: wg_cpumask_next_online drivers/net/wireguard/queueing.h:145 [inline] wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:168 [inline] wg_packet_create_data drivers/net/wireguard/send.c:326 [inline] wg_packet_send_staged_packets+0x582/0x990 drivers/net/wireguard/send.c:396 wg_packet_send_keepalive+0x102/0x120 drivers/net/wireguard/send.c:239 wg_expired_send_persistent_keepalive+0x38/0x50 drivers/net/wireguard/timers.c:141 call_timer_fn+0x30/0x2a0 kernel/time/timer.c:1404 expire_timers+0x116/0x290 kernel/time/timer.c:1449 __run_timers+0x443/0x500 kernel/time/timer.c:1773 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1786 __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 invoke_softirq kernel/softirq.c:387 [inline] __irq_exit_rcu+0x115/0x120 kernel/softirq.c:417 sysvec_apic_timer_interrupt+0xd9/0xf0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:596 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 8642 Comm: sshd Not tainted 5.8.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================