Re: PROBLEM: monotonic clock going backwards on ppc64

2019-03-01 Thread Thomas Gleixner
On Sat, 2 Mar 2019, Michael Ellerman wrote: > > The problem seems to be in vDSO code in > > arch/powerpc/kernel/vdso64/gettimeofday.S. > > You're right, the wall-to-monotonic offset (wtom_clock_sec) is a signed > 32-bit value, so that seems like it's going to have problems. > > If I do `date -s

Re: PROBLEM: monotonic clock going backwards on ppc64

2019-03-01 Thread Jakub Drnec
Hi, >> Decreasing the realtime clock across the y2k38 threshold is one reliable way >> to reproduce. >> Allegedly this can also happen just by running ntpd, I have not managed to >> reproduce that other >> than booting with rtc at >2038 and then running ntp. > Isn't it the expected behavior. He

Re: PROBLEM: monotonic clock going backwards on ppc64

2019-03-01 Thread Michael Ellerman
Hi Jakub, [Cc += Timekeeping maintainers] "Jakub Drnec" writes: > Hi all, > > I think I observed a potential problem, is this the correct place to report > it? (CC me, not on list) > > [1.] One line summary: monotonic clock can be made to decrease on ppc64 > [2.] Full description: > Setting the

Re: PROBLEM: monotonic clock going backwards on ppc64

2019-02-28 Thread Daniel Axtens
Mathieu Malaterre writes: > On Tue, Feb 26, 2019 at 9:36 PM Jakub Drnec wrote: >> >> Hi all, >> >> I think I observed a potential problem, is this the correct place to report >> it? (CC me, not on list) >> >> [1.] One line summary: monotonic clock can be made to decrease on ppc64 >> [2.] Full d

Re: PROBLEM: monotonic clock going backwards on ppc64

2019-02-27 Thread Mathieu Malaterre
On Tue, Feb 26, 2019 at 9:36 PM Jakub Drnec wrote: > > Hi all, > > I think I observed a potential problem, is this the correct place to report > it? (CC me, not on list) > > [1.] One line summary: monotonic clock can be made to decrease on ppc64 > [2.] Full description: > Setting the realtime clo

Re: PROBLEM: monotonic clock going backwards on ppc64

2019-02-27 Thread Daniel Axtens
Hi, > I think I observed a potential problem, is this the correct place to report > it? (CC me, not on list) Yes > [1.] One line summary: monotonic clock can be made to decrease on ppc64 > [2.] Full description: > Setting the realtime clock can sometimes make the monotonic clock go back by > o

PROBLEM: monotonic clock going backwards on ppc64

2019-02-26 Thread Jakub Drnec
Hi all, I think I observed a potential problem, is this the correct place to report it? (CC me, not on list) [1.] One line summary: monotonic clock can be made to decrease on ppc64 [2.] Full description: Setting the realtime clock can sometimes make the monotonic clock go back by over a hundred