syzbot


KCSAN: data-race in wg_packet_purge_staged_packets / wg_packet_purge_staged_packets

Status: auto-closed as invalid on 2022/09/04 05:13
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 125d, last: 125d

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

read-write to 0xffff88811b478168 of 8 bytes by interrupt on cpu 1:
 wg_packet_purge_staged_packets+0x5e/0x140 drivers/net/wireguard/send.c:336
 wg_expired_retransmit_handshake+0x4f/0x150 drivers/net/wireguard/timers.c:55
 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+0x16/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-write to 0xffff88811b478168 of 8 bytes by interrupt on cpu 0:
 wg_packet_purge_staged_packets+0x5e/0x140 drivers/net/wireguard/send.c:336
 wg_expired_retransmit_handshake+0x4f/0x150 drivers/net/wireguard/timers.c:55
 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+0x16/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: 0x0000000000000400 -> 0x0000000000000401

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.19.0-rc8-syzkaller-00152-g620725263f42-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/07/31 05:06 upstream 620725263f42 fef302b1 .config log report info KCSAN: data-race in wg_packet_purge_staged_packets / wg_packet_purge_staged_packets
* Struck through repros no longer work on HEAD.