syzbot


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

Status: auto-obsoleted due to no activity on 2022/11/20 13:25
Subsystems: kernel
[Documentation on labels]
First crash: 722d, last: 639d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (11) kernel 6 16d 35d 0/27 moderation: reported on 2024/06/11 09:00
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (9) kernel 7 127d 182d 0/27 auto-obsoleted due to no activity on 2024/04/14 23:48
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (6) kernel 19 360d 545d 0/27 auto-obsoleted due to no activity on 2023/08/26 13:01
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu kernel 1 1579d 1579d 0/27 auto-closed as invalid on 2020/05/29 16:43
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (2) kernel 1 1412d 1412d 0/27 auto-closed as invalid on 2020/10/08 05:09
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (3) kernel 1 982d 982d 0/27 auto-closed as invalid on 2021/12/12 15:07
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (10) kernel 2 79d 81d 0/27 auto-obsoleted due to no activity on 2024/06/01 18:17
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (7) kernel 3 314d 324d 0/27 auto-obsoleted due to no activity on 2023/10/11 12:54
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (4) kernel 1 945d 945d 0/27 auto-closed as invalid on 2022/01/17 18:45
upstream KCSAN: data-race in hrtimer_reprogram / print_cpu (8) kernel 1 237d 217d 0/27 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 0xffff888237d1db20 of 8 bytes by interrupt on cpu 1:
 __hrtimer_reprogram kernel/time/hrtimer.c:659 [inline]
 hrtimer_reprogram+0x1de/0x250 kernel/time/hrtimer.c:866
 hrtimer_update_softirq_timer kernel/time/hrtimer.c:1209 [inline]
 hrtimer_run_softirq+0x44c/0x480 kernel/time/hrtimer.c:1769
 __do_softirq+0xf2/0x2c7 kernel/softirq.c:571
 run_ksoftirqd+0x1f/0x30 kernel/softirq.c:934
 smpboot_thread_fn+0x308/0x4a0 kernel/smpboot.c:164
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306

read to 0xffff888237d1db20 of 8 bytes by task 18097 on cpu 0:
 print_cpu+0x31e/0x680 kernel/time/timer_list.c:133
 timer_list_show+0x114/0x180 kernel/time/timer_list.c:291
 seq_read_iter+0x2c3/0x8e0 fs/seq_file.c:230
 proc_reg_read_iter+0xfa/0x170 fs/proc/inode.c:305
 call_read_iter include/linux/fs.h:2185 [inline]
 generic_file_splice_read+0xde/0x2b0 fs/splice.c:309
 do_splice_to fs/splice.c:793 [inline]
 splice_direct_to_actor+0x26c/0x620 fs/splice.c:865
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000001ee8c941daa -> 0x000001ee8c5e51f2

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 18097 Comm: syz-executor.5 Not tainted 6.0.0-syzkaller-12196-g1501278bb7ba-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/16 13:17 upstream 1501278bb7ba 67cb024c .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
2022/10/16 05:26 upstream 19d17ab7c68b 67cb024c .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
2022/09/25 17:18 upstream 1a61b828566f 0042f2b4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
2022/09/12 23:17 upstream e839a756012b f371ed7e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
2022/08/23 03:48 upstream 072e51356cd5 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
2022/08/16 21:06 upstream 7ebfc85e2cd7 9e4b39c2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
2022/08/16 02:09 upstream 7ebfc85e2cd7 7a7cb304 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
2022/08/06 14:37 upstream 6614a3c3164a 88e3a122 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
2022/07/31 07:08 upstream 6a010258447d fef302b1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
2022/07/25 09:06 upstream e0dccc3b76fb 664c519c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_reprogram / print_cpu
2022/07/25 08:24 upstream e0dccc3b76fb 22343af4 .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.