syzbot


KCSAN: data-race in tick_nohz_idle_stop_tick / tick_sched_timer (2)

Status: auto-obsoleted due to no activity on 2023/11/10 08:06
Subsystems: kernel
[Documentation on labels]
First crash: 765d, last: 733d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tick_nohz_idle_stop_tick / tick_sched_timer kernel 6 26 803d 977d 0/29 auto-obsoleted due to no activity on 2023/09/01 21:02

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

write to 0xffffffff85f16b00 of 4 bytes by interrupt on cpu 1:
 tick_sched_do_timer kernel/time/tick-sched.c:204 [inline]
 tick_sched_timer+0x2ad/0x2c0 kernel/time/tick-sched.c:1485
 __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:1063 [inline]
 __sysvec_apic_timer_interrupt+0x52/0x190 arch/x86/kernel/apic/apic.c:1080
 sysvec_apic_timer_interrupt+0x68/0x80 arch/x86/kernel/apic/apic.c:1074
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
 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
 start_secondary+0x82/0x90 arch/x86/kernel/smpboot.c:326
 secondary_startup_64_no_verify+0x167/0x16b

read to 0xffffffff85f16b00 of 4 bytes by task 0 on cpu 0:
 tick_nohz_stop_tick kernel/time/tick-sched.c:902 [inline]
 tick_nohz_idle_stop_tick+0x1b0/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
 rest_init+0xf3/0x100 init/main.c:726
 arch_call_rest_init+0x9/0x10 init/main.c:823
 start_kernel+0x57d/0x5d0 init/main.c:1068
 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:556
 x86_64_start_kernel+0x94/0xa0 arch/x86/kernel/head64.c:537
 secondary_startup_64_no_verify+0x167/0x16b

value changed: 0xffffffff -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W          6.6.0-rc4-syzkaller-00176-gb78b18fb8ee1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/06 07:56 upstream b78b18fb8ee1 db17ad9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_sched_timer
2023/10/02 11:41 upstream 8a749fd1a872 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_sched_timer
2023/09/28 17:17 upstream 633b47cb009d d265efd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_sched_timer
2023/09/10 20:34 upstream 1548b060d6f3 6654cf89 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_sched_timer
2023/09/08 12:26 upstream a48fa7efaf11 72324844 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_sched_timer
2023/09/04 14:51 upstream 708283abf896 db3306a6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in tick_nohz_idle_stop_tick / tick_sched_timer
* Struck through repros no longer work on HEAD.