diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-07-21 17:21:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-22 12:59:41 -0400 |
commit | ee1e6ab6056a8b9c19377257002da98b83819531 (patch) | |
tree | 0119b6cedbcbdc06ad3778c56e6a795bb7896ed9 | |
parent | 91cd4d6ef0abb1f65e81f8fe37e7d3c10344e38c (diff) |
proc: fix /proc/*/pagemap some more
struct pagemap_walk was placed on stack, some hooks are initialized, the
rest (->pgd_entry, ->pud_entry, ->pte_entry) are valid but junk.
Reported-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: "Vegard Nossum" <vegard.nossum@gmail.com>
Cc: <stable@kernel.org> [2.6.25.x, 2.6.26.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/proc/task_mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 164bd9f9ede3..7546a918f790 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c | |||
@@ -636,7 +636,7 @@ static ssize_t pagemap_read(struct file *file, char __user *buf, | |||
636 | struct pagemapread pm; | 636 | struct pagemapread pm; |
637 | int pagecount; | 637 | int pagecount; |
638 | int ret = -ESRCH; | 638 | int ret = -ESRCH; |
639 | struct mm_walk pagemap_walk; | 639 | struct mm_walk pagemap_walk = {}; |
640 | unsigned long src; | 640 | unsigned long src; |
641 | unsigned long svpfn; | 641 | unsigned long svpfn; |
642 | unsigned long start_vaddr; | 642 | unsigned long start_vaddr; |