Skip to content
  • Alexander Graf's avatar
    efi_loader: Don't allocate from memory holes · 74c16acc
    Alexander Graf authored
    
    
    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>
    74c16acc