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

2014-07-10 Thread Vivek Goyal
On Wed, Jul 09, 2014 at 01:40:22PM +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 > unpredic

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

2014-07-10 Thread Vivek Goyal
On Wed, Jul 09, 2014 at 01:40:22PM +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 > unpredic

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

2014-07-09 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