git: loader: Allocate the EFI trampoline as executable memory

Aaron LI aly at crater.dragonflybsd.org
Thu Oct 1 18:44:07 PDT 2026


commit c82594c18ffa937d5c5e38c894e53eab6e28fc65
Author: David Bidner <david at crap.solutions>
Date:   Thu Oct 1 05:04:52 2026 +0200

    loader: Allocate the EFI trampoline as executable memory
    
    The trampoline contains code, but EfiLoaderData allocations may be mapped
    non-executable. Allocate its page as EfiLoaderCode.
    
    Adapted from Ed Maste's FreeBSD commit:
    https://github.com/freebsd/freebsd-src/commit/2b1df6149e8a2d50a09d13c64d1574dad91e10b1
    FreeBSD review: https://reviews.freebsd.org/D58383
    
    Bug: https://bugs.dragonflybsd.org/issues/3427

Summary of changes:
 stand/boot/efi/loader/arch/x86_64/elf64_freebsd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c82594c18ffa937d5c5e38c894e53eab6e28fc65


-- 
DragonFly BSD source repository


More information about the Commits mailing list