HomeFreeBSD

efi: loader: Inline copy_finish function in amd64 trampoline

Description

efi: loader: Inline copy_finish function in amd64 trampoline

Instead of calling the efi_copy_finish function from amd64_tramp,
include the copy instructions in the trampoline code itself.
This avoids boot hangs and restarts in the cases when
the efi_copy_finish code happens to be located at a memory
location that is overwritten during the copy process.

This is a direct commit to stable/12 since no-copy loader mode requires
the kernel update not suitable for the branch.

PR: 209821

Details

Provenance
dasebek_gmail.comAuthored on Jan 7 2022, 8:18 PM
kibCommitted on Jan 9 2022, 1:28 AM
Parents
rG07738547c4c9: ipfilter: Make LARGE_NAT a tunable.
Branches
Unknown
Tags
Unknown