From 34f2b49a6a82dd3fa926cee21d144849ce2e2f4c Mon Sep 17 00:00:00 2001 From: Arvind Sankar Date: Thu, 5 Mar 2020 10:05:03 -0500 Subject: [PATCH] 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." d348227135b3 ("arm64: Stop printing the virtual memory layout") 5ac12186cfbe ("ARM: 8820/1: mm: Stop printing the virtual memory layout") 12f24912cbf3 ("m68k/mm: Stop printing the virtual memory layout") 2effc24a2de1 ("parisc: Hide virtual kernel memory layout") 2bc39735aabc ("mm/page_alloc: Remove kernel address exposure in free_reserved_area()") Signed-off-by: Arvind Sankar Acked-by: Tycho Andersen Signed-off-by: Michal Simek --- arch/microblaze/mm/init.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index 9899ff2ef9b6b..1ffbfa96b9b86 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c @@ -201,18 +201,6 @@ void __init mem_init(void) #endif 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; } -- 2.39.5