[Bug 2098641] Re: FAT filesystem probing fails if a file's timestamp exceeds 2038
Launchpad Bug Tracker
2098641 at bugs.launchpad.net
Wed Apr 30 18:29:04 UTC 2025
This bug was fixed in the package grub2-unsigned - 2.06-2ubuntu14.8
---------------
grub2-unsigned (2.06-2ubuntu14.8) jammy; urgency=medium
* Drop NTFS patches that seem to be causing regressions
* Source package generated from src:grub2 using make -f ./debian/rules
generate-grub2-unsigned
-- Mate Kukri <mate.kukri at canonical.com> Mon, 17 Mar 2025 13:34:27
+0000
** Changed in: grub2-unsigned (Ubuntu Focal)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/2098641
Title:
FAT filesystem probing fails if a file's timestamp exceeds 2038
Status in grub2 package in Ubuntu:
New
Status in grub2-unsigned package in Ubuntu:
New
Status in linux-bluefield package in Ubuntu:
New
Status in grub2 source package in Focal:
Won't Fix
Status in grub2-unsigned source package in Focal:
Fix Released
Status in linux-bluefield source package in Focal:
New
Status in grub2 source package in Jammy:
In Progress
Status in grub2-unsigned source package in Jammy:
Fix Released
Status in linux-bluefield source package in Jammy:
New
Bug description:
[Impact]
If any file's timestamp under `/boot/efi` exceeds 2038, the FAT filesystem probe will fail, and the system will drop into the GRUB shell.
[Fix]
There is an upstream patch that fixes this issue:
https://git.savannah.gnu.org/cgit/grub.git/commit/grub-core/fs?id=e43f3d93b28cce852c110c7a8e40d8311bcd8bb1
[Test Plan]
1. Prepare an EFI partition in FAT format.
root at jammy:~# lsblk -f
vda
├─vda1
│ vfat FAT32 C34E-C891 1G 1% /boot/efi
├─vda2
│ ext4 1.0 0cbb726b-e9ac-47bf-8593-9ec43402076f 1.7G 7% /boot
└─vda3
LVM2_m LVM2 eHoy3y-L7Fk-J4FQ-Fhlw-XXBR-C3xl-gQDAWo
└─ubuntu--vg-ubuntu--lv
ext4 1.0 78ec8d75-3ce6-4f09-abba-c6278aec36e7 79.7G 13% /
2. Change the timestamp of a directory under /boot/efi to exceed 2038:
touch -d "2038-02-27" /boot/efi/EFI
3. Reboot, and the system will be entered into the grub shell.
[Where problems could occur]
The patch simply bypasses the error logic when the modification time is zero in FAT.
There should be no regression unless the FAT filesystem is unable to handle such scenarios.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2098641/+subscriptions
More information about the foundations-bugs
mailing list