syzbot


KCSAN: data-race in tick_nohz_stop_tick / tick_sched_timer (3)

Status: auto-closed as invalid on 2021/01/28 04:30
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+ae4c889bc7d1304cc450@syzkaller.appspotmail.com
First crash: 1271d, last: 1219d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tick_nohz_stop_tick / tick_sched_timer (5) kernel 60 452d 912d 0/26 auto-obsoleted due to no activity on 2023/04/07 18:53
upstream KCSAN: data-race in tick_nohz_stop_tick / tick_sched_timer (4) kernel 30 948d 1177d 0/26 auto-closed as invalid on 2021/10/26 18:10
upstream KCSAN: data-race in tick_nohz_stop_tick / tick_sched_timer kernel 2 1357d 1388d 0/26 auto-closed as invalid on 2020/09/12 13:18
upstream KCSAN: data-race in tick_nohz_stop_tick / tick_sched_timer (2) kernel 1 1307d 1307d 0/26 auto-closed as invalid on 2020/11/01 03:13

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

write to 0xffffffff86fc4120 of 4 bytes by task 0 on cpu 1:
 tick_nohz_stop_tick+0x99/0x410 kernel/time/tick-sched.c:837
 __tick_nohz_idle_stop_tick kernel/time/tick-sched.c:1029 [inline]
 tick_nohz_idle_stop_tick+0x148/0x2e0 kernel/time/tick-sched.c:1050
 cpuidle_idle_call kernel/sched/idle.c:235 [inline]
 do_idle+0x176/0x230 kernel/sched/idle.c:299
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:396
 secondary_startup_64_no_verify+0xb0/0xbb

read to 0xffffffff86fc4120 of 4 bytes by interrupt on cpu 0:
 tick_sched_do_timer kernel/time/tick-sched.c:187 [inline]
 tick_sched_timer+0x35/0x200 kernel/time/tick-sched.c:1369
 __run_hrtimer+0x133/0x420 kernel/time/hrtimer.c:1519
 __hrtimer_run_queues kernel/time/hrtimer.c:1583 [inline]
 hrtimer_interrupt+0x36e/0xa10 kernel/time/hrtimer.c:1645
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x6f/0x200 arch/x86/kernel/apic/apic.c:1102
 asm_call_irq_on_stack+0xf/0x20
 __run_sysvec_on_irqstack arch/x86/include/asm/irq_stack.h:37 [inline]
 run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:89 [inline]
 sysvec_apic_timer_interrupt+0x52/0x90 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:628
 native_safe_halt arch/x86/include/asm/irqflags.h:60 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:103 [inline]
 acpi_safe_halt drivers/acpi/processor_idle.c:110 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:516 [inline]
 acpi_idle_enter+0x25b/0x2e0 drivers/acpi/processor_idle.c:647
 cpuidle_enter_state+0x2bd/0x750 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:158 [inline]
 cpuidle_idle_call kernel/sched/idle.c:239 [inline]
 do_idle+0x193/0x230 kernel/sched/idle.c:299
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:396
 rest_init+0xd7/0xe0 init/main.c:720
 arch_call_rest_init+0xa/0xb
 start_kernel+0x59b/0x620 init/main.c:1061
 secondary_startup_64_no_verify+0xb0/0xbb

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.10.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/24 04:29 upstream 58cf05f597b0 c2c1d1dd .config console log report info ci2-upstream-kcsan-gce
2020/12/07 09:30 upstream 0477e9288185 f80ce148 .config console log report info ci2-upstream-kcsan-gce
2020/12/02 17:23 upstream 509a15421674 eff43e99 .config console log report info ci2-upstream-kcsan-gce
2020/11/16 05:12 upstream 0062442ecfef 1bf9a662 .config console log report info ci2-upstream-kcsan-gce
2020/11/05 22:22 upstream 521b619acdc8 cba33199 .config console log report info ci2-upstream-kcsan-gce
2020/11/02 21:16 upstream 495023e4e49e 7f344fa6 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.