Unnamed repository
Go to file
Pingfan Liu 083d9b6b0c UKI: Fix the size of real payload
Resolves: https://issues.redhat.com/browse/RHEL-125841
Upstream: kexec-tools

commit 7acd32d0fa6e9aecb7aa2099ca13bb147c04b020 (HEAD -> main)
Author: Pingfan Liu <piliu@redhat.com>
Date:   Thu Dec 4 19:00:55 2025 +0800

    UKI: Fix the size of real payload

    According to the PE file specification, each section's SizeOfRawData
    must be a multiple of FileAlignment (usually 512). So when ukify builds
    a UKI image, it pads the kernel image, initrd, etc. with zeros aligned
    to 512 bytes. The actual payload size is recorded in VirtualSize.

    Since the checksum includes the trailing zeros, this causes issues when
    loading a signed x86 bzImage, which is stored in the UKI's .linux
    section.

    Credit goes to Philipp, who analysed and pointed out this issue to me.

    Signed-off-by: Pingfan Liu <piliu@redhat.com>

Signed-off-by: Pingfan Liu <piliu@redhat.com>
2026-01-04 10:49:11 +08:00
spec Get rid of "grep: warning: stray \ before /" 2024-01-31 14:38:49 +08:00
tests tests: use the default crashkernel value 2023-06-20 10:24:25 +08:00
.editorconfig dracut-early-kdump: explicitly use bash 2023-01-30 17:37:23 +08:00
.gitignore unit tests: prepare for kdumpctl and kdump-lib.sh to be unit-tested 2022-04-14 11:44:12 +08:00
.packit.yaml [packit] 2.0.27 upstream release 2023-08-31 11:29:43 +08:00
.shellspec unit tests: add tests for get_grub_kernel_boot_parameter 2022-04-14 11:44:27 +08:00
gating.yaml Add gating.yaml to RHEL-10 kexec-tools 2024-04-22 17:12:25 +08:00
kexec-tools-2.0.32-UKI-Fix-the-size-of-real-payload.patch UKI: Fix the size of real payload 2026-01-04 10:49:11 +08:00
kexec-tools.spec UKI: Fix the size of real payload 2026-01-04 10:49:11 +08:00
README README: Add a README file 2014-04-02 10:45:36 +08:00
README.packit 2.0.28 upstream release 2024-02-02 20:13:00 +08:00
sources Update to upstream v2.0.32 2025-10-21 11:44:05 +08:00

Adding a patch to kexec-tools
=============================
There is a mailing list kexec@lists.fedoraproject.org where all the dicussion
related to fedora kexec-tools happen. All the patches are posted there for
inclusion and committed to kexec-tools after review.

So if you want your patches to be included in fedora kexec-tools package,
post these to kexec@lists.fedoraproject.org.

One can subscribe to list and browse through archives here.

https://admin.fedoraproject.org/mailman/listinfo/kexec