Skip to content

GetMemoryMapSize wrong in pal_memory_create_info_table ? #357

@f4bjh

Description

@f4bjh

Hi,

I'm facing issues with BSA TC #103 : "PE must access all NS addr space". I have then 2 questions :

From

Status = gBS->GetMemoryMap (&MemoryMapSize, MemoryMap, &MapKey, &DescriptorSize, &DescriptorVersion);

1/ Why did you prefer AllocatePages versus AllocatePool ?

2/In the Uefi Shell command library, MemoryMapSize is increased between 2 calls of GetMemoryMap : https://github.com/tianocore/edk2/blob/db38e5031a154897a0847c63072f657d00293820/ShellPkg/Library/UefiShellDebug1CommandsLib/MemMap.c#L385
Else MemoryMapSize is not set correctly in https://github.com/tianocore/edk2/blob/30b1cb6cabb95f1c385564957a7246882f828519/MdeModulePkg/Core/Dxe/Mem/Page.c#L2222

Would it be necessary to increase MemoryMapSize in pal_memory_create_info_table() as well ?
Else, second try of GetMemorySize still fails with returned status : EFI_BUFFER_TOO_SMALL, et TC #103 is failed.

Thanks in advance for your help.
Best regards,
Fabrice

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions