syzbot


KCSAN: data-race in tick_nohz_next_event / tick_sched_timer

Status: auto-closed as invalid on 2021/09/27 10:26
Reported-by: syzbot+718de52a970b1291af5a@syzkaller.appspotmail.com
First crash: 827d, last: 400d
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 259d 340d 0/24 auto-closed as invalid on 2022/02/14 17:31
upstream KCSAN: data-race in tick_nohz_next_event / tick_sched_timer (3) 11 64d 215d 0/24 auto-closed as invalid on 2022/08/29 13:08

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

write to 0xffffffff838c2450 of 4 bytes by interrupt on cpu 1:
 tick_sched_do_timer kernel/time/tick-sched.c:191 [inline]
 tick_sched_timer+0x1f5/0x210 kernel/time/tick-sched.c:1414
 __run_hrtimer+0x160/0x480 kernel/time/hrtimer.c:1537
 __hrtimer_run_queues kernel/time/hrtimer.c:1601 [inline]
 hrtimer_interrupt+0x380/0xaf0 kernel/time/hrtimer.c:1663
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1089 [inline]
 __sysvec_apic_timer_interrupt+0x6f/0x1c0 arch/x86/kernel/apic/apic.c:1106
 sysvec_apic_timer_interrupt+0x64/0x80 arch/x86/kernel/apic/apic.c:1100
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
 native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
 acpi_safe_halt drivers/acpi/processor_idle.c:109 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:553 [inline]
 acpi_idle_enter+0x258/0x2e0 drivers/acpi/processor_idle.c:688
 cpuidle_enter_state+0x2b6/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+0x1a3/0x240 kernel/sched/idle.c:306
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:403
 secondary_startup_64_no_verify+0xb0/0xbb

read to 0xffffffff838c2450 of 4 bytes by task 0 on cpu 0:
 tick_nohz_next_event+0x217/0x300 kernel/time/tick-sched.c:838
 tick_nohz_get_sleep_length+0x121/0x280 kernel/time/tick-sched.c:1192
 menu_select+0x303/0x1040 drivers/cpuidle/governors/menu.c:283
 cpuidle_select+0x3d/0x50 drivers/cpuidle/cpuidle.c:322
 cpuidle_idle_call kernel/sched/idle.c:232 [inline]
 do_idle+0x16f/0x240 kernel/sched/idle.c:306
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:403
 rest_init+0xee/0x100 init/main.c:719
 arch_call_rest_init+0xa/0xb
 start_kernel+0x5ae/0x633 init/main.c:1125
 secondary_startup_64_no_verify+0xb0/0xbb

value changed: 0xffffffff -> 0x00000001

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

Crashes (70):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/08/23 10:26 upstream e22ce8eb631b b599f2fc .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/08/20 17:03 upstream d992fe5318d8 b599f2fc .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/08/17 21:08 upstream 794c7931a242 a2fe1cb5 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/08/15 07:00 upstream 0aa78d17099b 2489ab88 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/08/06 06:03 upstream 902e7f373fff 2f537099 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/07/31 08:16 upstream c7d102232649 6c236867 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/07/27 16:53 upstream ff1176468d36 17d6ab15 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/07/19 11:56 upstream 2734d6c1b1a0 e6a17580 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/07/13 21:33 upstream 40226a3d96ef 70168d5c .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/07/06 20:27 upstream 3dbdb38e2869 cca78469 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/06/22 19:03 upstream 0c18f29aae7c aba2b2fb .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/06/21 23:15 upstream a96bfed64c89 aba2b2fb .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/06/19 22:35 upstream 913ec3c22ef4 aba2b2fb .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/06/09 06:38 upstream 368094df48e6 5c2fe346 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/06/04 09:57 upstream f88cd3fb9df2 966a236b .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/05/17 09:51 upstream d07f6ca923ea a2eb125d .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/05/04 13:55 upstream 5e321ded302d 06c27ff5 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/04/16 05:50 upstream 7e25f40eab52 c59079a6 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/04/14 01:02 upstream eebe426d32e1 a184b83e .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/03/31 22:02 upstream d19cc4bfbff1 6a81331a .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/03/26 21:44 upstream db24726bfefa a8529b82 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/03/18 13:51 upstream 6417f03132a6 7216542e .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/03/18 04:43 upstream 6417f03132a6 fdb2bb2c .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/03/15 20:19 upstream 1e28eed17697 fdb2bb2c .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/03/14 00:45 upstream 88fe49249c99 4a003785 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/02/23 10:13 upstream b12b47249688 fcc6d71b .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/02/19 20:14 upstream f40ddce88593 f689d40a .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/02/13 23:24 upstream ac30d8ce28d6 98682e5e .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/02/08 23:48 upstream e0756cfc7d7c 2bd9619f .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/02/05 02:13 upstream 5c279c4cf206 23a562df .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/02/01 02:55 upstream 1048ba83fb1c fc9fd31e .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/01/31 03:52 upstream 8c947645151c fc9fd31e .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/01/26 21:16 upstream 13391c60da33 55a7d4df .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/01/18 05:58 upstream 19c329f68089 fd103621 .config log report info KCSAN: data-race in tick_nohz_next_event / tick_sched_timer
ci2-upstream-kcsan-gce 2021/01/14 15:45 upstream 65f0d2414b70 468dbb55 .config log report info
ci2-upstream-kcsan-gce 2021/01/06 04:15 upstream 6207214a70bf b1c228e1 .config log report info
ci2-upstream-kcsan-gce 2020/12/25 09:42 upstream 71c5f03154ac b982b3ea .config log report info
ci2-upstream-kcsan-gce 2020/12/17 10:36 upstream accefff5b547 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/15 11:00 upstream 148842c98a24 97183ed7 .config log report info
ci2-upstream-kcsan-gce 2020/12/13 18:37 upstream 6bff9bb8a292 8f160dd5 .config log report info
ci2-upstream-kcsan-gce 2020/12/12 03:31 upstream 7f376f1917d7 bca53db9 .config log report info
ci2-upstream-kcsan-gce 2020/12/11 12:25 upstream 33dc9614dc20 ba24ffcd .config log report info
ci2-upstream-kcsan-gce 2020/12/08 09:10 upstream cd796ed33450 9af51e31 .config log report info
ci2-upstream-kcsan-gce 2020/12/07 21:06 upstream cd796ed33450 51a9082e .config log report info
ci2-upstream-kcsan-gce 2020/12/02 05:27 upstream 509a15421674 c42a35e9 .config log report info
ci2-upstream-kcsan-gce 2020/11/25 05:27 upstream 127c501a03d5 1a1f4bd8 .config log report info
ci2-upstream-kcsan-gce 2020/11/22 21:57 upstream 68d3fa235fd8 0d27f508 .config log report info
ci2-upstream-kcsan-gce 2020/11/21 19:07 upstream 27bba9c532a8 c7ec2d19 .config log report info
ci2-upstream-kcsan-gce 2020/11/20 16:15 upstream 4d02da974ea8 0767f13f .config log report info
ci2-upstream-kcsan-gce 2020/11/15 06:50 upstream e28c0d7c92c8 1bf9a662 .config log report info
ci2-upstream-kcsan-gce 2020/11/14 05:14 upstream 9e6a39eae450 1bf9a662 .config log report info
ci2-upstream-kcsan-gce 2020/11/01 19:35 upstream 31f020064f9d 8bc4594f .config log report info
ci2-upstream-kcsan-gce 2020/10/31 03:10 upstream f5d808567a51 18e33098 .config log report info
ci2-upstream-kcsan-gce 2020/10/30 10:11 upstream 07e088730245 a6e3ac3b .config log report info
ci2-upstream-kcsan-gce 2020/10/08 20:05 upstream 3d006ee42dde 92390980 .config log report info
ci2-upstream-kcsan-gce 2020/10/05 20:53 upstream 7575fdda569b 1880b4a9 .config log report info
ci2-upstream-kcsan-gce 2020/10/01 04:56 upstream 60e720931556 a9767fb2 .config log report info
ci2-upstream-kcsan-gce 2020/09/26 06:05 upstream 7c7ec3226f5f 4a006f63 .config log report info
ci2-upstream-kcsan-gce 2020/09/24 00:14 upstream c9c9e6a49f89 54289b08 .config log report info
ci2-upstream-kcsan-gce 2020/08/27 07:57 upstream 15bc20c6af4c 816e0689 .config log report
ci2-upstream-kcsan-gce 2020/08/20 01:07 upstream 18445bf405cb ed282a3a .config log report
ci2-upstream-kcsan-gce 2020/08/11 12:01 upstream 00e4db51259a 5d3ebca9 .config log report
ci2-upstream-kcsan-gce 2020/08/04 11:46 upstream c0842fbc1b18 80a06902 .config log report
ci2-upstream-kcsan-gce 2020/08/02 00:35 upstream d52daa8620c6 8df85ed9 .config log report
ci2-upstream-kcsan-gce 2020/08/01 08:26 upstream 7dc6fd0f3b84 8df85ed9 .config log report
ci2-upstream-kcsan-gce 2020/07/09 21:27 upstream 2a89b99f5803 edf162e8 .config log report
ci2-upstream-kcsan-gce 2020/07/06 09:00 upstream dcb7fd82c75e ac5a135b .config log report
ci2-upstream-kcsan-gce 2020/07/02 00:01 upstream edb543cfe5db bed10395 .config log report
ci2-upstream-kcsan-gce 2020/06/29 08:07 upstream 9ebcfadb0610 0375051c .config log report
ci2-upstream-kcsan-gce 2020/06/22 02:23 upstream 64677779e896 4f2acff9 .config log report
* Struck through repros no longer work on HEAD.