Skip to content

start_bareflank efi loading failed due to unaligned pages #986

@Diarica

Description

@Diarica

In read_file and get_file_size function, the original efi loader uses AllocatePool to allocate file and file info memory, it's crash on booting due to 4k unaligned pages, should use AllocatePages.

Crash Point:
status = g_st->BootServices->AllocatePool(EfiRuntimeServicesData, file->size, (VOID **)&file->addr); if (EFI_ERROR(status)) { bferror_x64("AllocatePool failed", status); goto allocate_pool_failed; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions