lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171018210828.GA3581@amd>
Date:   Wed, 18 Oct 2017 23:08:28 +0200
From:   Pavel Machek <pavel@....cz>
To:     Alan Cox <gnomes@...rguk.ukuu.org.uk>
Cc:     Gabriel Beddingfield <gabe@...tlabs.com>,
        LKML <linux-kernel@...r.kernel.org>,
        Stephen Boyd <sboyd@...eaurora.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        John Stultz <john.stultz@...aro.org>,
        Alessandro Zummo <a.zummo@...ertech.it>,
        Alexandre Belloni <alexandre.belloni@...e-electrons.com>,
        linux-rtc@...r.kernel.org, Guy Erb <guy@...tlabs.com>,
        hharte@...tlabs.com
Subject: Re: Introduce clock precision to help time travelers was Re: Extreme
 time jitter with suspend/resume cycles

On Wed 2017-10-18 21:34:49, Alan Cox wrote:
> > And even the boring ones have pretty imprecise RTCs... For example Nokia N9.
> > I only power it up from time to time, I believe it drifts something like
> > minute per month... For normal use with SIM card, it can probably correct
> > from GSM network if you happen to have a cell phone signal, but...
> > 
> > More interesting machines... Old thinkpad is running without CMOS battery.
> > ARM OLPC has _three_ RTCs, but not a single working one. N900 has working
> > RTC but no or dead backup battery. On these, RTC driver probably knows
> > time is not valid, but feeds the garbage into the system time, anyway. Ouch.
> > Neither Sharp Zaurus SL-5500 nor C-3000 had battery backup on RTC...
> 
> Not a new problem, RTC's used to cost lots of money 8)
> 
> Most early Unixen set the clock at boot from the superblock timestamp of
> the root fs, some with RTC's also used to scream at you if the superblock
> stamp was too far head of current time.That doesn't quite work with
> initrd but you can do the same in userspace on Linux so you'll at least
> get 'when I last booted it' and because it's always moving forward lots
> of other messes don't happen.

Yeah, that's what "swclock" module of init system does. Someone solved
that one for me. But... that's not good enough. In particular, I'd
like time not to be displayed when "swclock" was used. Nokia 6230
could do it, so linux should be able to do it, too.

It seems kernel should pass accurancy info, or at least "this time is
probably off by hours at least" from gettimeofday() and similar
syscalls...


									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Download attachment "signature.asc" of type "application/pgp-signature" (182 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ