Nitrokey / heads

A minimal Linux that runs as a coreboot or LinuxBoot ROM payload to provide a secure, flexible boot environment for laptops and servers.
http://osresearch.net/
GNU General Public License v2.0
15 stars 1 forks source link

Can't boot, date overflow error #42

Closed ragnarblackmane closed 8 months ago

ragnarblackmane commented 8 months ago

Please identify some basic details to help process the report

During boot Heads tells that the keys have been created 19578 days in the future, won't boot with (goes directly to the recovery console) or without the Nitrokey (goes to Heads menu). The hwclock date is 01-01-1970. The only way to boot is to set a date prior to today through the console and copy it to hwclock, then reboot.

This happens on a NitroPad NS50 with Heads 2.4.1. It happens on every NitroPad NS50 we have.

Steps to reproduce the behavior:

  1. Try to boot.

Expected behavior The system should boot and not lose the date.

Screenshots

Past

Future

ragnarblackmane commented 8 months ago

Setting the date to March 1st 2024 and copying it to hwclock, survives reboot . It seems that the bug is due to the leap year.

aluciani commented 8 months ago

Same on my side with heads-nitropad-nv41-v0.2.0-2038-gebdcc85.rom

Probably due to 29 february but can t tell ....

Boot in untrusted mode

ragnarblackmane commented 8 months ago

Seems the problem is upstream on coreboot https://mail.coreboot.org/hyperkitty/list/coreboot@coreboot.org/thread/57F4LNJQ6MBRT5VAJAKWHU4QHW5EFPVN/

Same on my side with heads-nitropad-nv41-v0.2.0-2038-gebdcc85.rom

Probably due to 29 february but can t tell ....

Boot in untrusted mode

daringer commented 8 months ago

I answered so many requests yesterday about this, thus forgot this issue ;) thx @ragnarblackmane for reporting, that's also the coreboot issue I think is reponsible, to be complete, the workaround was during the Feb 29th:

date -s 2024-03-01
hwclock -w
reboot

this will be fixed with the next coreboot update, closing