[PATCH] Fix in free initrd when overlapped with crashkernel region

Haren Myneni haren at us.ibm.com
Tue Feb 7 14:50:03 EST 2006


It is possible that the reserved crashkernel region can be overlapped 
with initrd since the bootloader sets the initrd location. When the 
initrd region is freed, the second kernel memory will not be contiguous. 
The Kexec_load can cause an oops since there is no contiguous memory to 
write the second kernel or this memory could be used in the first kernel 
itself and may not be part of the dump. For example, on powerpc, the 
initrd is located at 36MB and the crashkernel starts at 32MB. The 
kexec_load caused panic since writing into non-allocated memory (after 
36MB). We could see the similar issue even on other archs.

One possibility is to move the initrd outside of crashkernel region. 
But, the initrd region will be freed anyway before the system is up.  
This patch fixes this issue and frees only regions that are not part of 
crashkernel memory in case overlaps. 

Thanks
Haren

Signed-off-by: Haren Myneni <haren at us.ibm.com>



-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdump-initrd-overlap-fix.patch
Type: text/x-patch
Size: 1723 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20060206/cb4e1a08/attachment.bin 


More information about the Linuxppc64-dev mailing list