Re: [RFC PATCH] efi/libstub: Retry ExitBootServices if map key is invalid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/30/2016 12:31 PM, Ard Biesheuvel wrote:

No, I think x86's implementation is incorrect. efi_get_memory_map()
should allocate some slack (i.e., the 8 entries you mentioned), and if
the first call to ExitBootServices() fails, we should reuse the memory
map buffer, and call GetMemoryMap() directly to repopulate it. Then,
we call ExitBootServices() once more, or give up if either call fails.

This way, we are 100% compliant with the wording of the spec, and err
on the side of caution.


Ok. Let me take some time to think upon this approach and develop a working prototype.

Thanks for providing your guidance in a very expedient manner.

--
Jeffrey Hugo
Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux