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

2013-05-16 Thread HATAYAMA Daisuke
(2013/05/17 1:51), Vivek Goyal wrote: On Wed, May 15, 2013 at 06:05:51PM +0900, HATAYAMA Daisuke wrote: [..] @@ -398,9 +403,7 @@ static int __init process_ptload_program_headers_elf64(char *elfptr, phdr_ptr = (Elf64_Phdr*)(elfptr + sizeof(Elf64_Ehdr)); /* PT_NOTE hdr */ /* Fir

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

2013-05-16 Thread Vivek Goyal
On Wed, May 15, 2013 at 06:05:51PM +0900, HATAYAMA Daisuke wrote: [..] > @@ -398,9 +403,7 @@ static int __init > process_ptload_program_headers_elf64(char *elfptr, > phdr_ptr = (Elf64_Phdr*)(elfptr + sizeof(Elf64_Ehdr)); /* PT_NOTE hdr */ > > /* First program header is PT_NOTE heade

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

2013-05-15 Thread Zhang Yanfei
于 2013年05月15日 17:05, 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 elfcoreb

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

2013-05-15 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