syzbot


KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets (3)

Status: upstream: reported on 2022/02/08 08:32
Reported-by: syzbot+6ba34f16b98fe40daef1@syzkaller.appspotmail.com
First crash: 236d, last: 3h17m
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets 15 749d 788d 0/22 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets (2) 108 452d 619d 0/22 auto-closed as invalid on 2021/05/13 03:09

Sample crash report:
==================================================================
BUG: KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets

write to 0xffff888135854ac8 of 4 bytes by interrupt on cpu 1:
 wg_cpumask_next_online drivers/net/wireguard/queueing.h:133 [inline]
 wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:176 [inline]
 wg_packet_create_data drivers/net/wireguard/send.c:320 [inline]
 wg_packet_send_staged_packets+0x445/0x7e0 drivers/net/wireguard/send.c:387
 wg_packet_send_keepalive+0xe4/0x100 drivers/net/wireguard/send.c:239
 wg_expired_send_persistent_keepalive+0x38/0x50 drivers/net/wireguard/timers.c:141
 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1474
 expire_timers+0x116/0x240 kernel/time/timer.c:1519
 __run_timers+0x350/0x400 kernel/time/timer.c:1790
 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1803
 __do_softirq+0x158/0x2e3 kernel/softirq.c:571
 __irq_exit_rcu kernel/softirq.c:650 [inline]
 irq_exit_rcu+0x41/0x70 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x8d/0xb0 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x1b/0x20
 native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
 acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:554 [inline]
 acpi_idle_enter+0x283/0x310 drivers/acpi/processor_idle.c:691
 cpuidle_enter_state+0x2ee/0x7a0 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x1b2/0x250 kernel/sched/idle.c:303
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:400
 start_secondary+0x78/0x80 arch/x86/kernel/smpboot.c:266
 secondary_startup_64_no_verify+0xcf/0xdb

read to 0xffff888135854ac8 of 4 bytes by interrupt on cpu 0:
 wg_cpumask_next_online drivers/net/wireguard/queueing.h:129 [inline]
 wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:176 [inline]
 wg_packet_create_data drivers/net/wireguard/send.c:320 [inline]
 wg_packet_send_staged_packets+0x40a/0x7e0 drivers/net/wireguard/send.c:387
 wg_packet_send_keepalive+0xe4/0x100 drivers/net/wireguard/send.c:239
 wg_expired_send_persistent_keepalive+0x38/0x50 drivers/net/wireguard/timers.c:141
 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1474
 expire_timers+0x116/0x240 kernel/time/timer.c:1519
 __run_timers+0x350/0x400 kernel/time/timer.c:1790
 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1803
 __do_softirq+0x158/0x2e3 kernel/softirq.c:571
 __irq_exit_rcu kernel/softirq.c:650 [inline]
 irq_exit_rcu+0x41/0x70 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x8d/0xb0 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x1b/0x20
 native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
 acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:554 [inline]
 acpi_idle_enter+0x283/0x310 drivers/acpi/processor_idle.c:691
 cpuidle_enter_state+0x2ee/0x7a0 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x1b2/0x250 kernel/sched/idle.c:303
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:400
 rest_init+0xe8/0xf0 init/main.c:726
 start_kernel+0x0/0x656 init/main.c:882
 start_kernel+0x5d1/0x656 init/main.c:1137
 secondary_startup_64_no_verify+0xcf/0xdb

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.19.0-rc5-syzkaller-00049-gc1084b6c5620-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (263):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/07/04 21:45 upstream c1084b6c5620 bff65f44 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/07/04 03:26 upstream 20855e4cb361 1434eec0 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/07/03 02:22 upstream 69cb6c6556ad 1434eec0 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/07/02 20:56 upstream 089866061428 1434eec0 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/07/02 01:52 upstream b336ad598a3b 1434eec0 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/07/01 15:06 upstream a175eca0f3d7 1434eec0 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/07/01 01:13 upstream 1a0e93df1e10 1434eec0 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/29 21:56 upstream d9b2ba67917c 1434eec0 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/29 16:09 upstream 941e3e791269 1434eec0 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/28 01:12 upstream 941e3e791269 ef82eb2c .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/26 20:05 upstream 82708bb1eb9e a371c43c .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/25 23:33 upstream 0840a7914caa a371c43c .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/25 12:58 upstream 8c23f235a6a8 a371c43c .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/24 21:52 upstream 38bc4ac43168 a371c43c .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/23 22:56 upstream 92f20ff72066 912f5df7 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/23 15:34 upstream de5c208d533a 912f5df7 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/22 17:52 upstream 3abc3ae553c7 912f5df7 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/21 07:54 upstream 78ca55889a54 0fc5c330 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/20 20:51 upstream 78ca55889a54 b9406563 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/20 13:09 upstream a111daf0c53a b9406563 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/20 08:54 upstream a111daf0c53a 8f633d84 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/18 00:58 upstream 462abc9de7a1 8f633d84 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/17 06:55 upstream 47700948a4ab cb58b3b2 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/17 01:53 upstream 48a23ec6ff2b 1719ee24 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/16 10:31 upstream 30306f6194ca 1719ee24 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/15 13:52 upstream 018ab4fabddd 1719ee24 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/15 09:54 upstream 018ab4fabddd 127d1faf .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/14 21:17 upstream 24625f7d91fb 127d1faf .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/13 19:46 upstream b13baccc3850 0f087040 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/13 04:53 upstream 997952851843 0d5abf15 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/12 10:57 upstream 7a68065eb9cd 0d5abf15 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/11 16:10 upstream 0885eacdc81f 0d5abf15 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/10 05:00 upstream 3d9f55c57bc3 0d5abf15 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/09 02:33 upstream 34f4335c16a5 0d5abf15 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/08 14:36 upstream 9886142c7a22 b2706118 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/07 06:18 upstream e71e60cd74df c8857892 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/06 15:23 upstream f2906aa86338 c8857892 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/05 17:28 upstream 952923ddc011 c8857892 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/05 07:19 upstream d0e60d46bc03 c8857892 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/04 08:39 upstream 744983d87842 c8857892 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/03 22:27 upstream 50fd82b3a9a9 eee80d3c .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/01 15:38 upstream 700170bf6b4d b4bc6a3d .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/06/01 14:07 upstream 700170bf6b4d 3666edfe .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/05/31 14:29 upstream 8ab2afa23bd1 af70c3a9 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/02/08 02:40 upstream 2ade8eef993c a7dab638 .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2022/01/11 04:05 upstream 133d9c53c9dc ddb0ab8c .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
ci2-upstream-kcsan-gce 2021/11/10 04:03 upstream cb690f5238d7 55fa030c .config log report info KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets