Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#76062 - [grub] enters rescue mode on boot with grub >= 2:2.06.r261.g2f4430cc0-1

Attached to Project: Arch Linux
Opened by flooklab (flooklab) - Thursday, 29 September 2022, 18:46 GMT
Last edited by Toolybird (Toolybird) - Friday, 30 September 2022, 01:07 GMT
Task Type Bug Report
Category Packages: Core
Status Assigned
Assigned To Christian Hesse (eworm)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No


Since grub version 2:2.06.r261.g2f4430cc0-1 I cannot boot with grub anymore, which enters rescue mode right after the encrypted /boot key slot gets unlocked:

error: symbol `grub_debug_malloc' not found.
Unknown command `normal'.
error: symbol `grub_debug_malloc' not found.
Entering rescue mode...
grub rescue> _

I install grub with:

# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ArchLinux
# grub-mkconfig -o /boot/grub/grub.cfg

Later versions are affected as well. Downgrading to 2:2.06-5 it works as expected again.

Having a look at the source code, it seems to stem from changes related to the 'MM_DEBUG' macro.
I thus compiled 2:2.06.r261.g2f4430cc0-1 without the '--enable-mm-debug' flag, which lets me successfully boot again.

Additional info:
* grub 2:2.06.r261.g2f4430cc0-1
* linux 5.19.12.arch1-1
* Booting in UEFI mode & using cryptodisk feature with LUKS-encrypted /boot
* Hardware: HP 350 G1 laptop

Steps to reproduce:
1. install grub >= 2:2.06.r261.g2f4430cc0-1
2. Generate grub config
3. Reboot
4. Unlock /boot slot
This task depends upon

Comment by Elias (eluas) - Saturday, 29 October 2022, 06:31 GMT
Hi, I also have the same issue using the same grub version: 2:2.06.r261.g2f4430cc0-1. I tried it using the latest grub version 2:2:06:r334.g340377470-1 and cannot boot because I got the following error message:
Loading Linux linux
452: out of range pointer: 0x73820020

Aborted. Press any key to exit.
Additional info:
* Hardware: Lenovo Thinkpad E14 Gen2

I was updating my system from linux 5.19 to linux 6.0.2 and all other packages.
Then, update it and receive a grub install warning from the linux and process to update it and
when I reboot the computer I receive the earlier mention error.

To solve it, I need to downgrade to 2:2.06.r261.g2f4430cc0-1 again to boot my arch, using the same configuration as you only without the bootloader-id parameter.