KCSAN: data-race in ktime_get / timekeeping_update_from_shadow

Status: moderation: reported on 2026/03/05 06:20
Subsystems: kernel
Labels: prio:low
[Documentation on labels]
Reported-by: syzbot+e0fb27f89217ad8c3486@syzkaller.appspotmail.com
First crash: 193d, last: 1d10h
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision
731f8d51 assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ✅ PeripheralTrigger: ✅ RemoteTrigger: ✅ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ✅ VMHostTrigger: ✅ KCSAN: data-race in ktime_get / timekeeping_update_from_shadow 2026/05/19 22:56 2026/05/19 22:56 2026/05/19 23:29 1d9407ad
92b8d583 assessment-kcsan Benign: ✅ Confident: ✅ KCSAN: data-race in ktime_get / timekeeping_update_from_shadow 2026/03/05 06:19 2026/03/05 06:19 2026/03/05 06:22 305c0ec5

Sample crash report:
EXT4-fs error (device loop4): ext4_find_dest_de:2052: inode #2: block 13: comm syz.4.131: bad entry in directory: directory entry overrun - offset=108, inode=4294901777, rec_len=1024, size=1024 fake=0
==================================================================
BUG: KCSAN: data-race in ktime_get / timekeeping_update_from_shadow

write to 0xffffffff895f2508 of 320 bytes by interrupt on cpu 0:
 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:2067 [inline]
 __hrtimer_run_queues+0x1f8/0x510 kernel/time/hrtimer.c:2124
 hrtimer_interrupt+0x27b/0x860 kernel/time/hrtimer.c:2243
 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
 kcsan_setup_watchpoint+0x42b/0x4a0 kernel/kcsan/core.c:713
 page_counter_try_charge+0x7d/0x310 mm/page_counter.c:143
 try_charge_memcg+0x2b8/0xae0 mm/memcontrol.c:2671
 charge_memcg+0x16f/0x220 mm/memcontrol.c:5210
 __mem_cgroup_charge+0x28/0xb0 mm/memcontrol.c:5227
 mem_cgroup_charge include/linux/memcontrol.h:662 [inline]
 shmem_alloc_and_add_folio mm/shmem.c:1985 [inline]
 shmem_get_folio_gfp+0x49f/0xd90 mm/shmem.c:2528
 shmem_fault+0xf6/0x250 mm/shmem.c:2729
 __do_fault mm/memory.c:5565 [inline]
 do_read_fault mm/memory.c:6000 [inline]
 do_fault mm/memory.c:6134 [inline]
 do_pte_missing mm/memory.c:4700 [inline]
 handle_pte_fault mm/memory.c:6558 [inline]
 __handle_mm_fault mm/memory.c:6707 [inline]
 handle_mm_fault+0x2310/0x3bb0 mm/memory.c:6876
 faultin_page mm/gup.c:1126 [inline]
 __get_user_pages+0x12e9/0x1eb0 mm/gup.c:1428
 populate_vma_page_range mm/gup.c:1860 [inline]
 __mm_populate+0x242/0x390 mm/gup.c:1963
 mm_populate include/linux/mm.h:4288 [inline]
 vm_mmap_pgoff+0x23b/0x2d0 mm/util.c:586
 ksys_mmap_pgoff+0xc1/0x310 mm/mmap.c:619
 x64_sys_call+0x23b3/0x2550 arch/x86/include/generated/asm/syscalls_64.h:10
 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

read to 0xffffffff895f2518 of 8 bytes by task 4134 on cpu 1:
 timekeeping_cycles_to_ns kernel/time/timekeeping.c:459 [inline]
 timekeeping_get_ns kernel/time/timekeeping.c:482 [inline]
 ktime_get+0xcf/0x240 kernel/time/timekeeping.c:1004
 ktime_get_ns include/linux/timekeeping.h:174 [inline]
 blk_time_get_ns block/blk.h:723 [inline]
 blk_account_io_start+0x18d/0x450 block/blk-mq.c:1100
 blk_mq_bio_to_request block/blk-mq.c:2676 [inline]
 blk_mq_submit_bio+0xba2/0x1120 block/blk-mq.c:3182
 __submit_bio+0x54/0x3d0 block/blk-core.c:673
 __submit_bio_noacct_mq block/blk-core.c:756 [inline]
 submit_bio_noacct_nocheck+0x153/0x620 block/blk-core.c:790
 submit_bio_noacct+0x760/0x980 block/blk-core.c:925
 submit_bio+0x2a4/0x2c0 block/blk-core.c:966
 blk_crypto_submit_bio include/linux/blk-crypto.h:212 [inline]
 __bh_submit+0x33f/0x380 fs/buffer.c:1132
 bh_submit+0x26/0x30 fs/buffer.c:1146
 ext4_commit_super+0x19c/0x260 fs/ext4/super.c:6357
 ext4_handle_error+0x46f/0x570 fs/ext4/super.c:725
 __ext4_error_inode+0x1af/0x3a0 fs/ext4/super.c:871
 __ext4_check_dir_entry+0x527/0x540 fs/ext4/dir.c:121
 ext4_find_dest_de+0x109/0x300 fs/ext4/namei.c:2051
 add_dirent_to_buf+0x14a/0x340 fs/ext4/namei.c:2123
 __ext4_add_entry+0x343/0x1f10 fs/ext4/namei.c:2425
 ext4_add_entry fs/ext4/namei.c:2469 [inline]
 ext4_mkdir+0x371/0x790 fs/ext4/namei.c:3029
 vfs_mkdir+0x291/0x3e0 fs/namei.c:5410
 filename_mkdirat+0x138/0x300 fs/namei.c:5443
 __do_sys_mkdirat fs/namei.c:5464 [inline]
 __se_sys_mkdirat+0x32/0xf0 fs/namei.c:5461
 __x64_sys_mkdirat+0x43/0x50 fs/namei.c:5461
 x64_sys_call+0x368/0x2550 arch/x86/include/generated/asm/syscalls_64.h:259
 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: 0x00000021fd20f447 -> 0x00000021fe70a5b4

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

Crashes (34):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/12 21:45 upstream 5225b8eec4c9 70a60e12 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/09/11 16:18 upstream 08df884136f1 b6a5eeb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/09/05 21:20 upstream 0d9ff90a5422 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/08/30 03:40 upstream 08dbfad3f504 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/08/23 18:10 upstream 2709dd5ae32f 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/08/18 02:55 upstream ff68e5f557f6 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/08/12 23:53 upstream 3d6d817622b0 359b2492 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/08/10 20:06 upstream d58772d8520c 508909ea .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/08/03 06:34 upstream bd1dde877520 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/08/02 06:11 upstream 2d2338c93da7 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/07/27 15:45 upstream f5098b6bae76 aae9036b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/07/15 15:33 upstream 58717b2a1365 a4ed0f4f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/07/11 13:15 upstream 61c03dfde854 d78ea535 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/06/29 23:40 upstream dc59e4fea9d8 6a0c72dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/06/24 10:27 upstream 558ef39aeb9a 042555ff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/06/22 21:27 upstream 1dc18801be29 5a630be6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/06/18 09:58 upstream e771677c937d a776b0d0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/06/17 16:03 upstream 66affa37cfac b62b3ded .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/06/13 19:41 upstream 062871f1371b 1d2f3589 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/06/13 02:37 upstream 1dadb7e7eb5a 1d2f3589 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/05/26 19:18 upstream d60ec36cab33 a3e47276 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/05/23 09:56 upstream 79bd2dded182 c69befb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/05/17 23:25 upstream e5d505e3664b de5aae85 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/05/15 14:58 upstream 70eda68668d1 9cd3beaa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/05/11 22:36 upstream 5d6919055dec d168f260 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/05/07 22:55 upstream 8ab992f815d6 cbf9e0fc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/05/02 10:35 upstream f1a5e78a55eb a0d91488 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/04/27 14:42 upstream 254f49634ee1 0f700595 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/04/18 09:54 upstream 8541d8f725c6 303e2802 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/04/15 05:09 upstream 508fed679541 e2e976a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/03/25 13:49 upstream bbeb83d3182a 8ee77f7d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/03/20 12:25 upstream 8a30aeb0d1b4 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/03/08 01:28 upstream 4ae12d8bd9a8 5cb44a80 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
2026/03/05 06:19 upstream ecc64d2dc9ff a9fe5c9e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ktime_get / timekeeping_update_from_shadow
* Struck through repros no longer work on HEAD.