View Issue Details

IDProjectCategoryView StatusLast Update
0002806Rocky-Linux-9Generalpublic2023-04-02 22:56
ReporterTito Sacchi Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx86_64OSRocky LinuxOS Version9.1
Summary0002806: A patch for the source package `grub2` causes a segfault in `grub2-mkstandalone` when called with a specific CLI option.
DescriptionRunning `grub2-mkstandalone -o ./grubx64.efi --disable-shim-lock -O x86_64-efi` on an up-to-date Rocky Linux 9.1 system causes a segfault in `grub2-mkstandalone`.
I've build the grub2 package from the .src.rpm file and I've tracked this down with GDB to the following bug: the patch 0191-grub-install-support-embedding-x509-certificates.patch is missing a `break;` statement after line 504 of util/grub-install-common.c (disable_shim_lock = 1;).
Execution falls through when the `--disable-shim-lock` option is passed on the cmdline and xstrdup is called when arg = NULL, because `--disable-shim-lock` does not take an argument.
Steps To ReproduceExecute `grub2-mkstandalone -o ./grubx64.efi --disable-shim-lock -O x86_64-efi`.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2023-03-30 13:45 Tito Sacchi New Issue
2023-04-02 22:56 Louis Abel Project Rocky Linux SIG => Rocky-Linux-9