Fast gettimeofday(2) and clock_gettime(2)

Warner Losh imp at bsdimp.com
Wed Jun 6 19:50:07 UTC 2012


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




More information about the freebsd-arch mailing list