The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: syzbot <syzbot+72789cd1697965e714ca@syzkaller.appspotmail.com>
To: jstultz@google.com, linux-kernel@vger.kernel.org,
	sboyd@kernel.org,  syzkaller-bugs@googlegroups.com,
	tglx@kernel.org
Subject: [syzbot] [kernel?] KCSAN: data-race in ktime_get_real_seconds / timekeeping_update_from_shadow (4)
Date: Mon, 18 May 2026 05:55:25 -0700	[thread overview]
Message-ID: <6a0b0c3d.050a0220.2251c6.000e.GAE@google.com> (raw)

Hello,

syzbot found the following issue on:

HEAD commit:    5200f5f493f7 Linux 7.1-rc4
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=11cba536580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=2e40c0f41e01837e
dashboard link: https://syzkaller.appspot.com/bug?extid=72789cd1697965e714ca
compiler:       Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/f68e006a0a6d/disk-5200f5f4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/0eab03c0765f/vmlinux-5200f5f4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/9a6094a6b4b6/bzImage-5200f5f4.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+72789cd1697965e714ca@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in ktime_get_real_seconds / timekeeping_update_from_shadow

write to 0xffffffff893a8488 of 304 bytes by task 5194 on cpu 0:
 timekeeping_update_from_shadow+0x40d/0x440 kernel/time/timekeeping.c:829
 __timekeeping_inject_offset+0x45c/0x490 kernel/time/timekeeping.c:1661
 __do_adjtimex kernel/time/timekeeping.c:2881 [inline]
 do_adjtimex+0x390/0x7f0 kernel/time/timekeeping.c:2914
 posix_clock_realtime_adj+0x15/0x20 kernel/time/posix-timers.c:207
 do_clock_adjtime kernel/time/posix-timers.c:1154 [inline]
 __do_sys_clock_adjtime kernel/time/posix-timers.c:1166 [inline]
 __se_sys_clock_adjtime kernel/time/posix-timers.c:1157 [inline]
 __x64_sys_clock_adjtime+0x145/0x1d0 kernel/time/posix-timers.c:1157
 x64_sys_call+0x2794/0x3020 arch/x86/include/generated/asm/syscalls_64.h:306
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x12c/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffffffff893a84c0 of 8 bytes by task 3377 on cpu 1:
 ktime_get_real_seconds+0x15/0x30 kernel/time/timekeeping.c:1156
 sched_sync_hw_clock kernel/time/ntp.c:508 [inline]
 sync_hw_clock+0x2a8/0x380 kernel/time/ntp.c:665
 process_one_work kernel/workqueue.c:3314 [inline]
 process_scheduled_works+0x4f0/0x9c0 kernel/workqueue.c:3397
 worker_thread+0x58a/0x780 kernel/workqueue.c:3478
 kthread+0x22a/0x280 kernel/kthread.c:436
 ret_from_fork+0x146/0x330 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x0000000077359b00 -> 0x0000000077359c00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3377 Comm: kworker/1:3 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Workqueue: events_freezable_pwr_efficient sync_hw_clock
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

                 reply	other threads:[~2026-05-18 12:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6a0b0c3d.050a0220.2251c6.000e.GAE@google.com \
    --to=syzbot+72789cd1697965e714ca@syzkaller.appspotmail.com \
    --cc=jstultz@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sboyd@kernel.org \
    --cc=syzkaller-bugs@googlegroups.com \
    --cc=tglx@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox