This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v10] y2038: Provide conversion helpers for struct __timespec64
- From: Florian Weimer <fweimer at redhat dot com>
- To: "Dmitry V. Levin" <ldv at altlinux dot org>
- Cc: libc-alpha at sourceware dot org, Lukasz Majewski <lukma at denx dot de>, Joseph Myers <joseph at codesourcery dot com>, Paul Eggert <eggert at cs dot ucla dot edu>, Alistair Francis <alistair23 at gmail dot com>, Arnd Bergmann <arnd at arndb dot de>, Alistair Francis <alistair dot francis at wdc dot com>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, Carlos O'Donell <carlos at redhat dot com>, Stepan Golosunov <stepan at golosunov dot pp dot ru>, Florian Weimer <fw at deneb dot enyo dot de>, Zack Weinberg <zackw at panix dot com>
- Date: Wed, 04 Dec 2019 11:34:29 +0100
- Subject: Re: [PATCH v10] y2038: Provide conversion helpers for struct __timespec64
- References: <20190930133134.14771-1-lukma@denx.de> <20191204101906.GC22604@altlinux.org>
* 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.
Thanks,
Florian