mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH TEST] timekeeping: Use data_race() and READ_ONCE() in ktime_get_real_seconds()⁠
       [not found] <CAGqVGMoSrog91Fdtx2qoQATFgXkzQdsQuK=wOcHhgnt8zEqOXQ@mail.gmail.com>
@ 2026-05-30 16:12 ` syzbot
  0 siblings, 0 replies; only message in thread
From: syzbot @ 2026-05-30 16:12 UTC (permalink / raw)
  To: dennismoshegov; +Cc: dennismoshegov, linux-kernel, syzkaller-bugs

> #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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-30 16:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAGqVGMoSrog91Fdtx2qoQATFgXkzQdsQuK=wOcHhgnt8zEqOXQ@mail.gmail.com>
2026-05-30 16:12 ` [PATCH TEST] timekeeping: Use data_race() and READ_ONCE() in ktime_get_real_seconds()⁠ syzbot

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®