Messages in this thread | | | Date | Thu, 26 Feb 2015 14:45:11 +0800 | From | Baoquan He <> | Subject | Re: [PATCH] x86, boot: skip relocs when load address unchanged |
| |
On 02/26/15 at 07:29am, MegaBrutal wrote: > Thanks for this patch, and good to see it in mainline! > > This actually fixes the problem I reported here: > https://lkml.org/lkml/2014/12/1/15 > > I wish it to be backported into the Ubuntu Utopic kernel asap. > > > This patch works for me. And good to see it's being merged. About the > > patch log, I would say relocations do unexpected things when the kernel > > is above 1G since randomization is done from 16M to 1G, namely > > CONFIG_RANDOMIZE_BASE_MAX_OFFSET. So above 1G kernel text mapping will > > step into kernel module mapping region. > > I'm just speculating, but is it the reason why I only get problems > when I boot with kexec? Maybe it's only then when the kernel gets > above 1G. Otherwise, the kernels boot properly when they are booted > from GRUB.
Yeah, kexec loads kernel at the top of physical memory. And above 1G kernel mapping will step into module mapping area and collapse system. Grub doesn't incur this problem.
| |