syzbot


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

Status: auto-closed as invalid on 2022/08/29 13:08
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 281d, last: 130d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tick_nohz_next_event / tick_sched_timer (2) 14 326d 406d 0/24 auto-closed as invalid on 2022/02/14 17:31
upstream KCSAN: data-race in tick_nohz_next_event / tick_sched_timer 70 467d 726d 0/24 auto-closed as invalid on 2021/09/27 10:26

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

write to 0xffffffff85ed03b0 of 4 bytes by interrupt on cpu 1:
 tick_sched_do_timer kernel/time/tick-sched.c:193 [inline]
 tick_sched_timer+0x2b0/0x2d0 kernel/time/tick-sched.c:1473
 __run_hrtimer+0x132/0x420 kernel/time/hrtimer.c:1685
 __hrtimer_run_queues kernel/time/hrtimer.c:1749 [inline]
 hrtimer_interrupt+0x36e/0xa70 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0xa3/0x250 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x39/0xb0 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x16/0x20

read to 0xffffffff85ed03b0 of 4 bytes by task 0 on cpu 0:
 tick_nohz_next_event+0x1ee/0x2c0 kernel/time/tick-sched.c:852
 tick_nohz_get_sleep_length+0x15b/0x250 kernel/time/tick-sched.c:1238
 menu_select+0x347/0x1010 drivers/cpuidle/governors/menu.c:283
 cpuidle_select+0x3d/0x50 drivers/cpuidle/cpuidle.c:322
 cpuidle_idle_call kernel/sched/idle.c:229 [inline]
 do_idle+0x17e/0x250 kernel/sched/idle.c:303
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:400
 rest_init+0xe8/0xf0 init/main.c:726
 start_kernel+0x0/0x656 init/main.c:882
 start_kernel+0x5d1/0x656 init/main.c:1137
 secondary_startup_64_no_verify+0xcf/0xdb

value changed: 0xffffffff -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.19.0-rc8-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (11):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/07/25 13:06 upstream e0dccc3b76fb 664c519c .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2022/07/10 17:57 upstream d9919d43cbf6 b5765a15 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2022/07/04 15:26 upstream 88084a3df167 bff65f44 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2022/06/19 16:46 upstream 05c6ca8512f2 8f633d84 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2022/06/18 11:24 upstream 4b35035bcf80 8f633d84 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2022/05/27 22:38 upstream 8291eaafed36 a46af346 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2022/05/09 03:39 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2022/05/06 06:35 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2022/04/02 22:24 upstream be2d3ecedd99 79a2a8fc .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2022/03/28 01:38 upstream f82da161ea75 89bc8608 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2022/02/24 13:15 upstream 23d04328444a b28851a4 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
* Struck through repros no longer work on HEAD.