bugGNU GRUB - Bugs: bug #66301, Unknown filesystem error (UEFI,...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #66301: Unknown filesystem error (UEFI, Y2K38 related)

Submitter:  Andrea <viavisolutions>
Submitted:  Mon 07 Oct 2024 07:20:20 PM UTC
   
 
Category:  Filesystem Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  a_biardi
Open/Closed:  Open Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  None

Mon 07 Oct 2024 07:20:20 PM UTC, original submission:  

Under certain conditions, grub-install fails to install for the x86_64-efi target with error "Unknown filesystem".

Bug was observed on a ubuntu 22 server install.

After analysis, it seems like grub-install fails if it encounters a directory entry in the EFI system partition that has a timestamp that exceeds the 32-bit unix timestamp limit.

Reproducing script attached.

My bug is related to grub-install, that's how I encountered it; however note that you can also break a perfectly working system with a one-liner like:

  touch -d 2038-01-20 /boot/efi/EFI
  # ^^ adjust paths according to how grub is installed

System won't boot anymore (it will produce an "Unknown filesystem" error at boot, and force grub to enter rescue mode; one can observe that grub can't "ls" the EFI partition).

Might be related to bug 64821 and/or bug 63894

Andrea <viavisolutions>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #56484:  reproducer.sh added by viavisolutions (747B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by viavisolutions (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-10-07 viavisolutions Attached File- Added reproducer.sh, #56484

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code