Re: [PATCH v4] mmap_vmcore: skip non-ram pages reported by hypervisors

2014-07-13 Thread Hatayama, Daisuke/畑山 大輔
Sorry for delayed responce... (2014/07/11 17:49), Vitaly Kuznetsov wrote: > We have a special check in read_vmcore() handler to check if the page was > reported as ram or not by the hypervisor (pfn_is_ram()). However, when > vmcore is read with mmap() no such check is performed. That can lead to

Re: [PATCH v4] mmap_vmcore: skip non-ram pages reported by hypervisors

2014-07-13 Thread Hatayama, Daisuke/畑山 大輔
Sorry for delayed responce... (2014/07/11 17:49), Vitaly Kuznetsov wrote: We have a special check in read_vmcore() handler to check if the page was reported as ram or not by the hypervisor (pfn_is_ram()). However, when vmcore is read with mmap() no such check is performed. That can lead to

Re: [PATCH v4] mmap_vmcore: skip non-ram pages reported by hypervisors

2014-07-11 Thread Vivek Goyal
On Fri, Jul 11, 2014 at 10:49:12AM +0200, Vitaly Kuznetsov wrote: > We have a special check in read_vmcore() handler to check if the page was > reported as ram or not by the hypervisor (pfn_is_ram()). However, when > vmcore is read with mmap() no such check is performed. That can lead to >

[PATCH v4] mmap_vmcore: skip non-ram pages reported by hypervisors

2014-07-11 Thread Vitaly Kuznetsov
We have a special check in read_vmcore() handler to check if the page was reported as ram or not by the hypervisor (pfn_is_ram()). However, when vmcore is read with mmap() no such check is performed. That can lead to unpredictable results, e.g. when running Xen PVHVM guest memcpy() after mmap() on

[PATCH v4] mmap_vmcore: skip non-ram pages reported by hypervisors

2014-07-11 Thread Vitaly Kuznetsov
We have a special check in read_vmcore() handler to check if the page was reported as ram or not by the hypervisor (pfn_is_ram()). However, when vmcore is read with mmap() no such check is performed. That can lead to unpredictable results, e.g. when running Xen PVHVM guest memcpy() after mmap() on

Re: [PATCH v4] mmap_vmcore: skip non-ram pages reported by hypervisors

2014-07-11 Thread Vivek Goyal
On Fri, Jul 11, 2014 at 10:49:12AM +0200, Vitaly Kuznetsov wrote: We have a special check in read_vmcore() handler to check if the page was reported as ram or not by the hypervisor (pfn_is_ram()). However, when vmcore is read with mmap() no such check is performed. That can lead to