Commit 45ec1690 authored by Kees Cook's avatar Kees Cook Committed by Linus Torvalds

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: default avatarKees Cook <>
Reported-by: default avatarBrad Spengler <>
Acked-by: default avatarKOSAKI Motohiro <>
Acked-by: default avatarDavid Rientjes <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 8449d21f
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment