From: syzbot <syzbot+72789cd1697965e714ca@syzkaller.appspotmail.com>
To: dennismoshegov@gmail.com
Cc: dennismoshegov@gmail.com, linux-kernel@vger.kernel.org,
syzkaller-bugs@googlegroups.com
Subject: Re: [PATCH TEST] timekeeping: Use data_race() and READ_ONCE() in ktime_get_real_seconds()
Date: Sat, 30 May 2026 09:12:22 -0700 [thread overview]
Message-ID: <6a1b0c66.90e69d94.13836c.0005.GAE@google.com> (raw)
In-Reply-To: <CAGqVGMoSrog91Fdtx2qoQATFgXkzQdsQuK=wOcHhgnt8zEqOXQ@mail.gmail.com>
> #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
This crash does not have a reproducer. I cannot test it.
> master
>
> diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
> index 4fd3c70c1..b2e5a87da 100644
> --- a/kernel/time/timekeeping.c
> +++ b/kernel/time/timekeeping.c
> @@ -1153,7 +1153,7 @@ time64_t ktime_get_real_seconds(void)
> time64_t ktime_get_real_seconds(void)
> {
> #if BITS_PER_LONG == 64
> - return tk_core.timekeeper.xtime_sec;
> + return data_race(READ_ONCE(tk_core.timekeeper.xtime_sec));
> #else
> unsigned int seq;
> time64_t seconds;
parent reply other threads:[~2026-05-30 16:12 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <CAGqVGMoSrog91Fdtx2qoQATFgXkzQdsQuK=wOcHhgnt8zEqOXQ@mail.gmail.com>]
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=6a1b0c66.90e69d94.13836c.0005.GAE@google.com \
--to=syzbot+72789cd1697965e714ca@syzkaller.appspotmail.com \
--cc=dennismoshegov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzkaller-bugs@googlegroups.com \
/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
all inboxes | Powered by JetHome®