Commit 67d631b7 authored by Arvind Sankar's avatar Arvind Sankar Committed by Borislav Petkov

x86/mm: Stop printing BRK addresses

This currently leaks kernel physical addresses into userspace.
Signed-off-by: default avatarArvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Acked-by: default avatarDave Hansen <dave.hansen@intel.com>
Link: https://lkml.kernel.org/r/20200229231120.1147527-1-nivedita@alum.mit.edu
parent 0e5e3d44
...@@ -121,8 +121,6 @@ __ref void *alloc_low_pages(unsigned int num) ...@@ -121,8 +121,6 @@ __ref void *alloc_low_pages(unsigned int num)
} else { } else {
pfn = pgt_buf_end; pfn = pgt_buf_end;
pgt_buf_end += num; pgt_buf_end += num;
printk(KERN_DEBUG "BRK [%#010lx, %#010lx] PGTABLE\n",
pfn << PAGE_SHIFT, (pgt_buf_end << PAGE_SHIFT) - 1);
} }
for (i = 0; i < num; i++) { for (i = 0; i < num; i++) {
......
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