ukify PE section padding broken on 24.04
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
| Noble |
Fix Released
|
Low
|
Nick Rosbrook | ||
| Plucky |
Won't Fix
|
Undecided
|
Unassigned | ||
| Questing |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
[Impact]
The version of ukify shipped in 24.04 is missing a patch that fixes PE section padding logic[1]. Without this patch, UKIs built with ukify may fail to boot.
[1] https:/
[Test Plan]
One way to observe this is using mkosi to build a UKI, where Ubuntu 24.04 is used as the tools tree. I.e. the tools from Ubuntu 24.04 (namely ukify) will be used to build the UKI itself.
$ mkdir build workspace
$ cd build
$ mkosi --workspace-
If successful, that command should result in the just-built image being booted with QEMU. Currently, without the patch, the UKI fails to boot.
[Where problems could occur]
The patch is restricted to ukify itself, and does not impact other parts of the systemd codebase. The patch changes the PE section padding logic in ukify. Hence, if further issues did occur, it would most likely arise when trying to use UKIs built with ukify.
[Other info]
This commit was first included in v258, and was backported to v257.9. Hence, it is fixed in questing and newer. Plucky will not be fixed.
| Changed in systemd (Ubuntu): | |
| status: | New → Fix Released |
| Changed in systemd (Ubuntu Plucky): | |
| status: | New → Won't Fix |
| Changed in systemd (Ubuntu Questing): | |
| status: | New → Fix Released |
| Changed in systemd (Ubuntu Noble): | |
| status: | New → Triaged |
| assignee: | nobody → Nick Rosbrook (enr0n) |
| tags: | added: dcr-incoming systemd-sru-next |
| Changed in systemd (Ubuntu Noble): | |
| importance: | Undecided → Low |
| Changed in systemd (Ubuntu Noble): | |
| status: | Triaged → In Progress |

Hello Nick, or anyone else affected,
Accepted systemd into noble-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ systemd/ 255.4-1ubuntu8. 12 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification- needed- noble to verification- done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- noble. In either case, without details of your testing we will not be able to proceed.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance for helping!
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.