syzbot


KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter (2)

Status: auto-closed as invalid on 2020/12/05 03:01
Subsystems: kernel
[Documentation on labels]
First crash: 1389d, last: 1261d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter (3) kernel 1 1066d 1066d 0/26 auto-closed as invalid on 2021/06/18 16:26
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter (5) kernel 2 558d 566d 0/26 auto-obsoleted due to no activity on 2022/11/08 00:00
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter (4) kernel 92 669d 828d 0/26 auto-closed as invalid on 2022/07/20 00:23
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter (6) kernel 3 467d 508d 0/26 auto-obsoleted due to no activity on 2023/02/13 18:11
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter kernel 7 1451d 1549d 0/26 closed as invalid on 2020/06/18 14:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter

read-write to 0xffff88813bc1e2bc of 1 bytes by task 0 on cpu 0:
 tick_nohz_stop_idle kernel/time/tick-sched.c:565 [inline]
 tick_nohz_irq_enter kernel/time/tick-sched.c:1284 [inline]
 tick_irq_enter+0x12b/0x1c0 kernel/time/tick-sched.c:1303
 irq_enter_rcu+0x2e/0x60 kernel/softirq.c:359
 sysvec_apic_timer_interrupt+0x11/0x90 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631
 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:111 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:517 [inline]
 acpi_idle_enter+0x25b/0x2e0 drivers/acpi/processor_idle.c:648
 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:132 [inline]
 cpuidle_idle_call kernel/sched/idle.c:213 [inline]
 do_idle+0x193/0x230 kernel/sched/idle.c:273
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:369
 rest_init+0xd7/0xe0 init/main.c:711
 arch_call_rest_init+0xa/0xb
 start_kernel+0x5a0/0x625 init/main.c:1051
 secondary_startup_64_no_verify+0xa6/0xab

read to 0xffff88813bc1e2bc of 1 bytes by task 19514 on cpu 1:
 get_cpu_idle_time_us+0x6b/0x1f0 kernel/time/tick-sched.c:599
 get_idle_time fs/proc/stat.c:53 [inline]
 show_stat+0x8de/0xdc0 fs/proc/stat.c:172
 seq_read+0x2de/0x890 fs/seq_file.c:208
 pde_read fs/proc/inode.c:321 [inline]
 proc_reg_read+0xe1/0x1b0 fs/proc/inode.c:331
 do_loop_readv_writev fs/read_write.c:761 [inline]
 do_iter_read+0x3b1/0x4b0 fs/read_write.c:803
 vfs_readv fs/read_write.c:921 [inline]
 do_preadv+0x139/0x210 fs/read_write.c:1013
 __do_sys_preadv fs/read_write.c:1063 [inline]
 __se_sys_preadv fs/read_write.c:1058 [inline]
 __x64_sys_preadv+0x54/0x60 fs/read_write.c:1058
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (37):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/31 02:56 upstream f5d808567a51 18e33098 .config console log report info ci2-upstream-kcsan-gce
2020/10/29 09:26 upstream 23859ae44402 f24824d3 .config console log report info ci2-upstream-kcsan-gce
2020/10/10 11:56 upstream 6f2f486d57c4 b74c49a6 .config console log report info ci2-upstream-kcsan-gce
2020/10/05 02:49 upstream 549738f15da0 5ef9c291 .config console log report info ci2-upstream-kcsan-gce
2020/10/04 11:46 upstream 22fbc037cd32 5ef9c291 .config console log report info ci2-upstream-kcsan-gce
2020/10/02 09:04 upstream fcadab740480 9602ddf4 .config console log report info ci2-upstream-kcsan-gce
2020/09/30 19:48 upstream 02de58b24d2e a9767fb2 .config console log report info ci2-upstream-kcsan-gce
2020/09/29 03:56 upstream fb0155a09b02 1b88c6d5 .config console log report info ci2-upstream-kcsan-gce
2020/09/25 14:01 upstream 171d4ff79f96 4a006f63 .config console log report info ci2-upstream-kcsan-gce
2020/09/23 22:12 upstream 805c6d3c1921 54289b08 .config console log report info ci2-upstream-kcsan-gce
2020/09/22 11:55 upstream 98477740630f 3e8f6c27 .config console log report info ci2-upstream-kcsan-gce
2020/09/20 23:39 upstream bdcf11de8f77 9564d2e9 .config console log report info ci2-upstream-kcsan-gce
2020/09/20 03:38 upstream 325d0eab4f31 53ce8104 .config console log report info ci2-upstream-kcsan-gce
2020/09/19 05:58 upstream 92ab97adeefc 53ce8104 .config console log report info ci2-upstream-kcsan-gce
2020/09/17 11:41 upstream 5925fa68fe82 8247808b .config console log report info ci2-upstream-kcsan-gce
2020/09/16 17:37 upstream fc4f28bb3daf 77507d02 .config console log report info ci2-upstream-kcsan-gce
2020/09/15 19:53 upstream fc4f28bb3daf 18d7d030 .config console log report info ci2-upstream-kcsan-gce
2020/09/15 15:04 upstream fc4f28bb3daf 9e681632 .config console log report info ci2-upstream-kcsan-gce
2020/09/15 08:44 upstream fc4f28bb3daf 9e681632 .config console log report info ci2-upstream-kcsan-gce
2020/09/14 10:17 upstream 84b134997212 2d3cdd63 .config console log report ci2-upstream-kcsan-gce
2020/09/11 23:16 upstream e8878ab82545 79fb24e2 .config console log report ci2-upstream-kcsan-gce
2020/09/09 08:23 upstream 34d4ddd359db 0ea7a887 .config console log report ci2-upstream-kcsan-gce
2020/08/30 13:58 upstream 1127b219ce94 d5a3ae1f .config console log report ci2-upstream-kcsan-gce
2020/08/26 19:00 upstream 2ac69819ba9e 318430cb .config console log report ci2-upstream-kcsan-gce
2020/08/26 07:16 upstream abb3438d69fb 344da168 .config console log report ci2-upstream-kcsan-gce
2020/08/08 14:26 upstream 449dc8c97089 01975a06 .config console log report ci2-upstream-kcsan-gce
2020/08/02 14:24 upstream ac3a0c847296 96dd3623 .config console log report ci2-upstream-kcsan-gce
2020/08/01 19:22 upstream d52daa8620c6 8df85ed9 .config console log report ci2-upstream-kcsan-gce
2020/07/23 11:00 upstream d15be546031c 340ea530 .config console log report ci2-upstream-kcsan-gce
2020/07/22 14:41 upstream 4fa640dc5230 128cd85f .config console log report ci2-upstream-kcsan-gce
2020/07/15 18:00 upstream e9919e11e219 ada108d0 .config console log report ci2-upstream-kcsan-gce
2020/07/07 01:10 upstream 5c82ec00dd00 ef278c73 .config console log report ci2-upstream-kcsan-gce
2020/07/02 17:48 upstream cd77006e01b3 f30c14bf .config console log report ci2-upstream-kcsan-gce
2020/07/01 20:38 upstream edb543cfe5db 695ef2dd .config console log report ci2-upstream-kcsan-gce
2020/06/30 00:36 upstream 7c30b859a947 917afeaa .config console log report ci2-upstream-kcsan-gce
2020/06/29 10:31 upstream 9ebcfadb0610 3ff434cc .config console log report ci2-upstream-kcsan-gce
2020/06/25 04:29 upstream 26e122e97a3d 9d60b18e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.