Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-11-02 Thread Baoquan He
On 11/02/16 at 09:29am, Dave Anderson wrote: > > > - Original Message - > > Hi Dave, > > > > On 11/01/16 at 10:13am, Dave Anderson wrote: > > > > > > > > > > > But we have this in mainline which also introduced the VMCOREINFO > > > > > numbers, can you send a patch to revert them? > >

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-11-02 Thread Dave Anderson
- Original Message - > Hi Dave, > > On 11/01/16 at 10:13am, Dave Anderson wrote: > > > > > > > > But we have this in mainline which also introduced the VMCOREINFO > > > > numbers, can you send a patch to revert them? > > > > > > OK, will do. > > > > > > However for find_vmemmap_x86_6

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-11-01 Thread Baoquan He
Hi Dave, On 11/01/16 at 10:13am, Dave Anderson wrote: > > > > > But we have this in mainline which also introduced the VMCOREINFO > > > numbers, can you send a patch to revert them? > > > > OK, will do. > > > > However for find_vmemmap_x86_64() in makedumpfile, vmemmap_start is > > still neede

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-11-01 Thread Dave Anderson
- Original Message - > On 11/01/16 at 01:10pm, Dave Young wrote: > > On 10/06/16 at 04:46pm, Baoquan He wrote: > > > KASLR memory randomization can randomize the base of the physical memory > > > mapping (PAGE_OFFSET), vmalloc (VMALLOC_START) and vmemmap > > > (VMEMMAP_START). These need

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-10-31 Thread Baoquan He
On 11/01/16 at 01:10pm, Dave Young wrote: > On 10/06/16 at 04:46pm, Baoquan He wrote: > > KASLR memory randomization can randomize the base of the physical memory > > mapping (PAGE_OFFSET), vmalloc (VMALLOC_START) and vmemmap > > (VMEMMAP_START). These need be exported to VMCOREINFO so that user sp

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-10-31 Thread Dave Young
On 10/06/16 at 04:46pm, Baoquan He wrote: > KASLR memory randomization can randomize the base of the physical memory > mapping (PAGE_OFFSET), vmalloc (VMALLOC_START) and vmemmap > (VMEMMAP_START). These need be exported to VMCOREINFO so that user space > utility, mainly makedumpfile can use them to

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-10-13 Thread Dave Young
On 10/13/16 at 04:53pm, Baoquan He wrote: > Hi Pratyush, > > On 10/12/16 at 02:39pm, Pratyush Anand wrote: > > > > > > On Wednesday 12 October 2016 05:56 AM, Baoquan He wrote: > > > > PAGE_OFFSET can be get via vaddr - paddr from elf pt_loads so only > > > > > VMALLOC_BASE and VMEMMAP_BASE is ne

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-10-13 Thread Baoquan He
Hi Pratyush, On 10/12/16 at 02:39pm, Pratyush Anand wrote: > > > On Wednesday 12 October 2016 05:56 AM, Baoquan He wrote: > > > PAGE_OFFSET can be get via vaddr - paddr from elf pt_loads so only > > > > VMALLOC_BASE and VMEMMAP_BASE is necessary.. > > Well, yes, I was wrong. I wrongly thought of

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-10-12 Thread Pratyush Anand
On Wednesday 12 October 2016 05:56 AM, Baoquan He wrote: PAGE_OFFSET can be get via vaddr - paddr from elf pt_loads so only > VMALLOC_BASE and VMEMMAP_BASE is necessary.. Well, yes, I was wrong. I wrongly thought of kernel text virtual address when I wrote the reply So, if you can get PAGE_O

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-10-11 Thread Baoquan He
On 10/11/16 at 04:19pm, Dave Young wrote: > On 10/11/16 at 03:41pm, Baoquan He wrote: > > Hi Eric, > > > > Thanks a lot for your reviewing! Sorry for late reply. > > > > On 10/06/16 at 03:07pm, Eric W. Biederman wrote: > > > Baoquan He writes: > > > > > > > KASLR memory randomization can random

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-10-11 Thread Dave Young
On 10/11/16 at 04:19pm, Dave Young wrote: > On 10/11/16 at 03:41pm, Baoquan He wrote: > > Hi Eric, > > > > Thanks a lot for your reviewing! Sorry for late reply. > > > > On 10/06/16 at 03:07pm, Eric W. Biederman wrote: > > > Baoquan He writes: > > > > > > > KASLR memory randomization can random

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-10-11 Thread Dave Young
On 10/11/16 at 03:41pm, Baoquan He wrote: > Hi Eric, > > Thanks a lot for your reviewing! Sorry for late reply. > > On 10/06/16 at 03:07pm, Eric W. Biederman wrote: > > Baoquan He writes: > > > > > KASLR memory randomization can randomize the base of the physical memory > > > mapping (PAGE_OFFS

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-10-11 Thread Baoquan He
Hi Eric, Thanks a lot for your reviewing! Sorry for late reply. On 10/06/16 at 03:07pm, Eric W. Biederman wrote: > Baoquan He writes: > > > KASLR memory randomization can randomize the base of the physical memory > > mapping (PAGE_OFFSET), vmalloc (VMALLOC_START) and vmemmap > > (VMEMMAP_START)

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-10-06 Thread Eric W. Biederman
Baoquan He writes: > KASLR memory randomization can randomize the base of the physical memory > mapping (PAGE_OFFSET), vmalloc (VMALLOC_START) and vmemmap > (VMEMMAP_START). These need be exported to VMCOREINFO so that user space > utility, mainly makedumpfile can use them to identify the base of

[PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-10-06 Thread Baoquan He
KASLR memory randomization can randomize the base of the physical memory mapping (PAGE_OFFSET), vmalloc (VMALLOC_START) and vmemmap (VMEMMAP_START). These need be exported to VMCOREINFO so that user space utility, mainly makedumpfile can use them to identify the base of each memory section. Here us