Skip to content
Snippets Groups Projects
Commit 74c16acc authored by Alexander Graf's avatar Alexander Graf Committed by Tom Rini
Browse files

efi_loader: Don't allocate from memory holes


When a payload calls our memory allocator with the exact address hint, we
happily allocate memory from completely unpopulated regions. Payloads however
expect this to only succeed if they would be allocating from free conventional
memory.

This patch makes the logic behind those checks a bit more obvious and ensures
that we always allocate from known good free conventional memory regions if we
want to allocate ram.

Reported-by: default avatarJonathan Gray <jsg@jsg.id.au>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent edcef3ba
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment