projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91cd4d6
)
proc: fix /proc/*/pagemap some more
author
Alexey Dobriyan
<
[email protected]
>
Mon, 21 Jul 2008 21:21:36 +0000
(14:21 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 22 Jul 2008 16:59:41 +0000
(09:59 -0700)
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 <
[email protected]
>
Signed-off-by: Alexey Dobriyan <
[email protected]
>
Cc: "Vegard Nossum" <
[email protected]
>
Cc: <
[email protected]
> [2.6.25.x, 2.6.26.x]
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/proc/task_mmu.c
patch
|
blob
|
history
diff --git
a/fs/proc/task_mmu.c
b/fs/proc/task_mmu.c
index 164bd9f9ede3024188285d071bbc6caa47cb94f8..7546a918f7907612b078c411d8eeb288b099ffc2 100644
(file)
--- 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,
struct pagemapread pm;
int pagecount;
int ret = -ESRCH;
- struct mm_walk pagemap_walk;
+ struct mm_walk pagemap_walk
= {}
;
unsigned long src;
unsigned long svpfn;
unsigned long start_vaddr;