Commit 1babf557 authored by Arvind Sankar's avatar Arvind Sankar Committed by Michal Simek

microblaze: Stop printing the virtual memory layout

For security, don't display the kernel's virtual memory layout.

Kees Cook points out:
"These have been entirely removed on other architectures, so let's
just do the same for ia32 and remove it unconditionally."

071929db ("arm64: Stop printing the virtual memory layout")
1c31d4e9 ("ARM: 8820/1: mm: Stop printing the virtual memory layout")
31833332 ("m68k/mm: Stop printing the virtual memory layout")
fd8d0ca2 ("parisc: Hide virtual kernel memory layout")
adb1fe9a ("mm/page_alloc: Remove kernel address exposure in free_reserved_area()")
Signed-off-by: default avatarArvind Sankar <nivedita@alum.mit.edu>
Acked-by: default avatarTycho Andersen <tycho@tycho.ws>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 519fa60b
...@@ -201,18 +201,6 @@ void __init mem_init(void) ...@@ -201,18 +201,6 @@ void __init mem_init(void)
#endif #endif
mem_init_print_info(NULL); mem_init_print_info(NULL);
#ifdef CONFIG_MMU
pr_info("Kernel virtual memory layout:\n");
pr_info(" * 0x%08lx..0x%08lx : fixmap\n", FIXADDR_START, FIXADDR_TOP);
#ifdef CONFIG_HIGHMEM
pr_info(" * 0x%08lx..0x%08lx : highmem PTEs\n",
PKMAP_BASE, PKMAP_ADDR(LAST_PKMAP));
#endif /* CONFIG_HIGHMEM */
pr_info(" * 0x%08lx..0x%08lx : early ioremap\n",
ioremap_bot, ioremap_base);
pr_info(" * 0x%08lx..0x%08lx : vmalloc & ioremap\n",
(unsigned long)VMALLOC_START, VMALLOC_END);
#endif
mem_init_done = 1; mem_init_done = 1;
} }
......
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