diff options
author | Ard Biesheuvel <[email protected]> | 2016-12-24 13:59:23 +0000 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-12-28 09:23:32 +0100 |
commit | abfb7b686a3e5be27bf81db62f9c5c895b76f5d1 (patch) | |
tree | e2aa96d0faf8bd1bc7ba7c94c152d7b4a8ceb6ef /lib/test-string_helpers.c | |
parent | 2d706e790f0508dff4fb72eca9b4892b79757feb (diff) |
efi/libstub/arm*: Pass latest memory map to the kernel
As reported by James Morse, the current libstub code involving the
annotated memory map only works somewhat correctly by accident, due
to the fact that a pool allocation happens to be reused immediately,
retaining its former contents on most implementations of the
UEFI boot services.
Instead of juggling memory maps, which makes the code more complex than
it needs to be, simply put placeholder values into the FDT for the memory
map parameters, and only write the actual values after ExitBootServices()
has been called.
Reported-by: James Morse <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Cc: <[email protected]>
Cc: Jeffrey Hugo <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Fixes: ed9cc156c42f ("efi/libstub: Use efi_exit_boot_services() in FDT")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions