Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jun 2012 13:45:05 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, freebsd-arch@FreeBSD.org
Subject:   Re: Fast gettimeofday(2) and clock_gettime(2)
Message-ID:  <78461459-8D90-4AD1-9983-3522E4DA5816@bsdimp.com>
In-Reply-To: <201206061423.53179.jhb@freebsd.org>
References:  <20120606165115.GQ85127@deviant.kiev.zoral.com.ua> <201206061423.53179.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jun 6, 2012, at 12:23 PM, John Baldwin wrote:
> 2) You read tk->tk_boottime without the tk_current protection in your
>   non-uptime routines.  This is racey as the kernel alters the
>   boottime when it skews time for large adjustments from ntp, etc.

One of the 'etc' is leap seconds.

Warner





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?78461459-8D90-4AD1-9983-3522E4DA5816>