syzbot


KCSAN: data-race in hrtimer_reprogram / print_cpu (3)

Status: auto-closed as invalid on 2021/12/12 15:07
Subsystems: kernel
[Documentation on labels]
First crash: 900d, last: 900d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (9) kernel 7 46d 101d 0/26 auto-obsoleted due to no activity on 2024/04/14 23:48
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (6) kernel 19 278d 463d 0/26 auto-obsoleted due to no activity on 2023/08/26 13:01
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu kernel 1 1497d 1497d 0/26 auto-closed as invalid on 2020/05/29 16:43
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (2) kernel 1 1330d 1330d 0/26 auto-closed as invalid on 2020/10/08 05:09
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (5) kernel 11 557d 640d 0/26 auto-obsoleted due to no activity on 2022/11/20 13:25
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (7) kernel 3 232d 242d 0/26 auto-obsoleted due to no activity on 2023/10/11 12:54
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (4) kernel 1 864d 864d 0/26 auto-closed as invalid on 2022/01/17 18:45
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (8) kernel 1 156d 136d 0/26 auto-obsoleted due to no activity on 2023/12/26 20:48

Sample crash report:
==================================================================
BUG: KCSAN: data-race in hrtimer_reprogram / print_cpu

write to 0xffff888237c1d960 of 8 bytes by task 25610 on cpu 0:
 __hrtimer_reprogram kernel/time/hrtimer.c:659 [inline]
 hrtimer_reprogram+0x1e2/0x250 kernel/time/hrtimer.c:866
 hrtimer_start_range_ns+0xf8/0x140 kernel/time/hrtimer.c:1299
 hrtimer_start_expires include/linux/hrtimer.h:432 [inline]
 hrtimer_sleeper_start_expires kernel/time/hrtimer.c:1965 [inline]
 do_nanosleep+0x97/0x3a0 kernel/time/hrtimer.c:2041
 hrtimer_nanosleep+0x10b/0x200 kernel/time/hrtimer.c:2097
 common_nsleep+0x69/0x80 kernel/time/posix-timers.c:1227
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1267 [inline]
 __se_sys_clock_nanosleep+0x1f1/0x220 kernel/time/posix-timers.c:1245
 __x64_sys_clock_nanosleep+0x51/0x60 kernel/time/posix-timers.c:1245
 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

read to 0xffff888237c1d960 of 8 bytes by task 25789 on cpu 1:
 print_cpu+0x32e/0x690 kernel/time/timer_list.c:133
 timer_list_show+0x114/0x180 kernel/time/timer_list.c:291
 traverse+0x150/0x3b0 fs/seq_file.c:111
 seq_read_iter+0x87b/0x930 fs/seq_file.c:195
 proc_reg_read_iter+0xfc/0x170 fs/proc/inode.c:300
 call_read_iter include/linux/fs.h:2156 [inline]
 do_iter_readv_writev+0x2fb/0x380 fs/read_write.c:723
 do_iter_read+0x192/0x5d0 fs/read_write.c:786
 vfs_readv fs/read_write.c:906 [inline]
 do_preadv+0x159/0x240 fs/read_write.c:998
 __do_sys_preadv fs/read_write.c:1048 [inline]
 __se_sys_preadv fs/read_write.c:1043 [inline]
 __x64_sys_preadv+0x54/0x60 fs/read_write.c:1043
 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: 0x0000001dd982de98 -> 0x0000001dd9783500

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25789 Comm: syz-executor.3 Tainted: G        W         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 15:05 upstream b5013d084e03 4c1be0be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
* Struck through repros no longer work on HEAD.