aboutsummaryrefslogtreecommitdiffstats
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2012-10-08 19:34:09 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-09 03:23:03 -0400
commit45ec16908e84e00d847e9063231fb3a75e6366bc (patch)
treeb113d04dc7c7bcc53a36cfafeb978ef6035dfd3a /mm/vmalloc.c
parent8449d21fb49e9824e2736c5febd6b5d287cd2ba1 (diff)
mm: use %pK for /proc/vmallocinfo
In the paranoid case of sysctl kernel.kptr_restrict=2, mask the kernel virtual addresses in /proc/vmallocinfo too. Signed-off-by: Kees Cook <keescook@chromium.org> Reported-by: Brad Spengler <spender@grsecurity.net> Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r--mm/vmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 8de704679bfc..78e08300db21 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -2571,7 +2571,7 @@ static int s_show(struct seq_file *m, void *p)
2571{ 2571{
2572 struct vm_struct *v = p; 2572 struct vm_struct *v = p;
2573 2573
2574 seq_printf(m, "0x%p-0x%p %7ld", 2574 seq_printf(m, "0x%pK-0x%pK %7ld",
2575 v->addr, v->addr + v->size, v->size); 2575 v->addr, v->addr + v->size, v->size);
2576 2576
2577 if (v->caller) 2577 if (v->caller)