View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002806 | Rocky-Linux-9 | General | public | 2023-03-30 13:45 | 2023-04-02 22:56 |
| Reporter | Tito Sacchi | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Platform | x86_64 | OS | Rocky Linux | OS Version | 9.1 |
| Summary | 0002806: A patch for the source package `grub2` causes a segfault in `grub2-mkstandalone` when called with a specific CLI option. | ||||
| Description | Running `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 Reproduce | Execute `grub2-mkstandalone -o ./grubx64.efi --disable-shim-lock -O x86_64-efi`. | ||||
| Tags | No tags attached. | ||||
| 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 |