Need 32-bit Linux to run past 2038? When version 5.6 of the kernel pops, you're in for a treat

I've been to the year 3000... Not much has changed, but they're still patching Linux

Linux fans intent on holding back the years will be delighted to hear that the upcoming version 5.6 of the kernel should see 32-bit systems hanging on past the dread Y2038.

Arnd Bergmann, an engineer working on the thorny Y2038 problem in the Linux kernel, posted to the mailing list that, yup, Linux 5.6 "should be the first release that can serve as a base for a 32-bit system designed to run beyond year 2038".

Bergmann has also been on a trawling exercise, replacing code that uses time_t with something a little safer for the long term.

time_t represents the number of seconds since the start of the Unix epoch (1 January 1970) and systems using a signed 32-bit time_t integer type could well suffer borkage in 2038, when that seconds count blows past the maximum that can be stored.

The Linux team has been dealing with the upcoming Y2038 problem for a while now, and this news will come as a relief for those unable to update their 32-bit systems.

There are, as ever, caveats. User space must be compiled with a 64-bit time_t and applications that use the system call interfaces directly need to be ported to use the time64 syscalls added in Linux 5.1.

Bergmann also cautioned that there were a few interfaces that could not be changed "in a compatible way", and needed to be configured to use CLOCK_MONOTONIC, which doesn't suffer from that 1 January 1970 epoch issue but has challenges of its own, or an unsigned 32-bit timestamp, which could choke in 2106.

Still, by then most of us will have been enveloped by the sweet, sweet embrace of oblivion. Or will be flying around in rocket-powered robo-braincases/frantically treading water (insert your own apocalyptic scenario here).

Yes, that's the kind of short-term thinking that got us into this mess in the first place.

Bergmann was also keen to emphasise that Y2038 issues lurking in 64-bit machines will also be present in their 32-bit siblings and called out file systems using signed 32-bit seconds, such as ext2, xfs and ufs.

Linux distro makers have long been plotting ways of dropping 32-bit versions of the Penguin-tinged OS. Canonical stopped creating install media for i386 in 2018, but opted to change plans and build "selected" 32-bit i386 packages for Ubuntu 19.10 and the upcoming 20.04 LTS after an outcry from gamers.

And while those still in the 32-bit can theoretically upgrade, there is an awful lot of gear out there running all manner of Linux variants that will never see the fruits of Bergmann's labour through lack of support or just plain ignorance of what is in that mysterious box on the side of the industrial machine.

With less than two decades left until Y2038, that pile of abandonware will grow as vendors move on (cough, Sonos, cough), and continue happily counting the seconds until the dreaded date arrives. ®

Similar topics

Other stories you might like

  • Experts: AI should be recognized as inventors in patent law
    Plus: Police release deepfake of murdered teen in cold case, and more

    In-brief Governments around the world should pass intellectual property laws that grant rights to AI systems, two academics at the University of New South Wales in Australia argued.

    Alexandra George, and Toby Walsh, professors of law and AI, respectively, believe failing to recognize machines as inventors could have long-lasting impacts on economies and societies. 

    "If courts and governments decide that AI-made inventions cannot be patented, the implications could be huge," they wrote in a comment article published in Nature. "Funders and businesses would be less incentivized to pursue useful research using AI inventors when a return on their investment could be limited. Society could miss out on the development of worthwhile and life-saving inventions."

    Continue reading
  • Declassified and released: More secret files on US govt's emergency doomsday powers
    Nuke incoming? Quick break out the plans for rationing, censorship, property seizures, and more

    More papers describing the orders and messages the US President can issue in the event of apocalyptic crises, such as a devastating nuclear attack, have been declassified and released for all to see.

    These government files are part of a larger collection of records that discuss the nature, reach, and use of secret Presidential Emergency Action Documents: these are executive orders, announcements, and statements to Congress that are all ready to sign and send out as soon as a doomsday scenario occurs. PEADs are supposed to give America's commander-in-chief immediate extraordinary powers to overcome extraordinary events.

    PEADs have never been declassified or revealed before. They remain hush-hush, and their exact details are not publicly known.

    Continue reading
  • Stolen university credentials up for sale by Russian crooks, FBI warns
    Forget dark-web souks, thousands of these are already being traded on public bazaars

    Russian crooks are selling network credentials and virtual private network access for a "multitude" of US universities and colleges on criminal marketplaces, according to the FBI.

    According to a warning issued on Thursday, these stolen credentials sell for thousands of dollars on both dark web and public internet forums, and could lead to subsequent cyberattacks against individual employees or the schools themselves.

    "The exposure of usernames and passwords can lead to brute force credential stuffing computer network attacks, whereby attackers attempt logins across various internet sites or exploit them for subsequent cyber attacks as criminal actors take advantage of users recycling the same credentials across multiple accounts, internet sites, and services," the Feds' alert [PDF] said.

    Continue reading

Biting the hand that feeds IT © 1998–2022