On Thu, Apr 07, 2022 at 05:44:18PM +0200, Daniel Kiper wrote:
> On Sun, Mar 27, 2022 at 10:41:31PM -0500, Oskari Pirhonen wrote:
> > Add detection for initramfs of the form *.img.old. For example, Gentoo's
> > sys-kernel/genkernel installs it as initramfs-*.img and moves any
> > existing one to ini
On Sun, Mar 27, 2022 at 10:41:31PM -0500, Oskari Pirhonen wrote:
> Add detection for initramfs of the form *.img.old. For example, Gentoo's
> sys-kernel/genkernel installs it as initramfs-*.img and moves any
> existing one to initramfs-*.img.old.
You are mentioning initramfs* files but the patch a
On Tue, Apr 05, 2022 at 06:25:52PM +, Darren Kenny wrote:
> The value of next_marker is adjusted based on the a word sized value
> read from data->file.
>
> The updated next_marker value should reference a location in the file
> just beyond the huffman table, and as such should not have a value
On Mon, Mar 28, 2022 at 05:22:25PM +1100, Daniel Axtens wrote:
> Hi all,
>
> This is, at long last, an updated version of my series extending Patrick's
> dynamic memory regions to ieee1275.
>
> Noteworthy changes:
>
> - reworked debug prints as grub_dprintfs. Folded the ieee1275 ones into the
>
UEFI specification does not guarantee that memory
used for trampoline by GRUB would be executable.
Some stricter implementations set NX flag for most
regions.
Explicitly mark memory range where trampoline would
be allocated as writable and executable
using DXE services on x86-efi variations.
Avoi
UEFI specification does not guarantee that all memory would
be executable and there exist some UEFI implementations imposing
stricter memory management policies and restricting execution
of memory where trampoline code generated by relocator is placed.
That causes page fault during boot.
Explicit
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/i3
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 40434ee9d
On Mon, Mar 28, 2022 at 05:22:34PM +1100, Daniel Axtens wrote:
> From: Patrick Steinhardt
>
> The function `add_memory_regions ()` is currently only called on system
> initialization to allocate a fixed amount of pages. As such, it didn't
> need to return any errors: in case it failed, we cannot p
On Mon, Mar 28, 2022 at 05:22:33PM +1100, Daniel Axtens wrote:
> From: Patrick Steinhardt
>
> In preparation of support for runtime-allocating additional memory
> region, this patch extracts the function to retrieve the EFI memory map
> and add a subset of it to GRUB's own memory regions.
>
> Sign
On Mon, Mar 28, 2022 at 05:22:31PM +1100, Daniel Axtens wrote:
> From: Patrick Steinhardt
>
> Currently, all platforms will set up their heap on initialization of the
> platform code. While this works mostly fine, it poses some limitations
> on memory management on us. Most notably, allocating big
On Mon, Mar 28, 2022 at 05:22:29PM +1100, Daniel Axtens wrote:
> This is handy for debugging. Enable with `set debug=regions`.
>
> Signed-off-by: Daniel Axtens
Reviewed-by: Daniel Kiper
Daniel
___
Grub-devel mailing list
Grub-devel@gnu.org
https://li
On Mon, Mar 28, 2022 at 05:22:28PM +1100, Daniel Axtens wrote:
> On x86_64-efi (at least) regions seem to be added from top down. The mm
> code will merge a new region with an existing region that comes
> immediately before the new region. This allows larger allocations to be
> satisfied that would
13 matches
Mail list logo