Re: [PATCH 5.10 051/120] memblock: do not start bottom-up allocations with kernel_end
From: Thiago Jung Bauermann
Date: Tue Feb 09 2021 - 10:09:48 EST
Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> writes:
> From: Roman Gushchin <guro@xxxxxx>
>
> [ Upstream commit 2dcb3964544177c51853a210b6ad400de78ef17d ]
>
> With kaslr the kernel image is placed at a random place, so starting the
> bottom-up allocation with the kernel_end can result in an allocation
> failure and a warning like this one:
Not sure if this is ready for stable yet (including stable branches 4.19
and 5.4), since it seems to uncover latent bugs in x86 early memory
reservation. I asked about this issue here:
https://lore.kernel.org/lkml/87ft26yuwg.fsf@manicouagan.localdomain/
--
Thiago Jung Bauermann
IBM Linux Technology Center