Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jun 2025 09:45:58 -0400
From:      Mark Johnston <markj@freebsd.org>
To:        Warner Losh <imp@freebsd.org>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: 7b7ba7857ce8 - main - Implement CLOCK_TAI
Message-ID:  <aFAgFvsBaSIx4NL_@nuc>
In-Reply-To: <202506121825.55CIPemP006355@gitrepo.freebsd.org>
References:  <202506121825.55CIPemP006355@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 12, 2025 at 06:25:40PM +0000, Warner Losh wrote:
> The branch main has been updated by imp:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=7b7ba7857ce8be0bf6ab905d936d8ba1363e4ec2
> 
> commit 7b7ba7857ce8be0bf6ab905d936d8ba1363e4ec2
> Author:     Nathan Whitehorn <nwhitehorn@FreeBSD.org>
> AuthorDate: 2025-06-12 17:52:30 +0000
> Commit:     Warner Losh <imp@FreeBSD.org>
> CommitDate: 2025-06-12 18:25:31 +0000
> 
>     Implement CLOCK_TAI
>     
>     Provide a clock through clock_gettime() that returns the current TAI
>     time (UTC without leap seconds) as a complement to CLOCK_REALTIME. This
>     provides compatibility with Linux, which also provides a CLOCK_TAI since
>     kernel 2.6.26, and this seems to be becoming the standard way to acquire
>     TAI time. Unlike Linux, this code will return EINVAL if the TAI offset
>     (set by ntpd, ptpd, etc.) is not known since it seems pathological for
>     CLOCK_TAI to silently give the wrong (UTC) time if the offset is not
>     known as it does on Linux.

kern_clock_nanosleep() asserts that kern_clock_gettime() never returns
an error, and this new case breaks that: https://syzkaller.appspot.com/bug?extid=e17e46b1f0b65027b005



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aFAgFvsBaSIx4NL_>