]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux(4): Zero out high order bits of nanoseconds in the compat mode.
authorDmitry Chagin <dchagin@FreeBSD.org>
Sun, 8 May 2022 12:38:19 +0000 (15:38 +0300)
committerDmitry Chagin <dchagin@FreeBSD.org>
Fri, 17 Jun 2022 19:34:58 +0000 (22:34 +0300)
commitc0584b324e9ae06f7c7906c92dd2431805e01b5c
tree8e16cbe295e990381493a1d4d31251384e77e91b
parent5a37b53f165cf3f4c530a99bb346c5a5aeaa132e
linux(4): Zero out high order bits of nanoseconds in the compat mode.

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)
sys/compat/linux/linux_misc.c
sys/compat/linux/linux_time.c