HomeFreeBSD

efi loader: disallow user to configure staging area size less than default

Description

efi loader: disallow user to configure staging area size less than default

We need to round it up to 2M, for instance. Having staging area too small
might cause the first resize to use negative size for memmove()/memcpy(),
which kills loader.

Tested by: Harry Schmalzbauer <freebsd@omnilan.de>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on Aug 26 2021, 9:46 PM
Parents
rGb850806921a7: Restore the definition of EFI_STAGING_SIZE
Branches
Unknown
Tags
Unknown