[PATCH v3 03/11] efi/libstub: Have efi_kaslr_relocate_kernel() handle extra_size

Jason Gunthorpe jgg at nvidia.com
Sun Nov 22 06:41:02 PST 2026


On Sat, Nov 21, 2026 at 12:33:58AM +0100, Ard Biesheuvel wrote:
> Hi Jason,
> 
> On Fri, 20 Nov 2026, at 18:51, Jason Gunthorpe wrote:
> > extra_size is additional memory required that must be immediately after
> > the image.
> >
> 
> Given how extra BSS memory is essentially free at boot, is there no way
> we can establish a worst case upper bound for this memory, and just add
> it to the image unconditionally for DRTM capable kernels?

It doesn't look like it, at least not without reducing support. The FW
can request some arbitrary amount for its own private usage during the
launch.

Jason



More information about the linux-riscv mailing list