Messages in this thread | | | Date | Fri, 07 Jan 2005 08:55:37 +0900 | From | Itsuro Oda <> | Subject | Re: [Fastboot] Yet another crash dump tool |
| |
Hi,
On 05 Jan 2005 22:25:34 -0700 ebiederm@xmission.com (Eric W. Biederman) wrote:
> One of the problems Hariprasad and Vivek seem to have been having is > that the keeping the crash dump kernel from using the first 1M. You > have avoided that problem correct?
alloc_pages(ZONE_NORMAL) is used to get memory area for the mini kernel in "4MB unit"(i386). So the pages is never under 1M. (for x86_64, alloc_bootmem is used to reserve the memory for the mini kernel. alloc_pages does not guarantee under 4GB!!)
> As I recall from looking at your patch and it was obviously your last > version was that you were using kmalloc or get_free_pages for some > of your data structures that controlled the loaded of the mini kernel > instead of allocating those data structures from the reserved area.
yes. kmalloc is used to get kimage struct. Indeed it is more safe to put such structues in the reserved area (and write protected). Thank you for your indication.
> Eric
Thanks. -- Itsuro ODA <oda@valinux.co.jp>
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |