From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
Marek Marczykowski <marmarek@invisiblethingslab.com>,
Daniel Smith <dpsmith@apertussolutions.com>
Subject: Re: [PATCH RESEND] x86/EFI: correct mkreloc header (field) reading
Date: Thu, 10 Apr 2025 10:55:50 +0200 [thread overview]
Message-ID: <Z_eHlgfeLxGh1Td3@macbook.lan> (raw)
In-Reply-To: <49b9d483-824d-4247-a642-f19f5c16fd5d@suse.com>
On Thu, Apr 10, 2025 at 09:45:15AM +0200, Jan Beulich wrote:
> With us now reading the full combined optional and NT headers, the
> subsequent reading of (and seeking to) NT header fields is wrong. Since
> PE32 and PE32+ NT headers are different anyway (beyond the image base
> oddity extending across both headers), switch to using a union. This
> allows to fetch the image base more directly then.
>
> Additionally add checking to map_section(), which would have caught at
> least the wrong (zero) image size that we previously used.
>
> Fixes: f7f42accbbbb ("x86/efi: Use generic PE/COFF structures")
> Reported-by: Roger Pau Monné <roger.pau@citrix.com>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Thanks, Roger.
next prev parent reply other threads:[~2025-04-10 8:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-10 7:45 [PATCH RESEND] x86/EFI: correct mkreloc header (field) reading Jan Beulich
2025-04-10 8:55 ` Roger Pau Monné [this message]
2025-04-22 14:58 ` Ping: " Jan Beulich
2025-04-22 15:02 ` Daniel P. Smith
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=Z_eHlgfeLxGh1Td3@macbook.lan \
--to=roger.pau@citrix.com \
--cc=dpsmith@apertussolutions.com \
--cc=jbeulich@suse.com \
--cc=marmarek@invisiblethingslab.com \
--cc=xen-devel@lists.xenproject.org \
/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.