Date
1 - 8 of 8
[OE-core] [Openembedded-architecture] Y2038 proposal
?ukasz Majewski
Hi Richard,
On Wed, 2022-11-30 at 09:07 +0100, Alexander Kanavin wrote:Y2038 ptests maybe?On Tue, 29 Nov 2022 at 16:45, Stephen JolleyOthers have made some good comments. My thoughts: Here is the list of integrated tests to ptests: https://github.com/lmajewski/y2038-tests Could you be more specific here? Would you like to disable some syscalls? We don't really want to diverge fromCould you be more specific here? The glibc now supports the whole set of syscalls as of 2.34 version? To enable them one needs to pass -D_TIME_BITS=64 flag when compiling programs. This is now the official glibc ABI. Ok. The reason for that is that if someone hasThe binary shall work without issues on glibc 2.34+ and 5.10+ kernel without issues. The only problem happens when new binaries with 64 bit time support are run on glibc or kernel not supporting 64 bit time. We therefore need to be sure they are aware of it. 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@...
|
|
Richard Purdie
On Wed, 2022-11-30 at 14:36 +0100, Lukasz Majewski wrote:
Perhaps, yes.On Wed, 2022-11-30 at 09:07 +0100, Alexander Kanavin wrote:Y2038 ptests maybe?On Tue, 29 Nov 2022 at 16:45, Stephen JolleyOthers have made some good comments. My thoughts: I'm meaning disabling the 32 bit glibc time functions.* Could we optionally disable some of the glibc 32 bit function callsCould you be more specific here? Would you like to disable some Right, but the 32 bit time functions/symbols are still available forWe don't really want to diverge fromCould you be more specific here? The glibc now supports the whole set older binaries. My point is that anything using those older functions is likely in need of attention so for Yocto Project/OE usage, identifying those would be helpful. If we were to disable them, that would make such usage very obvious. Not necessarily. If it were a binary library, compiled with 32 bitThe reason for that is that if someone hasThe binary shall work without issues on glibc 2.34+ and 5.10+ kernel time_t, new binaries using it would use a different sized field. The only problem happens when new binaries with 64 bit time support areThat is definitely not the only problem. Some of the problems are unlikely but we do need to consider them. Cheers, Richard
|
|
On 30 Nov 2022, at 14:20, Richard Purdie via lists.yoctoproject.org <richard.purdie=linuxfoundation.org@...> wrote:
Some time ago I filed https://bugzilla.yoctoproject.org/show_bug.cgi?id=6803 as Debian has a nice sanity check where it warns if non-LFS glibc functions are used. I imagine the same logic could be used to check for 32-bit time_t use.I'm meaning disabling the 32 bit glibc time functions.* Could we optionally disable some of the glibc 32 bit function callsCould you be more specific here? Would you like to disable some Ross
|
|
Alexandre Belloni
On 30/11/2022 16:46:17+0000, Ross Burton wrote:
On 30 Nov 2022, at 14:20, Richard Purdie via lists.yoctoproject.org <richard.purdie=linuxfoundation.org@...> wrote:We can simply disable COMPAT_32BIT_TIME in the kernel config.Some time ago I filed https://bugzilla.yoctoproject.org/show_bug.cgi?id=6803 as Debian has a nice sanity check where it warns if non-LFS glibc functions are used. I imagine the same logic could be used to check for 32-bit time_t use.I'm meaning disabling the 32 bit glibc time functions.* Could we optionally disable some of the glibc 32 bit function callsCould you be more specific here? Would you like to disable some Ross -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
|
|
Richard Purdie
On Wed, 2022-11-30 at 17:56 +0100, Alexandre Belloni wrote:
On 30/11/2022 16:46:17+0000, Ross Burton wrote:That sounds interesting and something we should probably look into forOn 30 Nov 2022, at 14:20, Richard Purdie via lists.yoctoproject.org <richard.purdie=linuxfoundation.org@...> wrote:Some time ago I filedI'm meaning disabling the 32 bit glibc time functions.* Could we optionally disable some of the glibc 32 bit function callsCould you be more specific here? Would you like to disable some both issues... We can simply disable COMPAT_32BIT_TIME in the kernel config.That would cause runtime issues but not build time linking ones? Cheers, Richard
|
|
Ola x Nilsson
On Wed, Nov 30 2022, Richard Purdie wrote:
On Wed, 2022-11-30 at 17:56 +0100, Alexandre Belloni wrote:I have a working sanity checker that checks for any glibc functionsOn 30/11/2022 16:46:17+0000, Ross Burton wrote:That sounds interesting and something we should probably look into forOn 30 Nov 2022, at 14:20, Richard Purdie via affected by -D_FILE_OFFSET_BITS=64 or -D_TIME_BITS=64. The INSANE_SKIP functionality needs some more polish but I'd be happy to contribute it. Some libraries use both 32 and 64 bit APIs to glibc and needs exceptions in the checker. I have not run any world builds with this checker, I've focused on the recipes we actually use so far so we could get to a testable system. My biggest worry at the moment is rust, I know to little to know if it is an actual problem and how to fix it. I would like to be part of any "y2038 team" for Yocto. -- Ola x Nilsson
|
|
Richard Purdie
On Mon, 2022-12-05 at 11:00 +0100, Ola x Nilsson wrote:
On Wed, Nov 30 2022, Richard Purdie wrote:That does sound useful, perhaps sharing it as an RFC patch might be aOn Wed, 2022-11-30 at 17:56 +0100, Alexandre Belloni wrote:I have a working sanity checker that checks for any glibc functionsOn 30/11/2022 16:46:17+0000, Ross Burton wrote:That sounds interesting and something we should probably look into forOn 30 Nov 2022, at 14:20, Richard Purdie via good place to start? We might be able to run one of the autobuilder world targets against it, see how it looks for our core recipes? Cheers, Richard
|
|
Ola x Nilsson
On Mon, Dec 05 2022, Richard Purdie wrote:
On Mon, 2022-12-05 at 11:00 +0100, Ola x Nilsson wrote:That works for me. I've started preparing a patch for oe-core.On Wed, Nov 30 2022, Richard Purdie wrote:That does sound useful, perhaps sharing it as an RFC patch might be aOn Wed, 2022-11-30 at 17:56 +0100, Alexandre Belloni wrote:I have a working sanity checker that checks for any glibc functionsOn 30/11/2022 16:46:17+0000, Ross Burton wrote:That sounds interesting and something we should probably look into forOn 30 Nov 2022, at 14:20, Richard Purdie via -- Ola x Nilsson
|
|