mm: use %pK for /proc/vmallocinfo
authorKees Cook <keescook@chromium.org>
Mon, 8 Oct 2012 23:34:09 +0000 (16:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Oct 2012 07:23:03 +0000 (16:23 +0900)
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>
mm/vmalloc.c

index 8de704679bfc595be27703c081c8b2fc57e36e10..78e08300db21c6707dc1a69d6e8212f332ae68a0 100644 (file)
@@ -2571,7 +2571,7 @@ static int s_show(struct seq_file *m, void *p)
 {
        struct vm_struct *v = p;
 
-       seq_printf(m, "0x%p-0x%p %7ld",
+       seq_printf(m, "0x%pK-0x%pK %7ld",
                v->addr, v->addr + v->size, v->size);
 
        if (v->caller)
This page took 0.028431 seconds and 5 git commands to generate.