diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2021-07-26 16:31:44 +0200 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2021-08-03 07:43:13 +0200 |
commit | c32ac11da3f83bb42b986702a9b92f0a14ed4182 (patch) | |
tree | 4cc7aee51a68bc1c17101b7c2bfa7e2b2be31040 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ff80ef5bf5bd59e5eab82d1d846acc613ebbf6c4 (diff) |
efi/libstub: arm64: Double check image alignment at entry
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: <stable@vger.kernel.org> # v5.10+
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions