projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e5e3d4
)
x86/mm: Stop printing BRK addresses
author
Arvind Sankar
<nivedita@alum.mit.edu>
Sat, 29 Feb 2020 23:11:20 +0000
(18:11 -0500)
committer
Borislav Petkov
<bp@suse.de>
Sat, 23 May 2020 07:34:18 +0000
(09:34 +0200)
This currently leaks kernel physical addresses into userspace.
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Dave Hansen <dave.hansen@intel.com>
Link:
https://lkml.kernel.org/r/20200229231120.1147527-1-nivedita@alum.mit.edu
arch/x86/mm/init.c
patch
|
blob
|
history
diff --git
a/arch/x86/mm/init.c
b/arch/x86/mm/init.c
index 1bba16c5742b3307bfbb69f9978cc489062e92e1..a573a3e63f02c0e7acfc2be613d24f14506df21b 100644
(file)
--- a/
arch/x86/mm/init.c
+++ b/
arch/x86/mm/init.c
@@
-121,8
+121,6
@@
__ref void *alloc_low_pages(unsigned int num)
} else {
pfn = pgt_buf_end;
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++) {