Re: [PATCH 1/2] syscalls: avoid time() using __cvdso_gettimeofday in use-level's VDSO

2020-11-26 Thread Vincenzo Frascino
Hi Thomas. On 11/25/20 11:32 AM, Thomas Gleixner wrote: [...] >>> Here we propose to use '__NR_time' to invoke syscall directly that makes >>> test all get real seconds via ktime_get_real_second. > > This is a general problem and not really just for this particular test > case. > > Due to the

Re: [PATCH 1/2] syscalls: avoid time() using __cvdso_gettimeofday in use-level's VDSO

2020-11-25 Thread Cyril Hrubis
Hi! > This is a general problem and not really just for this particular test > case. > > Due to the internal implementation of ktime_get_real_seconds(), which is > a 2038 safe replacement for the former get_seconds() function, this > accumulation issue can be observed. (time(2) via syscall and

Re: [PATCH 1/2] syscalls: avoid time() using __cvdso_gettimeofday in use-level's VDSO

2020-11-25 Thread Thomas Gleixner
Cyril, On Tue, Nov 24 2020 at 16:38, Cyril Hrubis wrote: > Thomas can you please have a look? It looks like we can get the SysV IPC > ctime to be one second off compared to what we get from realtime clock. > > Do we care to get this fixed in kernel or should we fix the tests? See below. >> This