================================================================== BUG: KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets write to 0xffff8880b9e0ba08 of 4 bytes by interrupt on cpu 0: 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 0xffff8880b9e0ba08 of 4 bytes by interrupt on cpu 1: 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 arch_local_irq_restore arch/x86/include/asm/paravirt.h:759 [inline] kcsan_setup_watchpoint+0x25a/0x440 kernel/kcsan/core.c:542 tcp_set_state+0x4f/0x3d0 net/ipv4/tcp.c:2237 tcp_close_state net/ipv4/tcp.c:2296 [inline] tcp_shutdown net/ipv4/tcp.c:2320 [inline] tcp_shutdown+0x8c/0xb0 net/ipv4/tcp.c:2306 inet_shutdown+0x128/0x240 net/ipv4/af_inet.c:879 kernel_sock_shutdown+0x38/0x50 net/socket.c:3849 rds_tcp_accept_one+0x3bb/0x710 net/rds/tcp_listen.c:245 rds_tcp_accept_worker+0x2b/0x50 net/rds/tcp.c:525 process_one_work+0x424/0x930 kernel/workqueue.c:2268 worker_thread+0x9a/0x7e0 kernel/workqueue.c:2414 kthread+0x203/0x230 kernel/kthread.c:268 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 7 Comm: kworker/u4:0 Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: krdsd rds_tcp_accept_worker ==================================================================