[Bug 2039172] Re: grub 2.12~rc1 fails to load files from large directories on XFS

Nick Rosbrook 2039172 at bugs.launchpad.net
Wed Nov 15 17:04:48 UTC 2023


I have verified this fix using ubuntu-release-upgrader 1:23.10.14 from
mantic-proposed:

(1) On a BIOS system with XFS /boot partition:

ubuntu at ubuntu:~$ mount | grep /boot
/dev/sda1 on /boot type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
ubuntu at ubuntu:~$ ls /sys/firmware/
acpi  dmi  memmap  qemu_fw_cfg
ubuntu at ubuntu:~$ do-release-upgrade --proposed
Checking for a new Ubuntu release

= Welcome to Ubuntu 23.10 'Mantic Minotaur' =

The Ubuntu team is proud to announce Ubuntu 23.10 'Mantic Minotaur'.

To see what's new in this release, visit:
  https://wiki.ubuntu.com/ManticMinotaur/ReleaseNotes

Ubuntu is a Linux distribution for your desktop or server, with a fast
and easy install, regular releases, a tight selection of excellent
applications installed by default, and almost any other software you
can imagine available through the network.

We hope you enjoy Ubuntu.

== Feedback and Helping ==

If you would like to help shape Ubuntu, take a look at the list of
ways you can participate at

  http://www.ubuntu.com/community/participate/

Your comments, bug reports, patches and suggestions will help ensure
that our next release is the best release of Ubuntu ever.  If you feel
that you have found a bug please read:

  http://help.ubuntu.com/community/ReportingBugs

Then report bugs using apport in Ubuntu.  For example:

  ubuntu-bug linux

will open a bug report in Launchpad regarding the linux package.

If you have a question, or if you think you may have found a bug but
aren't sure, first try asking on the #ubuntu or #ubuntu-bugs IRC
channels on Libera.Chat, on the Ubuntu Users mailing list, or on the
Ubuntu forums:

  http://help.ubuntu.com/community/InternetRelayChat
  http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
  http://www.ubuntuforums.org/


== More Information ==

You can find out more about Ubuntu on our website, IRC channel and wiki.
If you're new to Ubuntu, please visit:

  http://www.ubuntu.com/


To sign up for future Ubuntu announcements, please subscribe to Ubuntu's
very low volume announcement list at:

  http://lists.ubuntu.com/mailman/listinfo/ubuntu-announce


Continue [yN] y
Get:1 Upgrade tool signature [833 B]                                                                                  
Get:2 Upgrade tool [1,267 kB]                                                                                         
Fetched 1,268 kB in 0s (0 B/s)                                                                                        
authenticate 'mantic.tar.gz' against 'mantic.tar.gz.gpg' 
extracting 'mantic.tar.gz'

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Hit http://us.archive.ubuntu.com/ubuntu lunar InRelease                                                               
Hit http://us.archive.ubuntu.com/ubuntu lunar-updates InRelease                                                       
Hit http://us.archive.ubuntu.com/ubuntu lunar-backports InRelease                                                     
Hit http://us.archive.ubuntu.com/ubuntu lunar-security InRelease                                                      
Fetched 0 B in 0s (0 B/s)                                                                                             
Reading package lists... Done    
Building dependency tree... Done 
Reading state information... Done

Cannot upgrade this system

Due to a bug in grub, this system cannot be safely upgraded at this 
time. 

See https://launchpad.net/bugs/2039172.


Restoring original system state

Aborting
Reading package lists... Done    
Building dependency tree... Done 
Reading state information... Done

(2) On a BIOS system without XFS /boot or /:

nr at clean-lunar-amd64:~$ ls /sys/firmware/
acpi  dmi  memmap  qemu_fw_cfg
nr at clean-lunar-amd64:~$ mount | grep /boot
/dev/vda2 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
nr at clean-lunar-amd64:~$ mount | grep " / "
/dev/vda3 on / type ext4 (rw,relatime,errors=remount-ro)
nr at clean-lunar-amd64:~$ do-release-upgrade --proposed
Checking for a new Ubuntu release

= Welcome to Ubuntu 23.10 'Mantic Minotaur' =

The Ubuntu team is proud to announce Ubuntu 23.10 'Mantic Minotaur'.

To see what's new in this release, visit:
  https://wiki.ubuntu.com/ManticMinotaur/ReleaseNotes

Ubuntu is a Linux distribution for your desktop or server, with a fast
and easy install, regular releases, a tight selection of excellent
applications installed by default, and almost any other software you
can imagine available through the network.

We hope you enjoy Ubuntu.

== Feedback and Helping ==

If you would like to help shape Ubuntu, take a look at the list of
ways you can participate at

  http://www.ubuntu.com/community/participate/

Your comments, bug reports, patches and suggestions will help ensure
that our next release is the best release of Ubuntu ever.  If you feel
that you have found a bug please read:

  http://help.ubuntu.com/community/ReportingBugs

Then report bugs using apport in Ubuntu.  For example:

  ubuntu-bug linux

will open a bug report in Launchpad regarding the linux package.

If you have a question, or if you think you may have found a bug but
aren't sure, first try asking on the #ubuntu or #ubuntu-bugs IRC
channels on Libera.Chat, on the Ubuntu Users mailing list, or on the
Ubuntu forums:

  http://help.ubuntu.com/community/InternetRelayChat
  http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
  http://www.ubuntuforums.org/


== More Information ==

You can find out more about Ubuntu on our website, IRC channel and wiki.
If you're new to Ubuntu, please visit:

  http://www.ubuntu.com/


To sign up for future Ubuntu announcements, please subscribe to Ubuntu's
very low volume announcement list at:

  http://lists.ubuntu.com/mailman/listinfo/ubuntu-announce


Continue [yN] y
Get:1 Upgrade tool signature [833 B]                                                         
Get:2 Upgrade tool [1,267 kB]                                                                
Fetched 1,268 kB in 0s (0 B/s)                                                               
authenticate 'mantic.tar.gz' against 'mantic.tar.gz.gpg' 
extracting 'mantic.tar.gz'
[sudo] password for nr: 

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Hit http://archive.ubuntu.com/ubuntu lunar InRelease                                         
Get:1 http://security.ubuntu.com/ubuntu lunar-security InRelease [109 kB]                    
Get:2 http://archive.ubuntu.com/ubuntu lunar-updates InRelease [109 kB]                      
Get:3 http://archive.ubuntu.com/ubuntu lunar-updates/restricted Sources [17.5 kB]            
Get:4 http://security.ubuntu.com/ubuntu lunar-security/main Sources [111 kB]                 
Get:5 http://archive.ubuntu.com/ubuntu lunar-updates/main Sources [161 kB]                   
Get:6 http://security.ubuntu.com/ubuntu lunar-security/universe Sources [62.8 kB]            
Get:7 http://security.ubuntu.com/ubuntu lunar-security/restricted Sources [17.5 kB]          
Get:8 http://archive.ubuntu.com/ubuntu lunar-updates/multiverse Sources [10.4 kB]            
Get:9 http://security.ubuntu.com/ubuntu lunar-security/multiverse Sources [9,668 B]          
Get:10 http://security.ubuntu.com/ubuntu lunar-security/main amd64 Packages [406 kB]         
Get:11 http://archive.ubuntu.com/ubuntu lunar-updates/universe Sources [83.5 kB]             
Get:12 http://archive.ubuntu.com/ubuntu lunar-updates/main i386 Packages [260 kB]            
Get:13 http://archive.ubuntu.com/ubuntu lunar-updates/main amd64 Packages [511 kB]           
Get:14 http://security.ubuntu.com/ubuntu lunar-security/main i386 Packages [187 kB]          
Get:15 http://archive.ubuntu.com/ubuntu lunar-updates/main Translation-en [120 kB]           
Get:16 http://security.ubuntu.com/ubuntu lunar-security/main Translation-en [90.3 kB]        
Get:17 http://security.ubuntu.com/ubuntu lunar-security/main amd64 DEP-11 Metadata [7,416 B] 
Get:18 http://security.ubuntu.com/ubuntu lunar-security/restricted i386 Packages [25.1 kB]   
Get:19 http://security.ubuntu.com/ubuntu lunar-security/restricted amd64 Packages [433 kB]   
Get:20 http://security.ubuntu.com/ubuntu lunar-security/restricted Translation-en [70.7 kB]  
Get:21 http://security.ubuntu.com/ubuntu lunar-security/universe i386 Packages [648 kB]      
Get:22 http://archive.ubuntu.com/ubuntu lunar-updates/main amd64 DEP-11 Metadata [81.1 kB]   
Get:23 http://archive.ubuntu.com/ubuntu lunar-updates/restricted i386 Packages [25.1 kB]     
Get:24 http://security.ubuntu.com/ubuntu lunar-security/universe amd64 Packages [732 kB]     
Get:25 http://archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 Packages [433 kB]     
Get:26 http://security.ubuntu.com/ubuntu lunar-security/universe Translation-en [74.2 kB]    
Get:27 http://security.ubuntu.com/ubuntu lunar-security/universe amd64 DEP-11 Metadata [32.0 kB]
Get:28 http://security.ubuntu.com/ubuntu lunar-security/multiverse amd64 Packages [6,292 B]  
Get:29 http://archive.ubuntu.com/ubuntu lunar-updates/restricted Translation-en [70.7 kB]    
Get:30 http://archive.ubuntu.com/ubuntu lunar-updates/universe amd64 Packages [819 kB]       
Get:31 http://archive.ubuntu.com/ubuntu lunar-updates/universe i386 Packages [678 kB]        
Get:32 http://archive.ubuntu.com/ubuntu lunar-updates/universe Translation-en [101 kB]       
Get:33 http://archive.ubuntu.com/ubuntu lunar-updates/universe amd64 DEP-11 Metadata [71.3 kB]
Get:34 http://archive.ubuntu.com/ubuntu lunar-updates/multiverse amd64 Packages [6,292 B]    
Fetched 6,579 kB in 0s (0 B/s)                                                               
Reading package lists... Done    
Building dependency tree... Done 
Reading state information... Done

Checking for installed snaps

Calculating snap size requirements

Updating repository information
Get:1 http://archive.ubuntu.com/ubuntu mantic InRelease [256 kB]                             
Get:2 http://archive.ubuntu.com/ubuntu mantic-updates InRelease [109 kB]                     
Get:3 http://archive.ubuntu.com/ubuntu mantic/restricted Sources [24.7 kB]                   
Get:4 http://archive.ubuntu.com/ubuntu mantic/main Sources [1,390 kB]                        
Get:5 http://archive.ubuntu.com/ubuntu mantic/multiverse Sources [300 kB]                    
Get:6 http://archive.ubuntu.com/ubuntu mantic/universe Sources [19.3 MB]                     
Get:7 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages [1,405 kB]                 
Get:8 http://archive.ubuntu.com/ubuntu mantic/main i386 Packages [1,040 kB]                  
Get:9 http://archive.ubuntu.com/ubuntu mantic/main Translation-en [517 kB]                   
Get:10 http://archive.ubuntu.com/ubuntu mantic/main amd64 DEP-11 Metadata [465 kB]           
Get:11 http://archive.ubuntu.com/ubuntu mantic/main DEP-11 48x48 Icons [106 kB]              
Get:12 http://archive.ubuntu.com/ubuntu mantic/main DEP-11 64x64 Icons [156 kB]              
Get:13 http://archive.ubuntu.com/ubuntu mantic/main DEP-11 64x64 at 2 Icons [21.1 kB]           
Get:14 http://archive.ubuntu.com/ubuntu mantic/restricted i386 Packages [32.3 kB]            
Get:15 http://archive.ubuntu.com/ubuntu mantic/restricted amd64 Packages [144 kB]            
Get:16 http://archive.ubuntu.com/ubuntu mantic/restricted Translation-en [22.6 kB]           
Get:17 http://archive.ubuntu.com/ubuntu mantic/universe amd64 Packages [15.2 MB]             
Get:18 http://archive.ubuntu.com/ubuntu mantic/universe i386 Packages [8,339 kB]             
Get:19 http://archive.ubuntu.com/ubuntu mantic/universe Translation-en [5,951 kB]            
Get:20 http://archive.ubuntu.com/ubuntu mantic/universe amd64 DEP-11 Metadata [3,793 kB]     
Get:21 http://archive.ubuntu.com/ubuntu mantic/universe DEP-11 48x48 Icons [3,702 kB]        
Get:22 http://archive.ubuntu.com/ubuntu mantic/universe DEP-11 64x64 Icons [7,723 kB]        
Get:23 http://archive.ubuntu.com/ubuntu mantic/universe DEP-11 64x64 at 2 Icons [75.0 kB]       
Get:24 http://archive.ubuntu.com/ubuntu mantic/multiverse i386 Packages [116 kB]             
Get:25 http://archive.ubuntu.com/ubuntu mantic/multiverse amd64 Packages [239 kB]            
Get:26 http://archive.ubuntu.com/ubuntu mantic/multiverse Translation-en [113 kB]            
Get:27 http://archive.ubuntu.com/ubuntu mantic/multiverse amd64 DEP-11 Metadata [31.6 kB]    
Get:28 http://archive.ubuntu.com/ubuntu mantic/multiverse DEP-11 48x48 Icons [55.1 kB]       
Get:29 http://archive.ubuntu.com/ubuntu mantic/multiverse DEP-11 64x64 Icons [185 kB]        
Get:30 http://archive.ubuntu.com/ubuntu mantic/multiverse DEP-11 64x64 at 2 Icons [904 B]       
Get:31 http://archive.ubuntu.com/ubuntu mantic-updates/universe Sources [8,768 B]            
Get:32 http://archive.ubuntu.com/ubuntu mantic-updates/restricted Sources [15.1 kB]          
Get:33 http://archive.ubuntu.com/ubuntu mantic-updates/main Sources [35.4 kB]                
Get:34 http://archive.ubuntu.com/ubuntu mantic-updates/multiverse Sources [3,940 B]          
Get:35 http://archive.ubuntu.com/ubuntu mantic-updates/main i386 Packages [29.3 kB]          
Get:36 http://archive.ubuntu.com/ubuntu mantic-updates/main amd64 Packages [82.7 kB]         
Get:37 http://archive.ubuntu.com/ubuntu mantic-updates/main Translation-en [26.1 kB]         
Get:38 http://archive.ubuntu.com/ubuntu mantic-updates/main amd64 DEP-11 Metadata [7,240 B]  
Get:39 http://archive.ubuntu.com/ubuntu mantic-updates/main DEP-11 48x48 Icons [4,111 B]     
Get:40 http://archive.ubuntu.com/ubuntu mantic-updates/main DEP-11 64x64 Icons [8,578 B]     
Get:41 http://archive.ubuntu.com/ubuntu mantic-updates/main DEP-11 64x64 at 2 Icons [29 B]      
Get:42 http://archive.ubuntu.com/ubuntu mantic-updates/restricted i386 Packages [19.1 kB]    
Get:43 http://archive.ubuntu.com/ubuntu mantic-updates/restricted amd64 Packages [116 kB]    
Get:44 http://archive.ubuntu.com/ubuntu mantic-updates/restricted Translation-en [18.1 kB]   
Get:45 http://archive.ubuntu.com/ubuntu mantic-updates/universe i386 Packages [10.3 kB]      
Get:46 http://archive.ubuntu.com/ubuntu mantic-updates/universe amd64 Packages [27.8 kB]     
Get:47 http://archive.ubuntu.com/ubuntu mantic-updates/universe Translation-en [11.4 kB]     
Get:48 http://archive.ubuntu.com/ubuntu mantic-updates/universe amd64 DEP-11 Metadata [3,864 B]
Get:49 http://archive.ubuntu.com/ubuntu mantic-updates/universe DEP-11 48x48 Icons [4,111 B] 
Get:50 http://archive.ubuntu.com/ubuntu mantic-updates/universe DEP-11 64x64 Icons [8,636 B] 
Get:51 http://archive.ubuntu.com/ubuntu mantic-updates/universe DEP-11 64x64 at 2 Icons [29 B]  
Get:52 http://archive.ubuntu.com/ubuntu mantic-updates/multiverse amd64 Packages [2,896 B]   
Get:53 http://archive.ubuntu.com/ubuntu mantic-updates/multiverse Translation-en [800 B]     
Get:54 http://security.ubuntu.com/ubuntu mantic-security InRelease [109 kB]                  
Get:55 http://security.ubuntu.com/ubuntu mantic-security/universe Sources [8,132 B]          
Get:56 http://security.ubuntu.com/ubuntu mantic-security/multiverse Sources [3,940 B]        
Get:57 http://security.ubuntu.com/ubuntu mantic-security/main Sources [30.8 kB]              
Get:58 http://security.ubuntu.com/ubuntu mantic-security/restricted Sources [15.1 kB]        
Get:59 http://security.ubuntu.com/ubuntu mantic-security/main i386 Packages [26.4 kB]        
Get:60 http://security.ubuntu.com/ubuntu mantic-security/main amd64 Packages [77.5 kB]       
Get:61 http://security.ubuntu.com/ubuntu mantic-security/main Translation-en [24.3 kB]       
Get:62 http://security.ubuntu.com/ubuntu mantic-security/main amd64 DEP-11 Metadata [7,232 B]
Get:63 http://security.ubuntu.com/ubuntu mantic-security/main DEP-11 48x48 Icons [4,111 B]   
Get:64 http://security.ubuntu.com/ubuntu mantic-security/main DEP-11 64x64 Icons [8,578 B]   
Get:65 http://security.ubuntu.com/ubuntu mantic-security/main DEP-11 64x64 at 2 Icons [29 B]    
Get:66 http://security.ubuntu.com/ubuntu mantic-security/restricted i386 Packages [19.1 kB]  
Get:67 http://security.ubuntu.com/ubuntu mantic-security/restricted amd64 Packages [116 kB]  
Get:68 http://security.ubuntu.com/ubuntu mantic-security/restricted Translation-en [18.1 kB] 
Get:69 http://security.ubuntu.com/ubuntu mantic-security/universe i386 Packages [8,260 B]    
Get:70 http://security.ubuntu.com/ubuntu mantic-security/universe amd64 Packages [24.3 kB]   
Get:71 http://security.ubuntu.com/ubuntu mantic-security/universe Translation-en [10.3 kB]   
Get:72 http://security.ubuntu.com/ubuntu mantic-security/universe amd64 DEP-11 Metadata [3,860 B]
Get:73 http://security.ubuntu.com/ubuntu mantic-security/universe DEP-11 48x48 Icons [4,111 B]
Get:74 http://security.ubuntu.com/ubuntu mantic-security/universe DEP-11 64x64 Icons [8,636 B]
Get:75 http://security.ubuntu.com/ubuntu mantic-security/universe DEP-11 64x64 at 2 Icons [29 B]
Get:76 http://security.ubuntu.com/ubuntu mantic-security/multiverse amd64 Packages [2,896 B] 
Get:77 http://security.ubuntu.com/ubuntu mantic-security/multiverse Translation-en [800 B]   
Fetched 71.7 MB in 6s (11.7 MB/s)                                                            

Checking package manager
Reading package lists... Done    
Building dependency tree... Done 
Reading state information... Done

Calculating the changes

Calculating the changes

Do you want to start the upgrade?


1 installed package is no longer supported by Canonical. You can 
still get support from the community. 

4 packages are going to be removed. 67 new packages are going to be 
installed. 964 packages are going to be upgraded. 

You have to download a total of 1,557 M. This download will take 
about 2 minutes with your connection. 

Installing the upgrade can take several hours. Once the download has 
finished, the process cannot be canceled. 

 Continue [yN]  Details [d]


** Tags removed: verification-needed verification-needed-mantic
** Tags added: verification-done verification-done-mantic

-- 
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/2039172

Title:
  grub 2.12~rc1 fails to load files from large directories on XFS

Status in grub2 package in Ubuntu:
  Fix Released
Status in ubuntu-release-upgrader package in Ubuntu:
  Fix Released
Status in grub2 source package in Mantic:
  New
Status in ubuntu-release-upgrader source package in Mantic:
  Fix Committed
Status in grub2 source package in Noble:
  Fix Released
Status in ubuntu-release-upgrader source package in Noble:
  Fix Released
Status in grub2 package in Debian:
  Fix Released

Bug description:
  [Impact]
  Multi-extent directories are not parsed correctly by grub's XFS code in 2.12~rc1, preventing it from loading files from directories with too many entries, such as the grub module directory.

  This should only affect BIOS systems as they need to load the core
  grub modules from the module directory, whereas UEFI systems have them
  embedded in the ESP EFI image.

  [Test plan]

  On systems BIOS systems with XFS /boot, or XFS / and no separate boot
  partition, the upgrade should be prevented early on with a message
  linking to this bug report.

  We should also test upgrades on "normal"/unaffected system to make
  sure it is not unnecessarily prevented.

  [Where problems could occur]
  The two risks here are (1) missing a case where we should block upgrade, and (2) preventing an upgrade in a case where we should not. The unit tests included in the patch attempt to mitigate this risk.

  Any issues would probably come from logic errors in the code that
  parses /proc/mounts.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2039172/+subscriptions




More information about the foundations-bugs mailing list