Re: [PATCH v5 06/16] efi: Disable LASS around set_virtual_address_map call

From: Kirill A. Shutemov
Date: Tue Oct 29 2024 - 11:00:58 EST


On Mon, Oct 28, 2024 at 06:07:54PM +0200, Alexander Shishkin wrote:
> Of all the EFI runtime services, set_virtual_address_map is the only one

set_virtual_address_map()

> that is called at its lower mapping, which LASS prohibits regardless of
> EFLAGS.AC setting. The only way to allow this to happen is to disable
> LASS in the CR4 register.

How does it interact with cr_pinning? IIUC, this can happen well after
boot? Like on efivar fs mount.

--
Kiryl Shutsemau / Kirill A. Shutemov