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]
Date:	Tue, 13 Feb 2007 18:20:14 +0100
From:	Andi Kleen <ak@...e.de>
To:	Christoph Lameter <clameter@....com>
Cc:	Arjan van de Ven <arjan@...radead.org>,
	Vojtech Pavlik <vojtech@...e.cz>, Jiri Bohac <jbohac@...e.cz>,
	linux-kernel@...r.kernel.org, ssouhlal@...ebsd.org,
	tglx@...utronix.de, johnstul@...ibm.com, zippel@...ux-m68k.org,
	andrea@...e.de
Subject: Re: [patch 4/9] Remove the TSC synchronization on SMP machines

On Tuesday 13 February 2007 18:09, Christoph Lameter wrote:
> On Tue, 13 Feb 2007, Arjan van de Ven wrote:
> 
> > no quite the opposite. gettimeofday() currently is NOT monotonic
> > unfortunately. With this patchseries it actually has a better chance of
> > becoming that...
> 
> It is monotonic on IA64 at least and we have found that subtle application 
> bugs occur if it is not. IA64 (and other arches using time interpolation) 
> can insure the monotoneity of time sources. Are you sure about this? I 
> wonder why the new time of day subsystem does not have that?

Just to avoid spreading misinformation: modulo some new broken hardware
(which we always try to work around when found) i386/x86-64 gettimeofday
is monotonic.  AFAIK on the currently known hardware it should be generally
ok.

However ntpd can always screw you up, but that's inherent in the design.

Safer in general is to use clock_gettime(CLOCK_MONOTONIC, ...) which guarantees
no interference from ntpd

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ