HomeFreeBSD

loader.efi: make sure kernel image is executable

Description

loader.efi: make sure kernel image is executable

The Windows Dev Kit 2023 (Volterra) has an UEFI implementation that maps
EfiLoaderData pages as non-executable. Map the kernel as EfiLoaderCode
to ensure that it can be executed.

With this change and another in review, FreeBSD boots to the mountroot
prompt if hw.pac.enable = 0 is set in loader.conf(5).

Reviewed by: andrew, imp, tsoome
Sponsored by: Berliner Linux User Group e.V.
Sponsored by: spline / FU-Berlin
Differential Revision: https://reviews.freebsd.org/D37931

(cherry picked from commit 95fa2e0aee5b7259cf4bcdea7396c4dff3241173)

Details

Provenance
fuzAuthored on Jan 2 2023, 9:12 PM
andrewCommitted on Jan 23 2023, 12:36 PM
Reviewer
andrew
Differential Revision
D37931: stand/efi/loader/copy.c: make sure kernel image is executable
Parents
rGd6a01b37b7ee: Add Windows Dev Kit 2023 support to if_ure
Branches
Unknown
Tags
Unknown