Revision 16fbdce62d9c89b794e303f4a232e4749b77e9ac authored by Konstantin Khlebnikov on 10 May 2012, 20:01:43 UTC, committed by Linus Torvalds on 10 May 2012, 22:06:44 UTC
Reset the current pagemap-entry if the current pte isn't present, or if
current vma is over.  Otherwise pagemap reports last entry again and
again.

Non-present pte reporting was broken in commit 092b50bacd1c ("pagemap:
introduce data structure for pagemap entry")

Reporting for holes was broken in commit 5aaabe831eb5 ("pagemap: avoid
splitting thp when reading /proc/pid/pagemap")

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Reported-by: Pavel Emelyanov <xemul@parallels.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent bc46f93
History
File Mode Size
Makefile -rw-r--r-- 1.2 KB
align.S -rw-r--r-- 11.4 KB
asm-offsets.c -rw-r--r-- 4.5 KB
coprocessor.S -rw-r--r-- 7.1 KB
entry.S -rw-r--r-- 45.1 KB
head.S -rw-r--r-- 4.8 KB
init_task.c -rw-r--r-- 818 bytes
io.c -rw-r--r-- 1.9 KB
irq.c -rw-r--r-- 3.2 KB
module.c -rw-r--r-- 4.9 KB
pci-dma.c -rw-r--r-- 2.3 KB
pci.c -rw-r--r-- 9.5 KB
platform.c -rw-r--r-- 1.3 KB
process.c -rw-r--r-- 7.7 KB
ptrace.c -rw-r--r-- 8.0 KB
setup.c -rw-r--r-- 10.1 KB
signal.c -rw-r--r-- 13.3 KB
syscall.c -rw-r--r-- 1.5 KB
time.c -rw-r--r-- 2.6 KB
traps.c -rw-r--r-- 12.8 KB
vectors.S -rw-r--r-- 13.5 KB
vmlinux.lds.S -rw-r--r-- 7.0 KB
xtensa_ksyms.c -rw-r--r-- 2.2 KB

back to top