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
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 828d, last: 815d
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_nohz_idle_enter (5) 2 152d 178d 0/24 auto-closed as invalid on 2022/06/02 15:56
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_nohz_idle_enter 10 853d 976d 0/24 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_nohz_idle_enter (3) 10 707d 764d 0/24 auto-closed as invalid on 2020/11/24 16:04
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_nohz_idle_enter (4) 14 238d 338d 0/24 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) 1 72d 72d 0/24 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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/07/05 00:52 upstream 35e884f89df4 24d7f505 .config log report
ci2-upstream-kcsan-gce 2020/06/21 16:34 upstream 64677779e896 4f2acff9 .config log report
* Struck through repros no longer work on HEAD.