KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow

Status: moderation: reported on 2026/05/10 01:50
Subsystems: kernel
Labels: prio:low
[Documentation on labels]
Reported-by: syzbot+f7dcf4d975188a9ddca4@syzkaller.appspotmail.com
First crash: 205d, last: 6d19h
▶ ▼ ✨ AI Jobs (4)
ID Workflow Result Correct Bug Created Started Finished Revision
cdb43c88 repro-c 💥 KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow 2026/10/04 10:26 2026/10/04 10:26 2026/10/04 12:09 57bbd979
4de21149 repro-c 💥 KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow 2026/10/02 08:16 2026/10/02 08:16 2026/10/02 09:33 6d32eb1f
eba7887a assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ✅ PeripheralTrigger: ✅ RemoteTrigger: ✅ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ✅ VMHostTrigger: ✅ ❓ KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow 2026/05/15 19:26 2026/05/15 19:26 2026/05/15 19:28 efdaf0f9
9325fa29 assessment-kcsan Benign: ✅ ❓ KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow 2026/05/10 03:27 2026/05/10 03:27 2026/05/10 03:58 29233ece

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

write to 0xffffffff8988e948 of 320 bytes by interrupt on cpu 0:
 timekeeping_update_from_shadow+0x46e/0x4b0 kernel/time/timekeeping.c:869
 __timekeeping_advance+0xb36/0xcf0 kernel/time/timekeeping.c:2670
 timekeeping_advance kernel/time/timekeeping.c:2678 [inline]
 update_wall_time+0x21/0x50 kernel/time/timekeeping.c:2688
 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/0x3d0 kernel/time/tick-sched.c:310
 __run_hrtimer kernel/time/hrtimer.c:2079 [inline]
 __hrtimer_run_queues+0x1f8/0x540 kernel/time/hrtimer.c:2136
 hrtimer_interrupt+0x27b/0x870 kernel/time/hrtimer.c:2255
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1051 [inline]
 __sysvec_apic_timer_interrupt+0x5f/0x1f0 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
 submit_bio_noacct_nocheck+0x57e/0x650 block/blk-core.c:793
 submit_bio_noacct+0x810/0xa80 block/blk-core.c:927
 submit_bio+0x2a4/0x2c0 block/blk-core.c:968
 blk_crypto_submit_bio include/linux/blk-crypto.h:212 [inline]
 __bh_submit+0x427/0x460 fs/buffer.c:1148
 bh_submit+0x26/0x30 fs/buffer.c:1162
 __ext4_read_bh fs/ext4/super.c:192 [inline]
 ext4_read_bh_nowait+0x163/0x180 fs/ext4/super.c:204
 ext4_sb_breadahead_unmovable fs/ext4/super.c:296 [inline]
 ext4_group_desc_init+0x659/0x16b0 fs/ext4/super.c:4988
 __ext4_fill_super fs/ext4/super.c:5507 [inline]
 ext4_fill_super+0x1ed3/0x3720 fs/ext4/super.c:5899
 get_tree_bdev_flags+0x297/0x300 fs/super.c:1821
 get_tree_bdev+0x1f/0x30 fs/super.c:1844
 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5931
 vfs_get_tree+0x57/0x1d0 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount+0x288/0x730 fs/namespace.c:3986
 path_mount+0x4ad/0xba0 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount+0x28c/0x2e0 fs/namespace.c:4540
 __x64_sys_mount+0x67/0x80 fs/namespace.c:4540
 x64_sys_call+0xc3b/0x2550 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffffffff8988e950 of 8 bytes by task 8772 on cpu 1:
 timekeeping_cycles_to_ns kernel/time/timekeeping.c:460 [inline]
 timekeeping_get_ns kernel/time/timekeeping.c:483 [inline]
 ktime_get_with_offset+0xda/0x260 kernel/time/timekeeping.c:1051
 ktime_get_real include/linux/timekeeping.h:87 [inline]
 __net_timestamp include/linux/skbuff.h:4477 [inline]
 __skb_tstamp_tx+0x5e3/0x710 net/core/skbuff.c:5878
 __dev_queue_xmit+0x159b/0x2020 net/core/dev.c:5003
 dev_queue_xmit include/linux/netdevice.h:3485 [inline]
 neigh_hh_output include/net/neighbour.h:538 [inline]
 neigh_output include/net/neighbour.h:552 [inline]
 ip_finish_output2+0x845/0x920 net/ipv4/ip_output.c:236
 __ip_finish_output net/ipv4/ip_output.c:-1 [inline]
 ip_finish_output+0x112/0x290 net/ipv4/ip_output.c:324
 NF_HOOK_COND include/linux/netfilter.h:314 [inline]
 ip_mc_output+0x25f/0x370 net/ipv4/ip_output.c:421
 dst_output include/net/dst.h:471 [inline]
 ip_local_out net/ipv4/ip_output.c:131 [inline]
 ip_send_skb+0x139/0x140 net/ipv4/ip_output.c:1528
 udp_send_skb+0x542/0x7d0 net/ipv4/udp.c:1184
 udp_sendmsg+0x135b/0x1490 net/ipv4/udp.c:1466
 inet_sendmsg+0xac/0xd0 net/ipv4/af_inet.c:866
 sock_sendmsg_nosec net/socket.c:801 [inline]
 __sock_sendmsg net/socket.c:818 [inline]
 ____sys_sendmsg+0x4a9/0x550 net/socket.c:2713
 ___sys_sendmsg+0x1c8/0x220 net/socket.c:2770
 __sys_sendmmsg+0x1a0/0x310 net/socket.c:2859
 __do_sys_sendmmsg net/socket.c:2886 [inline]
 __se_sys_sendmmsg net/socket.c:2883 [inline]
 __x64_sys_sendmmsg+0x57/0x70 net/socket.c:2883
 x64_sys_call+0x1fb4/0x2550 arch/x86/include/generated/asm/syscalls_64.h:308
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 8772 Comm: syz.8.1249 Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/24 08:40 upstream 8d7fe9885c62 fab64d89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/11/14 10:38 upstream 97d73c825122 819ebe34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/10/14 03:26 upstream ca3e345926b0 7321cd29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/09/27 19:58 upstream efb44d93a620 a3c7249d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/08/26 16:01 upstream 73ae59e97596 a2b77b9e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/08/24 07:36 upstream 388b607d107c 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/08/08 18:14 upstream a7c7074b58d2 5d63f80b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/07/30 14:39 upstream 11028ab62899 2377cd3d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/07/24 03:56 upstream d326f83e819c 544adce9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/07/20 10:07 upstream 82a47586c0b9 72524a66 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/06/28 01:22 upstream 780d569e6c4b fb92f11c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/06/16 14:57 upstream b1cbabe84ca1 a3998659 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/06/05 21:27 upstream ddd664bbff63 48b6c3fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/05/16 23:11 upstream 6916d5703ddf de5aae85 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/05/10 11:49 upstream 1bfaee9d3351 29233ece .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
2026/05/10 01:49 upstream e92b2872d0b1 29233ece .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get_with_offset / timekeeping_update_from_shadow
* Struck through repros no longer work on HEAD.