Re: [PATCH RFC 1/3] efi: provide definitions of DXE services table

2022-04-14 Thread baskov
On 2022-04-11 10:12, Paul Menzel wrote: Dear Baskov, Thank you for your patches. Am 07.04.22 um 05:32 schrieb Baskov Evgeniy: DXE services can be used to change memory attributes on systems where EFI use stricter policies about memory access rights and sets NX flag on some pages required by

[PATCH RFC 1/3] efi: provide definitions of DXE services table

2022-04-07 Thread Baskov Evgeniy
DXE services can be used to change memory attributes on systems where EFI use stricter policies about memory access rights and sets NX flag on some pages required by grub to executable. Signed-off-by: Baskov Evgeniy diff --git a/grub-core/kern/efi/efi.c b/grub-core/kern/efi/efi.c index

[PATCH RFC 0/3] EFI memory attributes

2022-04-07 Thread Baskov Evgeniy
ready [2]. [1] https://lkml.org/lkml/2022/3/3/532 [2] https://bugzilla.tianocore.org/show_bug.cgi?id=3519 Baskov Evgeniy(3): efi: explicitly set memory attributes for memory relocator: allocate trampoline in lower 640k efi: provide definitions of DXE services table grub-core

[PATCH RFC 2/3] relocator: allocate trampoline in lower 640k

2022-04-07 Thread Baskov Evgeniy
For simplification, allocate trampoline in lower memory for every x86 variation. This would help setting right attributes for memory in UEFI environments that restricts execution of some memory regions. Signed-off-by: Baskov Evgeniy diff --git a/grub-core/lib/i386/relocator.c b/grub-core/lib

[PATCH RFC 3/3] efi: explicitly set memory attributes for memory

2022-04-07 Thread Baskov Evgeniy
. Avoid modification if not necessary and only modify system memory to reduce the possibility to encounter firmware bugs. Signed-off-by: Baskov Evgeniy diff --git a/grub-core/kern/efi/mm.c b/grub-core/kern/efi/mm.c index d8e411454..f6d1170d1 100644 --- a/grub-core/kern/efi/mm.c +++ b/grub-core/kern