<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/compat/linux/linux_time.c, branch release/13.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2022-06-17T19:35:41Z</updated>
<entry>
<title>linux(4): Return EINVAL when the clockid has invalid bits are set</title>
<updated>2022-06-17T19:35:41Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-05-31T08:46:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8cbf694e680835667db80f81a5d4103e5174de35'/>
<id>urn:sha1:8cbf694e680835667db80f81a5d4103e5174de35</id>
<content type='text'>
Linux forbids PERTHREAD bit set for CLOCKFD clock.

MFC after:		2 weeks

(cherry picked from commit 539fadb493d34e6607f7492f018365bdc2abc23a)
</content>
</entry>
<entry>
<title>linux(4): Return ENOTSUP for unsupported clockid</title>
<updated>2022-06-17T19:35:41Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-05-31T08:43:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ee3efd634115cb25a9433f92e0397be5789b2ca4'/>
<id>urn:sha1:ee3efd634115cb25a9433f92e0397be5789b2ca4</id>
<content type='text'>
It's much better from the user perspective to get a sane error code.

MFC after:		2 weeks

(cherry picked from commit 452f4636c3ba1f51f2f549ccc31fd4177254fb6d)
</content>
</entry>
<entry>
<title>linux(4): Add a helper intended for copying timespec's from the userspace.</title>
<updated>2022-06-17T19:34:59Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-05-08T13:16:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=573a0f3e6830381f3bba40559e14f9c369cbfc2f'/>
<id>urn:sha1:573a0f3e6830381f3bba40559e14f9c369cbfc2f</id>
<content type='text'>
There are many places where we copyin Linux timespec from the userspace
and then convert it to the kernel timespec. To avoid code duplication
add a tiny halper for doing this.

MFC after:		2 weeks

(cherry picked from commit 707e567a4061669b7643ddbe8a1ad9c4e6545a75)
</content>
</entry>
<entry>
<title>linux(4): Prevent time_t overflows on i386.</title>
<updated>2022-06-17T19:34:59Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-05-08T12:39:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=34f633b6a7aa2ad953239619563c446e8da16ec0'/>
<id>urn:sha1:34f633b6a7aa2ad953239619563c446e8da16ec0</id>
<content type='text'>
As native i386 time_t is still 32-bit, check that the user-provided 64-bit
tv_sec value fits to the kernel time_t, return EOVERFLOW if not.

MFC after:		2 weeks

(cherry picked from commit 3dc2a06752b593acd1a76e784b169f3d60e81d00)
</content>
</entry>
<entry>
<title>linux(4): Zero out high order bits of nanoseconds in the compat mode.</title>
<updated>2022-06-17T19:34:58Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-05-08T12:38:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c0584b324e9ae06f7c7906c92dd2431805e01b5c'/>
<id>urn:sha1:c0584b324e9ae06f7c7906c92dd2431805e01b5c</id>
<content type='text'>
Assuming the kernel would use random data, the 64-bit Linux kernel ignores
upper 32 bits of tv_nsec of struct timespec64 for 32-bit binaries.

MFC after:		2 weeks

(cherry picked from commit 1579b320f1a4d555250b82fa74a391d963e7ae13)
</content>
</entry>
<entry>
<title>linux(4): Add a helper intended for copying timespec's to the userspace.</title>
<updated>2022-06-17T19:34:58Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-05-08T12:37:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5a37b53f165cf3f4c530a99bb346c5a5aeaa132e'/>
<id>urn:sha1:5a37b53f165cf3f4c530a99bb346c5a5aeaa132e</id>
<content type='text'>
There are many places where we convert natvie timespec and copyout it to
the userspace. To avoid code duplication add a tiny halper for doing this.

MFC after:		2 weeks

(cherry picked from commit 9a9482f87490bcbb054ba1799d69fdab7cdb6dc9)
</content>
</entry>
<entry>
<title>linux(4): Implement timer_gettime64 syscall.</title>
<updated>2022-06-17T19:34:21Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-05-04T10:06:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=da266f693ccc7ce7fe2da97866a031982ee5581a'/>
<id>urn:sha1:da266f693ccc7ce7fe2da97866a031982ee5581a</id>
<content type='text'>
MFC after:		2 weeks

(cherry picked from commit 783c1bd8cb0cf02f2cfb95418b0a115ed975086a)
</content>
</entry>
<entry>
<title>Add timespecvalid_interval macro and use it.</title>
<updated>2022-06-17T19:33:53Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-04-25T07:20:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c5789e62ba3085163c87cc75b0adcfb94efa9d74'/>
<id>urn:sha1:c5789e62ba3085163c87cc75b0adcfb94efa9d74</id>
<content type='text'>
Reviewed by:		jhb, imp (early rev)
Differential revision:	https://reviews.freebsd.org/D34848
MFC after:		2 weeks

(cherry picked from commit 91e7bdcdcf10684098e213e311cdafcd7a0ac983)
</content>
</entry>
<entry>
<title>linux(4): Fix a typo in itimerspec conversion routine.</title>
<updated>2022-06-17T19:33:49Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-04-06T14:40:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9f870e779c1b3d77912d8b2c750d88c85a4ae329'/>
<id>urn:sha1:9f870e779c1b3d77912d8b2c750d88c85a4ae329</id>
<content type='text'>
MFC after:	3 days

(cherry picked from commit 0938d04a2c513122127c4a1552542ab617f567a8)
</content>
</entry>
<entry>
<title>linux(4): Fix clock_nanosleep return value for unsupported clockid.</title>
<updated>2022-06-17T19:28:01Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2021-06-07T03:22:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7f90bce852644e596e72ec2ce7a9125dbd151696'/>
<id>urn:sha1:7f90bce852644e596e72ec2ce7a9125dbd151696</id>
<content type='text'>
The Linux clock_nanosleep() returns ENOTSUP for CLOCK_THREAD_CPUTIME_ID.
This silence one of the LTP clock_nanosleep tests.

MFC after:	2 weeks

(cherry picked from commit 66e73ce7371b717b8dd0dfd6e3deeacfa95e6f8b)
</content>
</entry>
</feed>
