syzbot


KCSAN: data-race in tick_nohz_idle_stop_tick / tick_sched_do_timer

Status: closed as invalid on 2019/10/18 14:11
Subsystems: kernel
[Documentation on labels]
First crash: 1655d, last: 1649d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tick_nohz_idle_stop_tick / tick_sched_do_timer (2) kernel 5 1623d 1644d 0/26 closed as invalid on 2019/11/19 14:04
upstream KCSAN: data-race in tick_nohz_idle_stop_tick / tick_sched_do_timer (3) kernel 53 1403d 1404d 0/26 auto-closed as invalid on 2020/07/20 08:09

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

write to 0xffffffff85caf310 of 4 bytes by interrupt on cpu 0:
 tick_sched_do_timer+0xc0/0xe0 kernel/time/tick-sched.c:132
 tick_sched_timer+0x43/0xe0 kernel/time/tick-sched.c:1289
 __run_hrtimer kernel/time/hrtimer.c:1389 [inline]
 __hrtimer_run_queues+0x288/0x600 kernel/time/hrtimer.c:1451
 hrtimer_interrupt+0x22a/0x480 kernel/time/hrtimer.c:1509
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1110 [inline]
 smp_apic_timer_interrupt+0xdc/0x280 arch/x86/kernel/apic/apic.c:1135
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:830

read to 0xffffffff85caf310 of 4 bytes by task 0 on cpu 1:
 tick_nohz_stop_tick kernel/time/tick-sched.c:757 [inline]
 __tick_nohz_idle_stop_tick kernel/time/tick-sched.c:949 [inline]
 tick_nohz_idle_stop_tick+0x193/0x670 kernel/time/tick-sched.c:970
 cpuidle_idle_call kernel/sched/idle.c:151 [inline]
 do_idle+0x1e0/0x2c0 kernel/sched/idle.c:263
 cpu_startup_entry+0x1b/0x20 kernel/sched/idle.c:354
 start_secondary+0x207/0x260 arch/x86/kernel/smpboot.c:264
 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:241

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.3.0+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.3.0+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0xf5/0x159 lib/dump_stack.c:113
 panic+0x209/0x639 kernel/panic.c:219
 kcsan_report.cold+0xc/0x1b kernel/kcsan/report.c:303
 __kcsan_setup_watchpoint+0x3ee/0x510 kernel/kcsan/core.c:455
 __tsan_read4 kernel/kcsan/kcsan.c:30 [inline]
 __tsan_read4+0x2c/0x30 kernel/kcsan/kcsan.c:30
 tick_nohz_stop_tick kernel/time/tick-sched.c:757 [inline]
 __tick_nohz_idle_stop_tick kernel/time/tick-sched.c:949 [inline]
 tick_nohz_idle_stop_tick+0x193/0x670 kernel/time/tick-sched.c:970
 cpuidle_idle_call kernel/sched/idle.c:151 [inline]
 do_idle+0x1e0/0x2c0 kernel/sched/idle.c:263
 cpu_startup_entry+0x1b/0x20 kernel/sched/idle.c:354
 start_secondary+0x207/0x260 arch/x86/kernel/smpboot.c:264
 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:241
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/13 11:50 https://github.com/google/ktsan.git kcsan d724f94f63de 2f661ec4 .config console log report ci2-upstream-kcsan-gce
2019/10/12 23:24 https://github.com/google/ktsan.git kcsan d724f94f63de 426631dd .config console log report ci2-upstream-kcsan-gce
2019/10/11 09:23 https://github.com/google/ktsan.git kcsan d724f94f63de 1a3bad90 .config console log report ci2-upstream-kcsan-gce
2019/10/10 14:32 https://github.com/google/ktsan.git kcsan d724f94f63de d52eff28 .config console log report ci2-upstream-kcsan-gce
2019/10/09 01:55 https://github.com/google/ktsan.git kcsan d724f94f63de b1ebbfef .config console log report ci2-upstream-kcsan-gce
2019/10/08 18:40 https://github.com/google/ktsan.git kcsan d724f94f63de b1ebbfef .config console log report ci2-upstream-kcsan-gce
2019/10/08 02:05 https://github.com/google/ktsan.git kcsan c1c7521f03c7 28ac6e64 .config console log report ci2-upstream-kcsan-gce
2019/10/07 19:46 https://github.com/google/ktsan.git kcsan c1c7521f03c7 28ac6e64 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.