Bug 238856 - EFI_STAGING_SIZE can be too small with large kernel and/or modules: should be dynamic
Summary: EFI_STAGING_SIZE can be too small with large kernel and/or modules: should be...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: Normal Affects Some People
Assignee: Rebecca Cran
URL:
Keywords: uefi
Depends on:
Blocks:
 
Reported: 2019-06-27 20:24 UTC by Rebecca Cran
Modified: 2019-07-14 01:01 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rebecca Cran freebsd_committer 2019-06-27 20:24:16 UTC
On UEFI systems, the loader copies the kernel and modules into an area of memory sized according to EFI_STAGING_SIZE. At 64MB it's _just_ too small for a desktop system which includes the nvidia.ko and nvidia-modeset.ko modules, while for a kernel built with ubsan it's far too small.

The code should be updated to size the staging area dynamically based on the kernel and modules the user has requested to load.