Re: [PATCH v7 2/8] vmcore: allocate buffer for ELF headers on page-size alignment

2013-05-22 Thread Vivek Goyal
On Wed, May 22, 2013 at 11:55:43AM +0900, HATAYAMA Daisuke wrote: [..] > /* Sets offset fields of vmcore elements. */ > -static void __init set_vmcore_list_offsets_elf64(char *elfptr, > +static void __init set_vmcore_list_offsets_elf64(char *elfptr, size_t elfsz, >

[PATCH v7 2/8] vmcore: allocate buffer for ELF headers on page-size alignment

2013-05-21 Thread HATAYAMA Daisuke
Allocate ELF headers on page-size boundary using __get_free_pages() instead of kmalloc(). Later patch will merge PT_NOTE entries into a single unique one and decrease the buffer size actually used. Keep original buffer size in variable elfcorebuf_sz_orig to kfree the buffer later and actually used