diff options
author | Arvind Sankar <[email protected]> | 2020-02-29 18:11:20 -0500 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2020-05-23 09:34:18 +0200 |
commit | 67d631b7c05eff955ccff4139327f0f92a5117e5 (patch) | |
tree | d83216194f6933f99eba329924f2966d82b20e9a | |
parent | 0e5e3d4461a22d739fb2284a6e313fb6cecf2871 (diff) |
x86/mm: Stop printing BRK addresses
This currently leaks kernel physical addresses into userspace.
Signed-off-by: Arvind Sankar <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Kees Cook <[email protected]>
Acked-by: Dave Hansen <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
-rw-r--r-- | arch/x86/mm/init.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 1bba16c5742b..a573a3e63f02 100644 --- 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++) { |