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

Details

Provenance
fuzAuthored on Jan 2 2023, 9:12 PM
andrewCommitted on Jan 5 2023, 9:58 AM
Reviewer
andrew
Differential Revision
D37931: stand/efi/loader/copy.c: make sure kernel image is executable
Parents
rG0deb25bd9d6d: pwd_mkdb(8): Don't copy comments from /etc/master.passwd to /etc/passwd.
Branches
Unknown
Tags
Unknown