syzbot


KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_exit (3)

Status: auto-closed as invalid on 2021/12/12 14:17
Subsystems: kernel
[Documentation on labels]
First crash: 900d, last: 900d
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 738d 738d 0/26 auto-closed as invalid on 2022/05/23 18:19
upstream KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_exit kernel 2 1496d 1530d 0/26 auto-closed as invalid on 2020/05/31 09:34
upstream KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_exit (2) kernel 3 1316d 1356d 0/26 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 791d 791d 0/26 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 0xffff888237d1debc of 1 bytes by task 0 on cpu 1:
 tick_nohz_idle_exit+0xac/0x2a0 kernel/time/tick-sched.c:1292
 do_idle+0x21d/0x250 kernel/sched/idle.c:319
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:403
 secondary_startup_64_no_verify+0xb1/0xbb

read to 0xffff888237d1debc of 1 bytes by task 4675 on cpu 0:
 get_cpu_iowait_time_us+0x6b/0x1f0
 get_iowait_time fs/proc/stat.c:70 [inline]
 show_stat+0x91f/0xdd0 fs/proc/stat.c:176
 seq_read_iter+0x2e1/0x930 fs/seq_file.c:230
 proc_reg_read_iter+0xd6/0x170 fs/proc/inode.c:296
 call_read_iter include/linux/fs.h:2156 [inline]
 io_iter_do_read fs/io_uring.c:3462 [inline]
 io_read fs/io_uring.c:3519 [inline]
 io_issue_sqe+0xbf6/0x5680 fs/io_uring.c:6628
 __io_queue_sqe+0x20/0x450 fs/io_uring.c:6978
 io_queue_sqe fs/io_uring.c:7020 [inline]
 io_submit_sqe+0x77a/0x47d3 fs/io_uring.c:7223
 io_submit_sqes+0x25d/0x670 fs/io_uring.c:7329
 __do_sys_io_uring_enter fs/io_uring.c:10043 [inline]
 __se_sys_io_uring_enter+0x212/0xb00 fs/io_uring.c:9985
 __x64_sys_io_uring_enter+0x74/0x80 fs/io_uring.c:9985
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x01 -> 0x00

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/07 14:10 upstream b5013d084e03 4c1be0be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in get_cpu_iowait_time_us / tick_nohz_idle_exit
* Struck through repros no longer work on HEAD.