[PATCH] Linux: Use 32-bit vDSO for clock_gettime, gettimeofday, time (bug 28071)

Adhemerval Zanella adhemerval.zanella@linaro.org
Sat Jul 10 19:57:53 GMT 2021



On 10/07/2021 15:54, Florian Weimer wrote:
> * Adhemerval Zanella:
> 
>> This does not fix the issue for __ASSUME_TIME64_SYSCALLS where it still uses
>> INLINE_SYSCALL_CALL which might clobber the errno, besides adding another
>> ifdef code path (which I really want to avoid).  Instead I think we need to 
>> open-coded the INLINE_VSYSCALL macro and replace all INLINE_SYSCALL_CALL 
>> with INTERNAL_SYSCALL_CALLS:
> 
> But for __ASSUME_TIME64_SYSCALLS, clock_gettime64 will not fail.
> 
> What am I missing?  Is the issue that INLINE_VSYSCALL may set ENOSYS
> artificially?

I meant for __clock_gettime64, where it may still clobber the errno
on older kernels (although it might be a fringe case).  In any case,
I still think making all time32 call to call time64 is a better
implementation than add some specific calls for time32.


More information about the Libc-alpha mailing list