lkml.org 
[lkml]   [2019]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: MIPS: bug: gettimeofday syscall broken on CI20 board
From
Date
Hi Nikolaus,

On 27/11/2019 13:53, H. Nikolaus Schaller wrote:
[...]

>> vdso_data and mips_vdso_data before are not part of the ABI hence they are not
>> bind by a contract with the userspace.
>>
>> This means that they can change at any point and if a userspace software relies
>> on a specific layout of these data structures is doing something wrong.
>
> Maybe the libs are clever enough to find that out dynamically but I have no
> idea about how gettimeofday() and user-space VDSO is implemented to handle such
> changes.
>
As I said userspace applications and libraries should not rely on the layout of
vdso_data because this is not part of the ABI.

The only thing that userspace requires is to "know" that gettimeofday() exists,
than it is gettimeofday() that internally accesses the data structure.

--
Regards,
Vincenzo
[unhandled content-type:application/pgp-keys]
\
 
 \ /
  Last update: 2019-11-28 12:52    [W:1.435 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site