syzbot


KCSAN: data-race in __run_timer_base / next_expiry_recalc

Status: moderation: reported on 2024/03/29 00:46
Subsystems: acpi
[Documentation on labels]
Reported-by: syzbot+9986cce492ee36844300@syzkaller.appspotmail.com
First crash: 23d, last: 3d17h

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

write to 0xffff888237d1de98 of 8 bytes by interrupt on cpu 0:
 next_expiry_recalc+0x187/0x1e0 kernel/time/timer.c:1968
 __run_timers kernel/time/timer.c:2415 [inline]
 __run_timer_base+0x2ee/0x640 kernel/time/timer.c:2429
 timer_expire_remote+0x2f/0x40 kernel/time/timer.c:2181
 tmigr_handle_remote_cpu kernel/time/timer_migration.c:938 [inline]
 tmigr_handle_remote_up kernel/time/timer_migration.c:1030 [inline]
 __walk_groups kernel/time/timer_migration.c:488 [inline]
 tmigr_handle_remote+0x4ee/0x910 kernel/time/timer_migration.c:1091
 run_timer_softirq+0x5f/0x70 kernel/time/timer.c:2452
 __do_softirq+0xc8/0x285 kernel/softirq.c:554
 invoke_softirq kernel/softirq.c:428 [inline]
 __irq_exit_rcu kernel/softirq.c:633 [inline]
 irq_exit_rcu+0x3c/0x90 kernel/softirq.c:645
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
 sysvec_apic_timer_interrupt+0x37/0x80 arch/x86/kernel/apic/apic.c:1043
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702

read to 0xffff888237d1de98 of 8 bytes by interrupt on cpu 1:
 __run_timer_base+0x52/0x640 kernel/time/timer.c:2424
 run_timer_base kernel/time/timer.c:2438 [inline]
 run_timer_softirq+0x31/0x70 kernel/time/timer.c:2448
 __do_softirq+0xc8/0x285 kernel/softirq.c:554
 invoke_softirq kernel/softirq.c:428 [inline]
 __irq_exit_rcu kernel/softirq.c:633 [inline]
 irq_exit_rcu+0x3c/0x90 kernel/softirq.c:645
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
 sysvec_apic_timer_interrupt+0x73/0x80 arch/x86/kernel/apic/apic.c:1043
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
 native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline]
 acpi_safe_halt+0x21/0x30 drivers/acpi/processor_idle.c:112
 acpi_idle_do_entry+0x1d/0x30 drivers/acpi/processor_idle.c:573
 acpi_idle_enter+0x96/0xb0 drivers/acpi/processor_idle.c:707
 cpuidle_enter_state+0xcf/0x270 drivers/cpuidle/cpuidle.c:267
 cpuidle_enter+0x40/0x70 drivers/cpuidle/cpuidle.c:388
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x195/0x230 kernel/sched/idle.c:332
 cpu_startup_entry+0x25/0x30 kernel/sched/idle.c:430
 start_secondary+0x94/0xa0 arch/x86/kernel/smpboot.c:313
 common_startup_64+0x12c/0x137

value changed: 0x0000000100009db7 -> 0x0000000100009db8

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 0 Comm: swapper/1 Tainted: G        W          6.9.0-rc4-syzkaller-00031-g96fca68c4fbf #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/17 15:51 upstream 96fca68c4fbf acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __run_timer_base / next_expiry_recalc
2024/04/16 04:49 upstream 96fca68c4fbf 0d592ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __run_timer_base / next_expiry_recalc
2024/04/04 10:08 upstream c85af715cac0 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __run_timer_base / next_expiry_recalc
2024/03/31 02:27 upstream 486291a0e624 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __run_timer_base / next_expiry_recalc
2024/03/29 00:46 upstream 8d025e2092e2 e91187ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __run_timer_base / next_expiry_recalc
* Struck through repros no longer work on HEAD.