Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

efi_image_loader.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Alexander Graf's avatar
      b1237c6e
      efi_loader: Fix relocations above 64kb image size · b1237c6e
      Alexander Graf authored
      
      We were truncating the image offset within the target image to 16 bits
      which again meant that we were potentially overwriting random memory
      in the lower 16 bits of the image.
      
      This patch casts the offset to a more reasonable 32bits.
      
      With this applied, I can successfully see Shell.efi assert because it
      can't find a protocol it expects to be available.
      
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      b1237c6e
      History
      efi_loader: Fix relocations above 64kb image size
      Alexander Graf authored
      
      We were truncating the image offset within the target image to 16 bits
      which again meant that we were potentially overwriting random memory
      in the lower 16 bits of the image.
      
      This patch casts the offset to a more reasonable 32bits.
      
      With this applied, I can successfully see Shell.efi assert because it
      can't find a protocol it expects to be available.
      
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>