2038 problem

Does L14 (or any Lxx for that matter) have the Y2K38 clock problem the old big computers have?

Most big computers won’t have the 2038 problem / any computer running contemporary software won’t have the problem - particularly anything with a 64-bit CPU (which is anything even vaguely recent). The needed interfaces were updated many years ago. Some distros have dropped 32-bit support.

In my opinion the at-risk devices would be old embedded Linux devices running old software that either can’t be updated or is not being updated by the user or has been abandoned by the manufacturer (at least where the device even has access to the current date and depends on the current date in some way for its operation).

Some background: Year 2038 problem - Wikipedia

That article notes that the ext2 and ext3 file systems aren’t up to the job. ext4 is basically the default these days but if you had some old storage media, it could be problematic to mount it read-write.

I should have said “old” + big computers. (I’ll just leave this reply, I won’t edit the post.)

I doubt that any device sold now or in the past by Purism is old enough to have a 2038 problem with its core software. However it is always possible that someone uses some specific application that is much older than the hardware itself and the application has never been upgraded.

As noted in my previous post, persistent data is also a potential problem. I mentioned file systems in the previous post but the same consideration applies to databases. If you had some old database storing timestamps and that database pre-dates the move to 64-bit timestamps then you could have a problem.

I forgot the exact point where you split off the thread above.. It see now it was also limited to Purism h/w, oops.

See also:

It is time_t... Debian prepares for the Y2K38 bug

Is the Intel ME (NSA b/door?) fully disabled on all devices? - #33 by nerd7473

But then :open_mouth: it seems as if /boot might be ext2 (Librem 5)

Is this just me?

I wonder whether there are any bootloader restrictions impacting on that. Fortunately we have 12 years to get to the bottom of it.

We should largely be fine.

But then I scrounged this out of system messages that @amarok just happened to post:

ext2 filesystem being mounted at /boot supports timestamps until 2038-01-19 (0x7fffffff)

Is Linux smart enough just to suppress timestamp update on ext2 file systems after the Epochalypse? (The file system itself would still be perfectly usable for read-only access and potentially usable for read-write access if you didn’t mind borked timestamps.)

Or will it fail to mount /boot but that doesn’t stop the device from booting in the first place (but that might mean that the kernel can never be upgraded)?

I checked the most recent (not very recent) Librem 5 disk image that I downloaded and it is ext2 out-of-the-box.

So I think it’s not just me and @amarok.

Has uboot (as appears on the Librem 5, specifically) been built with ext4 support? I think it has but I don’t want to test that right now and find out the hard way. :rofl:

So my guess is that some time in the next 12 years I should boot Jumpdrive and convert the boot partition from ext2 to ext4 but I suspect that isn’t a burden that we should put on all customers.

Thanks for the clear explanation, that is reassuring. I had not thought about the file system side of it, so the point about ext2 and ext3 is useful, and the possible /boot issue on the Librem 5 is worth keeping an eye on. Twelve years sounds like plenty of time, but it is good that people are checking these details now rather than later.

It’s pretty common, especially in gaming. Game vendors rarely update their old titles to 64 bits.

Two months ago, I was playing Life Is Strange (2015) via Steam on a handheld console running Linux. It’s a 32-bit game. One day, my battery went empty. After plugging the unit in, Life Is Strange suddenly and inexplicably ran 20× slower than before, less than 1 frame per second!

I only found the root cause after half a day of troubleshooting. The unit’s battery also powers the real time clock, which glitched when the battery was empty and landed on the year 2043. Usually, the system fixes this garbage clock 10 seconds into the boot. By then, the kernel had already created the sysfs nodes, so /dev/dri/renderD128 ended up with a creation date of October 21, 2043. The console uses Arch Linux for its user space, and its 32-bit glibc has a 32-bit time_t, so when libdrm attempted to enumerate available GPUs, stat64 returned EOVERFLOW and libdrm was like, “shrug, card’s broken I guess”, so the driver concluded “no GPU here” and DXVK fell back to software rendering with < 1 fps.

Which probably makes me one of the world’s first Y2K38 victims!

The fix was to reboot the console.

The method we used to test this (on the old big computers) was to simply set the clock to just before midnight on the day before Epochalypse and watch the system crash. (Flashing FLT DEAD on the bottom row of the console.)

Then it occurs to me you can’t do this on a phone because to the best of my knowledge it is getting time calibrations from a time-server on the mother-ship! Unless one can turn the time updates off on the phone?

(Mother-ship is a metaphor, not a hat tip to Dionk.)