Skip to content

Commit 67d631b

Browse files
nivedita76suryasaimadhu
authored andcommitted
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]
1 parent 0e5e3d4 commit 67d631b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/x86/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ __ref void *alloc_low_pages(unsigned int num)
121121
} else {
122122
pfn = pgt_buf_end;
123123
pgt_buf_end += num;
124-
printk(KERN_DEBUG "BRK [%#010lx, %#010lx] PGTABLE\n",
125-
pfn << PAGE_SHIFT, (pgt_buf_end << PAGE_SHIFT) - 1);
126124
}
127125

128126
for (i = 0; i < num; i++) {

0 commit comments

Comments
 (0)