Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Alexander Graf's avatar
    74c16acc
    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
    History
    efi_loader: Don't allocate from memory holes
    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>