Re: [PATCH] mm/pagewalk.c: Fix walk_page_range access wrong PTEs

2013-10-18 Thread Naoya Horiguchi
Hello, On Fri, Oct 18, 2013 at 04:15:17PM +0800, linx.z.c...@intel.com wrote: > From: Chen LinX > > When walk_page_range walk a memory map's page tables, it'll skip VM_PFNMAP > area, > then variable 'next' will to assign to vma->vm_end, it maybe larger than > 'end'. > In next loop, 'addr' wil

RE: [PATCH] mm/pagewalk.c: Fix walk_page_range access wrong PTEs

2013-10-18 Thread Kirill A. Shutemov
linx.z.chen@ wrote: > From: Chen LinX > > When walk_page_range walk a memory map's page tables, it'll skip VM_PFNMAP > area, > then variable 'next' will to assign to vma->vm_end, it maybe larger than > 'end'. > In next loop, 'addr' will be larger than 'next'. Then in /proc//pagemap > file

[PATCH] mm/pagewalk.c: Fix walk_page_range access wrong PTEs

2013-10-18 Thread linx . z . chen
From: Chen LinX When walk_page_range walk a memory map's page tables, it'll skip VM_PFNMAP area, then variable 'next' will to assign to vma->vm_end, it maybe larger than 'end'. In next loop, 'addr' will be larger than 'next'. Then in /proc//pagemap file reading procedure, the 'addr' will grow