Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
efi/libstub: arm64: Double check image alignment at entry
commit c32ac11 upstream. On arm64, the stub only moves the kernel image around in memory if needed, which is typically only for KASLR, given that relocatable kernels (which is the default) can run from any 64k aligned address, which is also the minimum alignment communicated to EFI via the PE/COFF header. Unfortunately, some loaders appear to ignore this header, and load the kernel at some arbitrary offset in memory. We can deal with this, but let's check for this condition anyway, so non-compliant code can be spotted and fixed. Cc: <[email protected]> # v5.10+ Signed-off-by: Ard Biesheuvel <[email protected]> Tested-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information