kdump failed because of hotplug memory adding in kdump kernel
toshi.kani at hp.com
Fri Jan 10 10:19:27 EST 2014
On Fri, 2014-01-10 at 17:14 +0800, Baoquan wrote:
> > >Otherwise, any hotplug memory which is not reserved for 2nd kernel can
> > >be parsed and need be added as hotplug memory, and add them into movable
> > >zone.
> > wrong.
> > The memory is allocated as normal zone and it is offline.
This is "logical" offline, which means that the memory is accessible,
but the 1st kernel does not use it.
> Thanks for answering.
> I am confused. Now the fact is in 1st kernel memory is reserved for
> crashkernel and passed to 2nd kernel by exactmap. Then in 2nd kernel,
> reserved memory regions are added into e820.
Right. And this memory is accessible.
> Later hotplug memory still
> trigger add_memory, and cause bug I reported.
This is because the 2nd kernel gets all memory ranges from ACPI without
your change. This is bad, not only it causes the panic you reported but
also it can overwrite the 1st kernel's memory.
More information about the kexec