[PATCH v3 03/11] efi/libstub: Have efi_kaslr_relocate_kernel() handle extra_size
Jonathan Cameron
jonathan.cameron at oss.qualcomm.com
Wed Dec 2 11:48:37 PST 2026
On Fri, 20 Nov 2026 13:51:56 -0400
Jason Gunthorpe <jgg at nvidia.com> wrote:
> extra_size is additional memory required that must be immediately after
> the image.
>
> There are three possibilities here, each a little different:
> - relocating for kaslr, just request extra_size like the zboot flow does
> when allocating the random placement from EFI
> - in place, attempt to allocate from EFI precisely after Image to
> confirm nothing weird is there, failing that
> - like any other error with the in place EFI location allocate
> non-randomly with extra_size included
>
> Adjust things to use a kernel_allocsize which is >= the memsize computed
> from the image_info.
>
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
Comment on patch 2 follows through. Assuming you'll either resolve
that or convince me otherwise,
Reviewed-by: Jonathan Cameron <jonathan.cameron at oss.qualcomm.com>
More information about the linux-arm-kernel
mailing list