Re: [PATCH v3] kexec: fix out of the ELF headers buffer issue in syscall kexec_file_load()

2015-10-02 Thread Ingo Molnar
* Andrew Morton wrote: > On Tue, 29 Sep 2015 20:58:57 +0800 "Lee, Chun-Yi" > wrote: > > > This patch modified the code in fill_up_crash_elf_data by using > > walk_system_ram_res instead of walk_system_ram_range to count the max > > number of crash memory ranges. That's because the

Re: [PATCH v3] kexec: fix out of the ELF headers buffer issue in syscall kexec_file_load()

2015-10-02 Thread Ingo Molnar
* Andrew Morton wrote: > On Tue, 29 Sep 2015 20:58:57 +0800 "Lee, Chun-Yi" > wrote: > > > This patch modified the code in fill_up_crash_elf_data by using > > walk_system_ram_res instead of walk_system_ram_range to count the max > > number

Re: [PATCH v3] kexec: fix out of the ELF headers buffer issue in syscall kexec_file_load()

2015-10-01 Thread Andrew Morton
On Tue, 29 Sep 2015 20:58:57 +0800 "Lee, Chun-Yi" wrote: > This patch modified the code in fill_up_crash_elf_data by using > walk_system_ram_res instead of walk_system_ram_range to count the max > number of crash memory ranges. That's because the walk_system_ram_range > filters out small memory

Re: [PATCH v3] kexec: fix out of the ELF headers buffer issue in syscall kexec_file_load()

2015-10-01 Thread Andrew Morton
On Tue, 29 Sep 2015 20:58:57 +0800 "Lee, Chun-Yi" wrote: > This patch modified the code in fill_up_crash_elf_data by using > walk_system_ram_res instead of walk_system_ram_range to count the max > number of crash memory ranges. That's because the walk_system_ram_range >

Re: [PATCH v3] kexec: fix out of the ELF headers buffer issue in syscall kexec_file_load()

2015-09-30 Thread Minfei Huang
On 09/29/15 at 08:58pm, Lee, Chun-Yi wrote: > This patch modified the code in fill_up_crash_elf_data by using > walk_system_ram_res instead of walk_system_ram_range to count the max > number of crash memory ranges. That's because the walk_system_ram_range > filters out small memory regions that

Re: [PATCH v3] kexec: fix out of the ELF headers buffer issue in syscall kexec_file_load()

2015-09-30 Thread Minfei Huang
On 09/29/15 at 08:58pm, Lee, Chun-Yi wrote: > This patch modified the code in fill_up_crash_elf_data by using > walk_system_ram_res instead of walk_system_ram_range to count the max > number of crash memory ranges. That's because the walk_system_ram_range > filters out small memory regions that

Re: [PATCH v3] kexec: fix out of the ELF headers buffer issue in syscall kexec_file_load()

2015-09-29 Thread Dave Young
On 09/29/15 at 08:58pm, Lee, Chun-Yi wrote: > This patch modified the code in fill_up_crash_elf_data by using > walk_system_ram_res instead of walk_system_ram_range to count the max > number of crash memory ranges. That's because the walk_system_ram_range > filters out small memory regions that

[PATCH v3] kexec: fix out of the ELF headers buffer issue in syscall kexec_file_load()

2015-09-29 Thread Lee, Chun-Yi
This patch modified the code in fill_up_crash_elf_data by using walk_system_ram_res instead of walk_system_ram_range to count the max number of crash memory ranges. That's because the walk_system_ram_range filters out small memory regions that are resided in the same page, but walk_system_ram_res

[PATCH v3] kexec: fix out of the ELF headers buffer issue in syscall kexec_file_load()

2015-09-29 Thread Lee, Chun-Yi
This patch modified the code in fill_up_crash_elf_data by using walk_system_ram_res instead of walk_system_ram_range to count the max number of crash memory ranges. That's because the walk_system_ram_range filters out small memory regions that are resided in the same page, but walk_system_ram_res

Re: [PATCH v3] kexec: fix out of the ELF headers buffer issue in syscall kexec_file_load()

2015-09-29 Thread Dave Young
On 09/29/15 at 08:58pm, Lee, Chun-Yi wrote: > This patch modified the code in fill_up_crash_elf_data by using > walk_system_ram_res instead of walk_system_ram_range to count the max > number of crash memory ranges. That's because the walk_system_ram_range > filters out small memory regions that