KCSAN: data-race in ktime_get_coarse_ts64 / timekeeping_update_from_shadow (3)

Status: moderation: reported on 2026/09/14 00:48
Subsystems: kernel
Labels: race:benign
[Documentation on labels]
Reported-by: syzbot+622e28d4ab9d61f53fa0@syzkaller.appspotmail.com
First crash: 4h16m, last: 4h16m
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
89f5aff2 assessment-kcsan Benign: ✅ KCSAN: data-race in ktime_get_coarse_ts64 / timekeeping_update_from_shadow (3) 2026/09/14 00:49 2026/09/14 00:49 2026/09/14 01:24 70a60e12
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ktime_get_coarse_ts64 / timekeeping_update_from_shadow kernel prio:low 6 1 145d 145d 0/29 auto-obsoleted due to no activity on 2026/06/16 22:24
upstream KCSAN: data-race in ktime_get_coarse_ts64 / timekeeping_update_from_shadow (2) race:benign prio:high kernel 6 1 72d 72d 0/29 auto-obsoleted due to no activity on 2026/08/28 06:25

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ktime_get_coarse_ts64 / timekeeping_update_from_shadow

write to 0xffffffff895f4508 of 320 bytes by interrupt on cpu 1:
 timekeeping_update_from_shadow+0x448/0x480 kernel/time/timekeeping.c:866
 __timekeeping_advance+0xb36/0xcf0 kernel/time/timekeeping.c:2663
 timekeeping_advance kernel/time/timekeeping.c:2671 [inline]
 update_wall_time+0x21/0x50 kernel/time/timekeeping.c:2681
 tick_do_update_jiffies64+0x169/0x1c0 kernel/time/tick-sched.c:149
 tick_sched_do_timer kernel/time/tick-sched.c:253 [inline]
 tick_nohz_handler+0x88/0x380 kernel/time/tick-sched.c:310
 __run_hrtimer kernel/time/hrtimer.c:2074 [inline]
 __hrtimer_run_queues+0x1f8/0x510 kernel/time/hrtimer.c:2131
 hrtimer_interrupt+0x27b/0x860 kernel/time/hrtimer.c:2250
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1051 [inline]
 __sysvec_apic_timer_interrupt+0x5f/0x1c0 arch/x86/kernel/apic/apic.c:1068
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
 sysvec_apic_timer_interrupt+0x6f/0x80 arch/x86/kernel/apic/apic.c:1062
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
 native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline]
 pv_native_safe_halt+0xf/0x20 arch/x86/kernel/paravirt.c:63
 arch_safe_halt arch/x86/kernel/process.c:767 [inline]
 default_idle+0x9/0x20 arch/x86/kernel/process.c:768
 default_idle_call+0x3b/0x60 kernel/sched/idle.c:122
 cpuidle_idle_call kernel/sched/idle.c:199 [inline]
 do_idle+0x183/0x2d0 kernel/sched/idle.c:355
 cpu_startup_entry+0x24/0x30 kernel/sched/idle.c:454
 start_secondary+0x95/0xa0 arch/x86/kernel/smpboot.c:312
 common_startup_64+0x13e/0x157

read to 0xffffffff895f4578 of 4 bytes by task 11610 on cpu 0:
 tk_xtime_coarse kernel/time/timekeeping.c:217 [inline]
 ktime_get_coarse_ts64+0x6d/0x120 kernel/time/timekeeping.c:2816
 ktime_get_coarse include/linux/timekeeping.h:132 [inline]
 ktime_get_coarse_ns include/linux/timekeeping.h:138 [inline]
 ____bpf_ktime_get_coarse_ns kernel/bpf/helpers.c:204 [inline]
 bpf_ktime_get_coarse_ns+0x39/0xb0 kernel/bpf/helpers.c:202
 bpf_prog_ce3dfd7f9330a559+0x1e/0x29
 bpf_dispatcher_nop_func include/linux/bpf.h:1452 [inline]
 __bpf_prog_run include/linux/filter.h:779 [inline]
 bpf_prog_run include/linux/filter.h:786 [inline]
 bpf_prog_run_pin_on_cpu include/linux/filter.h:803 [inline]
 bpf_flow_dissect+0x151/0x340 net/core/flow_dissector.c:1024
 bpf_prog_test_run_flow_dissector+0x25d/0x360 net/bpf/test_run.c:1558
 bpf_prog_test_run+0x208/0x340 kernel/bpf/syscall.c:4804
 __sys_bpf+0x8da/0xc30 kernel/bpf/syscall.c:6385
 __do_sys_bpf kernel/bpf/syscall.c:6486 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:6483 [inline]
 __x64_sys_bpf+0x69/0x80 kernel/bpf/syscall.c:6483
 x64_sys_call+0xf26/0x2550 arch/x86/include/generated/asm/syscalls_64.h:322
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x112/0x360 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x042c1d91 -> 0x04c4b411

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 11610 Comm: syz.5.2206 Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/14 00:47 upstream d681d7ef617e 70a60e12 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_coarse_ts64 / timekeeping_update_from_shadow
* Struck through repros no longer work on HEAD.