Re: [PATCHv13 4/9] x86/boot/compressed: Handle unaccepted memory

From
Borislav Petkov <bp@alien8.de>
Date
2023-06-02 16:13:04
Also in
linux-efi, lkml
Reply to
Ard Biesheuvel, 2023-06-02
On Fri, Jun 02, 2023 at 05:59:16PM +0200, Ard Biesheuvel wrote:
The problem is that on x86, there is buggy vendor/OEM EFI code that
registers for internal events that trigger when SetVirtualAddressMap()
is called, and assume that at that point, EfiBootServicesData memory
regions have not been touched by the loader yet, which is probably
true if you are booting Windows.

So on x86, the kernel proper also preserves these regions until after
it calls SetVirtualAddressMap() (efi_free_boot_services() in
arch/x86/platform/efi/quirks.c)

So for the same reason, this code needs to disregard those regions as well.
I'd like for us to have this explanation in the comment since it is
being touched anyway.

Thx.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
Thread (31 messages) 31 messages, 6 authors, last reply 2023-06-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help