Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 779890a0 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Kees Cook
Browse files

UPSTREAM: efi: efistub: allow allocation alignment larger than EFI_PAGE_SIZE



On systems with 64 KB pages, it is preferable for UEFI memory map
entries to be 64 KB aligned multiples of 64 KB, because it relieves
us of having to deal with the residues.
So, if EFI_ALLOC_ALIGN is #define'd by the platform, use it to round
up all memory allocations made.

Acked-by: default avatarMatt Fleming <matt.fleming@intel.com>
Acked-by: default avatarBorislav Petkov <bp@suse.de>
Tested-by: default avatarLeif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>

(cherry picked from commit cf2b0f102cdf912eedb87b10271fa0ad582cf2c1)
Signed-off-by: default avatarTomasz Figa <tfiga@chromium.org>

Bug: 24475017

Change-Id: I79fedd4b366bddc5f2aac25d27f04ba3963a0612
Signed-off-by: default avatarKees Cook <keescook@google.com>
parent 66fc8582
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment