================================================================== BUG: KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets write to 0xffff8880b46c2a08 of 4 bytes by interrupt on cpu 1: wg_cpumask_next_online drivers/net/wireguard/queueing.h:141 [inline] wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:160 [inline] wg_packet_create_data drivers/net/wireguard/send.c:321 [inline] wg_packet_send_staged_packets+0x8dd/0xd90 drivers/net/wireguard/send.c:393 wg_packet_send_keepalive+0x3f/0x140 drivers/net/wireguard/send.c:237 wg_expired_send_persistent_keepalive+0x43/0x50 drivers/net/wireguard/timers.c:141 call_timer_fn+0x58/0x2e0 kernel/time/timer.c:1405 expire_timers kernel/time/timer.c:1450 [inline] __run_timers kernel/time/timer.c:1774 [inline] __run_timers kernel/time/timer.c:1741 [inline] run_timer_softirq+0xb14/0xbd0 kernel/time/timer.c:1787 __do_softirq+0x118/0x34a kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xb5/0xd0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0xe2/0x270 arch/x86/kernel/apic/apic.c:1140 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 read to 0xffff8880b46c2a08 of 4 bytes by interrupt on cpu 0: wg_cpumask_next_online drivers/net/wireguard/queueing.h:137 [inline] wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:160 [inline] wg_packet_create_data drivers/net/wireguard/send.c:321 [inline] wg_packet_send_staged_packets+0x88c/0xd90 drivers/net/wireguard/send.c:393 wg_packet_send_keepalive+0x3f/0x140 drivers/net/wireguard/send.c:237 wg_expired_send_persistent_keepalive+0x43/0x50 drivers/net/wireguard/timers.c:141 call_timer_fn+0x58/0x2e0 kernel/time/timer.c:1405 expire_timers kernel/time/timer.c:1450 [inline] __run_timers kernel/time/timer.c:1774 [inline] __run_timers kernel/time/timer.c:1741 [inline] run_timer_softirq+0xb14/0xbd0 kernel/time/timer.c:1787 __do_softirq+0x118/0x34a kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xb5/0xd0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0xe2/0x270 arch/x86/kernel/apic/apic.c:1140 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 __write_once_size include/linux/compiler.h:250 [inline] __sanitizer_cov_trace_pc+0x47/0x50 kernel/kcov.c:195 tomoyo_domain_quota_is_ok+0x249/0x2b0 security/tomoyo/util.c:1070 tomoyo_supervisor+0x1d9/0xc90 security/tomoyo/common.c:2089 tomoyo_audit_path_number_log security/tomoyo/file.c:235 [inline] tomoyo_path_number_perm+0x2d7/0x360 security/tomoyo/file.c:734 tomoyo_path_mkdir+0x6b/0xa0 security/tomoyo/tomoyo.c:173 security_path_mkdir+0xb0/0xe0 security/security.c:1080 do_mkdirat+0xf3/0x200 fs/namei.c:3646 __do_sys_mkdir fs/namei.c:3664 [inline] __se_sys_mkdir fs/namei.c:3662 [inline] __x64_sys_mkdir+0x3d/0x50 fs/namei.c:3662 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 9469 Comm: syz-executor.5 Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================