This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v10] y2038: Provide conversion helpers for struct __timespec64


Hi Florian,

> * Dmitry V. Levin:
> 
> > Unfortunately, this didn't work out as intended because Linux
> > kernel prior to commit 7b8474466ed97be458c825f34a85f2c2b84c3f95
> > (including released version v5.4) did not zero the upper 32-bits of
> > tv_nsec on 32-bit architectures, which means that we have to do it
> > in valid_timeval_to_timespec64 and valid_timespec_to_timespec64
> > instead.  
> 
> Can't we treat this as a critical kernel bug that needs fixing before
> the kernels become usable?
> 
> I'm concern that this will make initializers for struct timespec64
> invalid.  glibc can't intercept everything that goes into the kernel.
> 

There was a discussion regarding explicit clearing of data passed /
read from the kernel during development of this patch.

The agreement was that we rely on the kernel in this matter and no
explicit clearing is necessary in glibc.

> Thanks,
> Florian
> 




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de

Attachment: pgpKLTkQJGWa8.pgp
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]