All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: Pingfan Liu <piliu@redhat.com>
Cc: kexec@lists.infradead.org, Philipp Rudo <prudo@redhat.com>
Subject: Re: [PATCH] UKI: Fix the size of real payload
Date: Fri, 12 Dec 2025 10:13:19 +0000	[thread overview]
Message-ID: <aTvqv6xXfGRS6WC6@horms.kernel.org> (raw)
In-Reply-To: <20251205020536.8358-1-piliu@redhat.com>

On Fri, Dec 05, 2025 at 10:05:36AM +0800, Pingfan Liu wrote:
> 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>
> Cc: Philipp Rudo <prudo@redhat.com>
> To: Simon Horman <horms@kernel.org>
> To: kexec@lists.infradead.org

Thanks, applied.

- UKI: Fix the size of real payload
  https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/commit/?id=e18a71faae08


      reply	other threads:[~2025-12-12 10:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-05  2:05 [PATCH] UKI: Fix the size of real payload Pingfan Liu
2025-12-12 10:13 ` Simon Horman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aTvqv6xXfGRS6WC6@horms.kernel.org \
    --to=horms@kernel.org \
    --cc=kexec@lists.infradead.org \
    --cc=piliu@redhat.com \
    --cc=prudo@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.