syzbot


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

Status: moderation: reported on 2025/08/20 21:15
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+3aa321f3515b213afed0@syzkaller.appspotmail.com
First crash: 47d, last: 28d
Similar bugs (13)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (11) kernel 6 6 464d 483d 0/29 auto-obsoleted due to no activity on 2024/08/04 04:55
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (9) kernel 6 7 575d 630d 0/29 auto-obsoleted due to no activity on 2024/04/14 23:48
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (13) kernel 6 1 193d 193d 0/29 auto-obsoleted due to no activity on 2025/05/23 00:02
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (6) kernel 6 19 808d 993d 0/29 auto-obsoleted due to no activity on 2023/08/26 13:01
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (12) kernel 6 5 258d 337d 0/29 auto-obsoleted due to no activity on 2025/03/19 14:48
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu kernel 6 1 2027d 2027d 0/29 auto-closed as invalid on 2020/05/29 16:43
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (2) kernel 6 1 1860d 1860d 0/29 auto-closed as invalid on 2020/10/08 05:09
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (5) kernel 6 11 1087d 1170d 0/29 auto-obsoleted due to no activity on 2022/11/20 13:25
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (3) kernel 6 1 1430d 1430d 0/29 auto-closed as invalid on 2021/12/12 15:07
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (10) kernel 6 2 528d 529d 0/29 auto-obsoleted due to no activity on 2024/06/01 18:17
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (7) kernel 6 3 762d 772d 0/29 auto-obsoleted due to no activity on 2023/10/11 12:54
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (4) kernel 6 1 1394d 1394d 0/29 auto-closed as invalid on 2022/01/17 18:45
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (8) kernel 6 1 685d 665d 0/29 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 0xffff888237d1b260 of 8 bytes by task 12777 on cpu 1:
 __hrtimer_reprogram kernel/time/hrtimer.c:663 [inline]
 hrtimer_reprogram+0x1a5/0x220 kernel/time/hrtimer.c:868
 hrtimer_start_range_ns+0x6b2/0x740 kernel/time/hrtimer.c:1330
 hrtimer_start_expires include/linux/hrtimer.h:277 [inline]
 hrtimer_sleeper_start_expires kernel/time/hrtimer.c:2023 [inline]
 do_nanosleep+0x79/0x330 kernel/time/hrtimer.c:2097
 hrtimer_nanosleep+0xdd/0x280 kernel/time/hrtimer.c:2147
 common_nsleep+0x62/0x80 kernel/time/posix-timers.c:1353
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1399 [inline]
 __se_sys_clock_nanosleep+0x21a/0x250 kernel/time/posix-timers.c:1376
 __x64_sys_clock_nanosleep+0x55/0x70 kernel/time/posix-timers.c:1376
 x64_sys_call+0x272d/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:231
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888237d1b260 of 8 bytes by task 12808 on cpu 0:
 print_cpu+0x30b/0x680 kernel/time/timer_list.c:133
 timer_list_show+0x107/0x170 kernel/time/timer_list.c:295
 seq_read_iter+0x62a/0x940 fs/seq_file.c:272
 proc_reg_read_iter+0x10d/0x180 fs/proc/inode.c:299
 copy_splice_read+0x43f/0x660 fs/splice.c:363
 do_splice_read fs/splice.c:982 [inline]
 splice_direct_to_actor+0x26c/0x680 fs/splice.c:1086
 do_splice_direct_actor fs/splice.c:1204 [inline]
 do_splice_direct+0xda/0x150 fs/splice.c:1230
 do_sendfile+0x380/0x650 fs/read_write.c:1370
 __do_sys_sendfile64 fs/read_write.c:1431 [inline]
 __se_sys_sendfile64 fs/read_write.c:1417 [inline]
 __x64_sys_sendfile64+0x105/0x150 fs/read_write.c:1417
 x64_sys_call+0x2bb0/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000001f3ab094e6 -> 0x0000001f3a79125e

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 12808 Comm: syz.2.1773 Not tainted syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/09 10:31 upstream f777d1112ee5 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
2025/09/05 02:50 upstream 08b06c30a445 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
2025/08/20 21:14 upstream b19a97d57c15 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
* Struck through repros no longer work on HEAD.