syzbot


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

Status: auto-closed as invalid on 2020/12/21 11:40
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+e986a24e133a86ec1dfa@syzkaller.appspotmail.com
First crash: 1396d, last: 1268d
Similar bugs (5)
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_enter (3) kernel 1 962d 962d 0/26 auto-closed as invalid on 2021/10/09 06:41
upstream KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_enter (6) kernel 3 494d 497d 0/26 auto-obsoleted due to no activity on 2023/04/06 19:58
upstream KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_enter kernel 9 1424d 1542d 0/26 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_enter (5) kernel 1 705d 705d 0/26 auto-closed as invalid on 2022/06/22 15:45
upstream KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_enter (4) kernel 12 802d 904d 0/26 auto-closed as invalid on 2022/03/17 13:24

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

read-write to 0xffff88813bd1e2bc of 1 bytes by task 0 on cpu 1:
 tick_nohz_idle_enter+0x56/0xa0 kernel/time/tick-sched.c:1032
 do_idle+0x36/0x230 kernel/sched/idle.c:248
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:369
 secondary_startup_64_no_verify+0xa6/0xab

read to 0xffff88813bd1e2bc of 1 bytes by task 13384 on cpu 0:
 get_cpu_iowait_time_us+0x6b/0x1f0 kernel/time/tick-sched.c:640
 get_iowait_time fs/proc/stat.c:69 [inline]
 show_stat+0x93e/0xdc0 fs/proc/stat.c:173
 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: 0 PID: 13384 Comm: syz-executor.4 Not tainted 5.10.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/01 21:52 upstream 31f020064f9d 8bc4594f .config console log report info ci2-upstream-kcsan-gce
2020/10/23 22:06 upstream 0adc313c4f20 2bb6666c .config console log report info ci2-upstream-kcsan-gce
2020/09/27 02:45 upstream eeddbe6841cd 5dd8aee8 .config console log report info ci2-upstream-kcsan-gce
2020/09/22 04:30 upstream 98477740630f 9e1fa68e .config console log report info ci2-upstream-kcsan-gce
2020/08/19 06:10 upstream 18445bf405cb e1c29030 .config console log report ci2-upstream-kcsan-gce
2020/07/30 08:15 upstream 83bdc7275e62 233283a1 .config console log report ci2-upstream-kcsan-gce
2020/06/29 13:28 upstream 9ebcfadb0610 df01f6fc .config console log report ci2-upstream-kcsan-gce
2020/06/27 02:14 upstream 1590a2e1c681 ffec44b5 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.