syzbot


KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_exit

Status: auto-closed as invalid on 2020/05/31 09:34
Subsystems: kernel
[Documentation on labels]
First crash: 1808d, last: 1773d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_exit (5) kernel 1 1016d 1016d 0/28 auto-closed as invalid on 2022/05/23 18:19
upstream KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_exit (3) kernel 1 1178d 1178d 0/28 auto-closed as invalid on 2021/12/12 14:17
upstream KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_exit (2) kernel 3 1594d 1634d 0/28 auto-closed as invalid on 2020/10/22 16:12
upstream KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_exit (4) kernel 1 1069d 1069d 0/28 auto-closed as invalid on 2022/03/31 12:11

Sample crash report:
==================================================================
BUG: KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_exit

write to 0xffff88812c12024c of 1 bytes by task 0 on cpu 1:
 tick_nohz_idle_exit+0xbe/0x1d0 kernel/time/tick-sched.c:1185
 do_idle+0xac/0x290 kernel/sched/idle.c:282
 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:361
 start_secondary+0x164/0x1b0 arch/x86/kernel/smpboot.c:264
 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:242

read to 0xffff88812c12024c of 1 bytes by task 18737 on cpu 0:
 get_cpu_iowait_time_us+0xe5/0x170 kernel/time/tick-sched.c:631
 get_iowait_time.isra.0+0x65/0x90 fs/proc/stat.c:69
 show_stat+0x276/0xa50 fs/proc/stat.c:132
 seq_read+0x346/0x9d0 fs/seq_file.c:229
 proc_reg_read+0xe8/0x140 fs/proc/inode.c:223
 do_loop_readv_writev fs/read_write.c:714 [inline]
 do_loop_readv_writev fs/read_write.c:701 [inline]
 do_iter_read+0x33d/0x3a0 fs/read_write.c:935
 vfs_readv+0x9c/0xf0 fs/read_write.c:1053
 do_preadv+0x129/0x1c0 fs/read_write.c:1145
 __do_sys_preadv fs/read_write.c:1195 [inline]
 __se_sys_preadv fs/read_write.c:1190 [inline]
 __x64_sys_preadv+0x5e/0x80 fs/read_write.c:1190
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 18737 Comm: syz-executor.2 Not tainted 5.6.0-rc1-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/03/22 09:29 https://github.com/google/ktsan.git kcsan 40959e34d670 78267cec .config console log report ci2-upstream-kcsan-gce
2020/02/16 14:49 https://github.com/google/ktsan.git kcsan b12d66a6c34f cf914200 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.