syzbot


KCSAN: data-race in tick_nohz_highres_handler / tick_nohz_idle_stop_tick

Status: auto-obsoleted due to no activity on 2024/01/17 23:31
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+554b2d2df34db818e5de@syzkaller.appspotmail.com
First crash: 147d, last: 147d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tick_nohz_highres_handler / tick_nohz_idle_stop_tick (3) kernel 1 58d 58d 0/26 auto-obsoleted due to no activity on 2024/04/16 07:28
upstream KCSAN: data-race in tick_nohz_highres_handler / tick_nohz_idle_stop_tick (2) kernel 1 94d 94d 0/26 auto-obsoleted due to no activity on 2024/03/10 16:50

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

write to 0xffffffff85f1a330 of 4 bytes by task 0 on cpu 1:
 tick_nohz_stop_tick kernel/time/tick-sched.c:904 [inline]
 tick_nohz_idle_stop_tick+0x1d8/0x760 kernel/time/tick-sched.c:1130
 cpuidle_idle_call kernel/sched/idle.c:211 [inline]
 do_idle+0x177/0x230 kernel/sched/idle.c:282
 cpu_startup_entry+0x24/0x30 kernel/sched/idle.c:380
 start_secondary+0x82/0x90 arch/x86/kernel/smpboot.c:336
 secondary_startup_64_no_verify+0x167/0x16b

read to 0xffffffff85f1a330 of 4 bytes by interrupt on cpu 0:
 tick_sched_do_timer kernel/time/tick-sched.c:201 [inline]
 tick_nohz_highres_handler+0x3d/0x2c0 kernel/time/tick-sched.c:1509
 __run_hrtimer kernel/time/hrtimer.c:1688 [inline]
 __hrtimer_run_queues+0x217/0x700 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x20d/0x7b0 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1065 [inline]
 __sysvec_apic_timer_interrupt+0x52/0x190 arch/x86/kernel/apic/apic.c:1082
 sysvec_apic_timer_interrupt+0x68/0x80 arch/x86/kernel/apic/apic.c:1076
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649
 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+0x20/0x30 drivers/acpi/processor_idle.c:112
 acpi_idle_do_entry+0x19/0x30 drivers/acpi/processor_idle.c:573
 acpi_idle_enter+0x96/0xb0 drivers/acpi/processor_idle.c:707
 cpuidle_enter_state+0xc6/0x260 drivers/cpuidle/cpuidle.c:267
 cpuidle_enter+0x40/0x60 drivers/cpuidle/cpuidle.c:388
 call_cpuidle kernel/sched/idle.c:134 [inline]
 cpuidle_idle_call kernel/sched/idle.c:215 [inline]
 do_idle+0x194/0x230 kernel/sched/idle.c:282
 cpu_startup_entry+0x24/0x30 kernel/sched/idle.c:380
 rest_init+0xf3/0x100 init/main.c:730
 arch_call_rest_init+0x9/0x10 init/main.c:827
 start_kernel+0x57d/0x5d0 init/main.c:1072
 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:555
 x86_64_start_kernel+0x94/0xa0 arch/x86/kernel/head64.c:536
 secondary_startup_64_no_verify+0x167/0x16b

value changed: 0x00000001 -> 0xffffffff

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.7.0-rc5-syzkaller-00047-g5bd7ef53ffe5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/13 23:30 upstream 5bd7ef53ffe5 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_highres_handler / tick_nohz_idle_stop_tick
* Struck through repros no longer work on HEAD.