Bug#1156265: grub-common: Missing upstream XFS directory extent fix causes boot failures on Debian Trixie
N1 Support
support at n1-support.net
Thu Dec 3 15:17:07 GMT 2026
Package: grub-common
Version: 2.12-9+deb13u4
Severity: important
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these template lines ***
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/mapper/SSD01-Root / xfs rw,relatime,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/mapper/SSD01-Boot /boot xfs rw,relatime,discard,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/mapper/SSD01-Var /var xfs rw,relatime,discard,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/mapper/SSD01-Home /home xfs rw,relatime,discard,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/mapper/SSD01-Log /var/log xfs rw,relatime,discard,inode64,logbufs=8,logbsize=32k,noquota 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod lvm
insmod xfs
set root='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/aWAh8D-8mso-6VTc-RYXt-4QC5-Pcyb-0VsPuX'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/aWAh8D-8mso-6VTc-RYXt-4QC5-Pcyb-0VsPuX' 204f640a-0890-4f9f-8d08-915dc513899d
else
search --no-floppy --fs-uuid --set=root 204f640a-0890-4f9f-8d08-915dc513899d
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod lvm
insmod xfs
set root='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/AS1Fxh-u3BD-X6x3-rIe2-AbuR-S314-vJumqa'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/AS1Fxh-u3BD-X6x3-rIe2-AbuR-S314-vJumqa' 16e0cc73-bab5-493e-a50a-bd2f3db19168
else
search --no-floppy --fs-uuid --set=root 16e0cc73-bab5-493e-a50a-bd2f3db19168
fi
insmod png
if background_image /grub/.background_cache.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-204f640a-0890-4f9f-8d08-915dc513899d' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod lvm
insmod xfs
set root='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/AS1Fxh-u3BD-X6x3-rIe2-AbuR-S314-vJumqa'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/AS1Fxh-u3BD-X6x3-rIe2-AbuR-S314-vJumqa' 16e0cc73-bab5-493e-a50a-bd2f3db19168
else
search --no-floppy --fs-uuid --set=root 16e0cc73-bab5-493e-a50a-bd2f3db19168
fi
echo 'Loading Linux 7.2.12+deb13-amd64 ...'
linux /vmlinuz-7.2.12+deb13-amd64 root=/dev/mapper/SSD01-Root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-7.2.12+deb13-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-204f640a-0890-4f9f-8d08-915dc513899d' {
menuentry 'Debian GNU/Linux, with Linux 7.2.12+deb13-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-7.2.12+deb13-amd64-advanced-204f640a-0890-4f9f-8d08-915dc513899d' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod lvm
insmod xfs
set root='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/AS1Fxh-u3BD-X6x3-rIe2-AbuR-S314-vJumqa'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/AS1Fxh-u3BD-X6x3-rIe2-AbuR-S314-vJumqa' 16e0cc73-bab5-493e-a50a-bd2f3db19168
else
search --no-floppy --fs-uuid --set=root 16e0cc73-bab5-493e-a50a-bd2f3db19168
fi
echo 'Loading Linux 7.2.12+deb13-amd64 ...'
linux /vmlinuz-7.2.12+deb13-amd64 root=/dev/mapper/SSD01-Root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-7.2.12+deb13-amd64
}
menuentry 'Debian GNU/Linux, with Linux 7.2.12+deb13-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-7.2.12+deb13-amd64-recovery-204f640a-0890-4f9f-8d08-915dc513899d' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod lvm
insmod xfs
set root='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/AS1Fxh-u3BD-X6x3-rIe2-AbuR-S314-vJumqa'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/AS1Fxh-u3BD-X6x3-rIe2-AbuR-S314-vJumqa' 16e0cc73-bab5-493e-a50a-bd2f3db19168
else
search --no-floppy --fs-uuid --set=root 16e0cc73-bab5-493e-a50a-bd2f3db19168
fi
echo 'Loading Linux 7.2.12+deb13-amd64 ...'
linux /vmlinuz-7.2.12+deb13-amd64 root=/dev/mapper/SSD01-Root ro single dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /initrd.img-7.2.12+deb13-amd64
}
menuentry 'Debian GNU/Linux, with Linux 7.1.3+deb13-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-7.1.3+deb13-amd64-advanced-204f640a-0890-4f9f-8d08-915dc513899d' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod lvm
insmod xfs
set root='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/AS1Fxh-u3BD-X6x3-rIe2-AbuR-S314-vJumqa'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/AS1Fxh-u3BD-X6x3-rIe2-AbuR-S314-vJumqa' 16e0cc73-bab5-493e-a50a-bd2f3db19168
else
search --no-floppy --fs-uuid --set=root 16e0cc73-bab5-493e-a50a-bd2f3db19168
fi
echo 'Loading Linux 7.1.3+deb13-amd64 ...'
linux /vmlinuz-7.1.3+deb13-amd64 root=/dev/mapper/SSD01-Root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-7.1.3+deb13-amd64
}
menuentry 'Debian GNU/Linux, with Linux 7.1.3+deb13-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-7.1.3+deb13-amd64-recovery-204f640a-0890-4f9f-8d08-915dc513899d' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod lvm
insmod xfs
set root='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/AS1Fxh-u3BD-X6x3-rIe2-AbuR-S314-vJumqa'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/3vWh39-Lhtw-rmng-e3QR-jeFm-lGIr-g1Jle0/AS1Fxh-u3BD-X6x3-rIe2-AbuR-S314-vJumqa' 16e0cc73-bab5-493e-a50a-bd2f3db19168
else
search --no-floppy --fs-uuid --set=root 16e0cc73-bab5-493e-a50a-bd2f3db19168
fi
echo 'Loading Linux 7.1.3+deb13-amd64 ...'
linux /vmlinuz-7.1.3+deb13-amd64 root=/dev/mapper/SSD01-Root ro single dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /initrd.img-7.1.3+deb13-amd64
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
insmod bli
fi
### END /etc/grub.d/25_bli ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 10 (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-88D408FED408F06C' {
insmod part_msdos
insmod ntfs
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 88D408FED408F06C
else
search --no-floppy --fs-uuid --set=root 88D408FED408F06C
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry 'Windows 7 (on /dev/sdd2)' --class windows --class os $menuentry_id_option 'osprober-chain-FC54E16254E11FDE' {
insmod part_msdos
insmod ntfs
set root='hd3,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos2 --hint-efi=hd3,msdos2 --hint-baremetal=ahci3,msdos2 FC54E16254E11FDE
else
search --no-floppy --fs-uuid --set=root FC54E16254E11FDE
fi
parttool ${root} hidden-
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
fwsetup --is-supported
if [ "$?" = 0 ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
fi
fi
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg
*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat
*********************** BEGIN LVM
*********************** END LVM
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 Dec 2 23:04 ata-INTEL_SSDSC2CW120A3_CVCV224201UB120BGN -> ../../sdd
lrwxrwxrwx 1 root root 10 Dec 2 23:04 ata-INTEL_SSDSC2CW120A3_CVCV224201UB120BGN-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Dec 2 23:04 ata-INTEL_SSDSC2CW120A3_CVCV224201UB120BGN-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 9 Dec 2 23:04 ata-ST3750525AS_5VPBA0S7 -> ../../sdb
lrwxrwxrwx 1 root root 10 Dec 2 23:04 ata-ST3750525AS_5VPBA0S7-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Dec 2 23:04 ata-ST3750525AS_5VPBA0S7-part5 -> ../../sdb5
lrwxrwxrwx 1 root root 10 Dec 2 23:04 ata-ST3750525AS_5VPBA0S7-part6 -> ../../sdb6
lrwxrwxrwx 1 root root 9 Dec 2 23:04 ata-Samsung_SSD_840_PRO_Series_S12RNEACC95121P -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 2 23:04 ata-Samsung_SSD_840_PRO_Series_S12RNEACC95121P-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 Dec 2 23:04 ata-TS256GSSD370S_C616311923 -> ../../sdc
lrwxrwxrwx 1 root root 10 Dec 2 23:04 ata-TS256GSSD370S_C616311923-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Dec 2 23:04 ata-TS256GSSD370S_C616311923-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Dec 2 23:04 ata-TS256GSSD370S_C616311923-part3 -> ../../sdc3
lrwxrwxrwx 1 root root 10 Dec 2 23:04 ata-TS256GSSD370S_C616311923-part4 -> ../../sdc4
lrwxrwxrwx 1 root root 10 Dec 2 23:04 ata-TS256GSSD370S_C616311923-part5 -> ../../sdc5
lrwxrwxrwx 1 root root 10 Dec 2 23:04 dm-name-SSD01-Boot -> ../../dm-5
lrwxrwxrwx 1 root root 10 Dec 2 23:04 dm-name-SSD01-Home -> ../../dm-3
lrwxrwxrwx 1 root root 10 Dec 2 23:04 dm-name-SSD01-Log -> ../../dm-4
lrwxrwxrwx 1 root root 10 Dec 2 23:04 dm-name-SSD01-Root -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 2 23:04 dm-name-SSD01-Swap -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 2 23:04 dm-name-SSD01-Var -> ../../dm-2
lrwxrwxrwx 1 root root 10 Dec 2 23:04 dm-uuid-LVM-3vWh39Lhtwrmnge3QRjeFmlGIrg1Jle0AS1Fxhu3BDX6x3rIe2AbuRS314vJumqa -> ../../dm-5
lrwxrwxrwx 1 root root 10 Dec 2 23:04 dm-uuid-LVM-3vWh39Lhtwrmnge3QRjeFmlGIrg1Jle0GVH2gYipc3HE2mGyEo3ZcYXgJOQnx21T -> ../../dm-3
lrwxrwxrwx 1 root root 10 Dec 2 23:04 dm-uuid-LVM-3vWh39Lhtwrmnge3QRjeFmlGIrg1Jle0MrckseXeizDRZJvz0moqTzUHt3vJTl53 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Dec 2 23:04 dm-uuid-LVM-3vWh39Lhtwrmnge3QRjeFmlGIrg1Jle0Vq5TCvaOnd2P6CYac0rpsbb184bf83kX -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 2 23:04 dm-uuid-LVM-3vWh39Lhtwrmnge3QRjeFmlGIrg1Jle0aWAh8D8mso6VTcRYXt4QC5Pcyb0VsPuX -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 2 23:04 dm-uuid-LVM-3vWh39Lhtwrmnge3QRjeFmlGIrg1Jle0b2OjAJIPqST9csyYp0IYgTTgY6GCloSl -> ../../dm-4
lrwxrwxrwx 1 root root 10 Dec 2 23:04 lvm-pv-uuid-7JbvA5-RAf0-VIk1-7gXV-DHlK-Qly2-qqrjMl -> ../../sda1
lrwxrwxrwx 1 root root 9 Dec 2 23:04 usb-Generic_STORAGE_DEVICE-0:0 -> ../../sde
lrwxrwxrwx 1 root root 9 Dec 2 23:04 wwn-0x5000c5004aa1cbc7 -> ../../sdb
lrwxrwxrwx 1 root root 10 Dec 2 23:04 wwn-0x5000c5004aa1cbc7-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Dec 2 23:04 wwn-0x5000c5004aa1cbc7-part5 -> ../../sdb5
lrwxrwxrwx 1 root root 10 Dec 2 23:04 wwn-0x5000c5004aa1cbc7-part6 -> ../../sdb6
lrwxrwxrwx 1 root root 9 Dec 2 23:04 wwn-0x5001517bb2975448 -> ../../sdd
lrwxrwxrwx 1 root root 10 Dec 2 23:04 wwn-0x5001517bb2975448-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Dec 2 23:04 wwn-0x5001517bb2975448-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 9 Dec 2 23:04 wwn-0x500253855015d680 -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 2 23:04 wwn-0x500253855015d680-part1 -> ../../sda1
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Dec 2 23:04 0018F0E418F0D99C -> ../../sdc3
lrwxrwxrwx 1 root root 10 Dec 2 23:04 16e0cc73-bab5-493e-a50a-bd2f3db19168 -> ../../dm-5
lrwxrwxrwx 1 root root 10 Dec 2 23:04 204f640a-0890-4f9f-8d08-915dc513899d -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 2 23:04 3D80653EE5DA8666 -> ../../sdc5
lrwxrwxrwx 1 root root 10 Dec 2 23:04 40c07793-73e1-4d0d-af36-dc1785536321 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Dec 2 23:04 4eed386d-bf3c-4a07-9616-3083af50ebad -> ../../dm-2
lrwxrwxrwx 1 root root 10 Dec 2 23:04 58CE19F0CE19C6E2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Dec 2 23:04 5fec8c2b-dee8-419d-84bd-4af6b42e137e -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 2 23:04 60AC69C02344D8F2 -> ../../sdb5
lrwxrwxrwx 1 root root 10 Dec 2 23:04 88D408FED408F06C -> ../../sdc1
lrwxrwxrwx 1 root root 10 Dec 2 23:04 9e1ffd93-0fbd-4cb5-bd1b-1fdc1255f5aa -> ../../dm-4
lrwxrwxrwx 1 root root 10 Dec 2 23:04 BE70E27370E231B7 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Dec 2 23:04 FC54E16254E11FDE -> ../../sdd2
lrwxrwxrwx 1 root root 10 Dec 2 23:04 FD1567F2B8259186 -> ../../sdb6
*********************** END /dev/disk/by-uuid
Dear Debian GRUB maintainers,
I have encountered reproducible GRUB boot failures on several Debian 13 (Trixie) virtual machines using XFS for a dedicated /boot logical volume.
GRUB fails to load its modules with the following error:
error: not a correct XFS inode.
After investigating the filesystem metadata and the Debian GRUB source package, I believe this is caused by a missing upstream fix for non-continuous directory data blocks in XFS.
This report specifically requests a backport of the existing upstream fix to Debian 13 (Trixie), rather than an upgrade to GRUB 2.14.
**Affected environment**
Distribution: Debian 13 (Trixie)
Architecture: amd64
GRUB version: 2.12-9+deb13u4
Boot mode: BIOS (i386-pc)
Hypervisor: Proxmox VE / QEMU-KVM
Storage layout: LVM with a dedicated XFS /boot LV
The issue has been reproduced with multiple Linux kernel versions, including the standard Debian kernel and custom-built kernels.
Installed packages:
grub-common 2.12-9+deb13u4
grub-pc 2.12-9+deb13u4
grub-pc-bin 2.12-9+deb13u4
grub2-common 2.12-9+deb13u4
The relevant XFS filesystem features are:
crc=1
finobt=1
sparse=0
rmapbt=0
reflink=1
bigtime=1
inobtcount=1
nrext64=1
ftype=1
bsize=4096
isize=512
agcount=4
**Problem description**
The issue was initially discovered after restoring a virtual machine from a Proxmox vzdump backup. The restored VM entered GRUB rescue mode because GRUB could not load its modules.
Further investigation showed that the same failure was already present on the original running VM. Therefore, the backup and restore operation merely exposed an existing problem.
The issue can be reproduced using grub-fstest directly on the original VM, independently of the hypervisor's boot process and the installed GRUB core image.
Both grub-install and update-grub complete successfully despite the existing problem, leaving the system potentially unbootable.
Reinstalling the latest GRUB version available in Debian Trixie over the existing installation does not resolve the issue.
**Reproducing the issue**
On an affected system:
DEV=$(findmnt -n -o SOURCE --mountpoint /boot)
grub-fstest "$DEV" ls /
grub-fstest "$DEV" ls /grub/
grub-fstest "$DEV" ls /grub/i386-pc/
grub-fstest "$DEV" crc /grub/grub.cfg
grub-fstest "$DEV" crc /grub/i386-pc/normal.mod
grub-fstest "$DEV" crc /grub/i386-pc/linux.mod
Actual results:
The root directory and /grub/ are listed correctly.
Listing /grub/i386-pc/ returns no entries.
Reading grub.cfg succeeds, while reading normal.mod and linux.mod fails:
grub-fstest: error: cannot open
`/grub/i386-pc/normal.mod': not a correct XFS inode.
grub-fstest: error: cannot open
`/grub/i386-pc/linux.mod': not a correct XFS inode.
The kernel and initramfs are readable using grub-fstest.
The Linux XFS driver can read the affected files normally.
**XFS directory metadata analysis**
The inode of the affected directory was inspected using:
INO=$(ls -di /boot/grub/i386-pc | awk '{print $1}')
xfs_db -r -c "inode $INO" -c "print core" \
-c "bmap" "$DEV"
On the first affected VM:
Inode: 655456
core.magic = 0x494e
core.version = 3
core.format = 2 (extents)
core.nextents = 4
core.size = 16384
core.nblocks = 4
data offset 0 startblock 81930 (2/16394) count 1 flag 0
data offset 2 startblock 81950 (2/16414) count 1 flag 0
data offset 3 startblock 82787 (2/17251) count 1 flag 0
data offset 8388608 startblock 81948 (2/16412) count 1 flag 0
Note the missing logical data block at offset 1.
On a second affected VM, the same directory had the following extent map:
data offset 0 startblock 81930 (2/16394) count 1 flag 0
data offset 1 startblock 81940 (2/16404) count 1 flag 0
data offset 3 startblock 82138 (2/16602) count 1 flag 0
data offset 8388608 startblock 81948 (2/16412) count 1 flag 0
In this case, logical data block 2 was missing instead.
Such gaps in XFS directory data extents are valid and should be handled correctly by GRUB.
**Comparison with an unaffected VM**
I also tested another Debian Trixie VM with the same GRUB version (2.12-9+deb13u4) and identical XFS filesystem features.
All GRUB modules were readable using grub-fstest.
The directory metadata was as follows:
core.magic = 0x494e
core.version = 3
core.format = 2 (extents)
core.nextents = 5
core.size = 16384
core.nblocks = 5
data offset 0 startblock 81930 (2/16394) count 1 flag 0
data offset 1 startblock 81949 (2/16413) count 1 flag 0
data offset 2 startblock 81981 (2/16445) count 1 flag 0
data offset 3 startblock 82975 (2/17439) count 1 flag 0
data offset 8388608 startblock 81948 (2/16412) count 1 flag 0
This directory is physically fragmented and has more extents than the affected directories, but it contains no gaps in its logical data blocks.
This observation supports the hypothesis that missing logical directory data blocks, rather than physical fragmentation or the number of extents, trigger the failure.
**Confirmed workaround**
Simply reinstalling GRUB over the existing module directory did not resolve the issue.
However, recreating the directory resolved the problem:
mv /boot/grub/i386-pc /boot/grub/i386-pc.old
grub-install --target=i386-pc --recheck /dev/sda
update-grub
sync
The newly created directory had the following metadata:
Inode: 103
core.format = 2 (extents)
core.nextents = 3
core.size = 8192
core.nblocks = 3
data offset 0 startblock 1687 (0/1687) count 1 flag 0
data offset 1 startblock 2019 (0/2019) count 1 flag 0
data offset 8388608 startblock 1940 (0/1940) count 1 flag 0
Unlike the original directory, the new directory contains no gaps in its logical data blocks.
After recreating the directory, all GRUB modules could be read successfully:
for f in /boot/grub/i386-pc/*.mod; do
grub-fstest "$DEV" crc "${f#/boot}" >/dev/null ||
echo "FAILED: $f"
done
The workaround has been successfully used on multiple affected VMs.
In some cases, unmounting and remounting /boot was additionally required before grub-fstest consistently reported successful reads. This may represent a separate issue related to reading filesystem metadata directly from a mounted block device.
A subsequent offline xfs_repair -n check on one of the affected filesystems reported no filesystem corruption.
**Source code analysis**
I downloaded and extracted the Debian source package:
grub2_2.12-9+deb13u4.dsc
grub2_2.12.orig.tar.xz
grub2_2.12-9+deb13u4.debian.tar.xz
After applying the Debian patch series, I inspected the implementation of grub_xfs_iterate_dir() in grub-core/fs/xfs.c.
The directory iteration code reads each logical directory block using grub_xfs_read_file(). It checks the number of bytes returned but does not check whether the resulting directory block has a zero magic number before attempting to parse its entries.
The underlying grub_fshelp_read_file() implementation in grub-core/fs/fshelp.c fills unmapped blocks with zeroes.
Consequently, an unmapped directory data block may be interpreted as a directory entry referencing inode zero, resulting in the observed error from grub_xfs_read_inode().
This behaviour matches the known upstream regression described in the following commit:
68dd65cfdaad08b1f8ec01b84949b0bf88bc0d8c
fs/xfs: Handle non-continuous data blocks in directory extents
Author: Jon DeVree
Upstream commit:
https://git.savannah.gnu.org/cgit/grub.git/commit/?id=68dd65cfdaad08b1f8ec01b84949b0bf88bc0d8c
Alternative source mirror:
https://git.openruyi.cn/Z572/grub/src/commit/68dd65cfdaad08b1f8ec01b84949b0bf88bc0d8c
Related Red Hat bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=2254370
The upstream commit identifies commit 07318ee7e (fs/xfs: Fix XFS directory extent parsing) as the source of the regression.
The corresponding fix for unmapped directory data blocks appears to be absent from both the Debian patch series and the resulting patched XFS implementation in version 2.12-9+deb13u4.
**Interaction with subsequent upstream fixes**
The Debian package already includes:
fs-xfs-Fix-grub_xfs_iterate_dir-return-value-in-case-of-f.patch
fs-xfs-Propagate-incorrect-inode-error-from-grub_xfs_read.patch
fs-xfs-Handle-root-inode-read-failure-in-grub_xfs_mount.patch
In particular, the incorrect inode error propagation fix preserves the error returned by grub_xfs_read_inode() and causes directory iteration to terminate when grub_errno is set.
While these are valid fixes, they may make the earlier directory extent regression more disruptive when the non-continuous data block fix is missing.
**Expected behaviour**
GRUB should correctly read valid XFS directories containing non-continuous logical data blocks.
Neither grub-fstest nor the bootloader should fail when accessing files in such directories.
**Requested fix**
Please consider backporting upstream commit 68dd65cfdaad08b1f8ec01b84949b0bf88bc0d8c to the GRUB package in Debian Trixie.
I have not yet built and tested the Debian package with this additional patch, nor have I tested GRUB 2.14 from testing or unstable. However, the source code analysis, directory extent maps, observed failures, negative control and successful workaround are consistent with the upstream bug description.
This issue is particularly concerning on production systems because the failure remains undetected during normal operation and may only become apparent during the next reboot or disaster recovery operation.
Thank you for maintaining GRUB in Debian.
-- System Information:
Debian Release: 13.8
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 7.2.12+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages grub-common depends on:
ii gettext-base 0.23.1-2
ii libc6 2.41-12+deb13u5
ii libdevmapper1.02.1 2:1.02.205-2
ii libefiboot1t64 38-3.1+deb13u1
ii libefivar1t64 38-3.1+deb13u1
ii libfreetype6 2.13.3+dfsg-1+deb13u2
ii libfuse3-4 3.17.2-3
ii liblzma5 5.8.1-1+deb13u2
Versions of packages grub-common recommends:
ii os-prober 1.83
Versions of packages grub-common suggests:
ii console-setup 1.242~deb13u1
ii desktop-base 13.0.4
pn grub-emu <none>
pn mtools <none>
pn multiboot-doc <none>
pn xorriso <none>
-- no debconf information
More information about the Pkg-grub-devel
mailing list