syzbot


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

Status: auto-closed as invalid on 2020/08/09 00:56
Subsystems: kernel
[Documentation on labels]
First crash: 1633d, last: 1620d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_nohz_idle_enter (5) kernel 2 957d 983d 0/28 auto-closed as invalid on 2022/06/02 15:56
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_nohz_idle_enter kernel 10 1658d 1781d 0/28 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_nohz_idle_enter (3) kernel 10 1512d 1569d 0/28 auto-closed as invalid on 2020/11/24 16:04
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_nohz_idle_enter (7) kernel 6 730d 746d 0/28 auto-obsoleted due to no activity on 2023/01/17 06:15
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_nohz_idle_enter (4) kernel 14 1043d 1143d 0/28 auto-closed as invalid on 2022/03/09 00:14
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_nohz_idle_enter (6) kernel 1 877d 877d 0/28 auto-closed as invalid on 2022/08/21 13:12

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

write to 0xffff88812c01f184 of 1 bytes by task 0 on cpu 0:
 tick_nohz_idle_enter+0x96/0x120 kernel/time/tick-sched.c:1024
 do_idle+0x36/0x310 kernel/sched/idle.c:251
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:372
 rest_init+0xd8/0xe0 init/main.c:705
 arch_call_rest_init+0xa/0xb
 start_kernel+0x608/0x6d0 init/main.c:1043
 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243

read to 0xffff88812c01f184 of 1 bytes by task 20306 on cpu 1:
 get_cpu_idle_time_us+0x6b/0x1f0 kernel/time/tick-sched.c:591
 get_idle_time fs/proc/stat.c:53 [inline]
 show_stat+0x7ff/0xd10 fs/proc/stat.c:172
 seq_read+0x2ee/0x900 fs/seq_file.c:208
 pde_read fs/proc/inode.c:306 [inline]
 proc_reg_read+0xde/0x1a0 fs/proc/inode.c:316
 do_loop_readv_writev fs/read_write.c:715 [inline]
 do_iter_read+0x3f5/0x480 fs/read_write.c:936
 vfs_readv fs/read_write.c:1054 [inline]
 do_preadv+0x13b/0x230 fs/read_write.c:1146
 __do_sys_preadv fs/read_write.c:1196 [inline]
 __se_sys_preadv fs/read_write.c:1191 [inline]
 __x64_sys_preadv+0x54/0x60 fs/read_write.c:1191
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/05 00:52 upstream 35e884f89df4 24d7f505 .config console log report ci2-upstream-kcsan-gce
2020/06/21 16:34 upstream 64677779e896 4f2acff9 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.