summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/init.c
diff options
context:
space:
mode:
authorArvind Sankar <nivedita@alum.mit.edu>2020-02-29 18:11:20 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-22 09:05:18 +0200
commit7fe5e9153dbb804d7732145a8bd8191da919467d (patch)
tree2c23251e41ff132e84b0f8be8ae791b8c44e17bb /arch/x86/mm/init.c
parent06bd7d87ab25e72a5e9314b5009bd19ae4ca21e0 (diff)
downloadlinux-stable-7fe5e9153dbb804d7732145a8bd8191da919467d.tar.gz
linux-stable-7fe5e9153dbb804d7732145a8bd8191da919467d.tar.bz2
linux-stable-7fe5e9153dbb804d7732145a8bd8191da919467d.zip
x86/mm: Stop printing BRK addresses
[ Upstream commit 67d631b7c05eff955ccff4139327f0f92a5117e5 ] 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 Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/x86/mm/init.c')
-rw-r--r--arch/x86/mm/init.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
index fb5f29c60019..b1dba0987565 100644
--- a/arch/x86/mm/init.c
+++ b/arch/x86/mm/init.c
@@ -120,8 +120,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++) {