Skip to content

Commit 1babf55

Browse files
nivedita76Michal Simek
authored andcommitted
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." 071929d ("arm64: Stop printing the virtual memory layout") 1c31d4e ("ARM: 8820/1: mm: Stop printing the virtual memory layout") 3183333 ("m68k/mm: Stop printing the virtual memory layout") fd8d0ca ("parisc: Hide virtual kernel memory layout") adb1fe9 ("mm/page_alloc: Remove kernel address exposure in free_reserved_area()") Signed-off-by: Arvind Sankar <[email protected]> Acked-by: Tycho Andersen <[email protected]> Signed-off-by: Michal Simek <[email protected]>
1 parent 519fa60 commit 1babf55

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

arch/microblaze/mm/init.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -201,18 +201,6 @@ void __init mem_init(void)
201201
#endif
202202

203203
mem_init_print_info(NULL);
204-
#ifdef CONFIG_MMU
205-
pr_info("Kernel virtual memory layout:\n");
206-
pr_info(" * 0x%08lx..0x%08lx : fixmap\n", FIXADDR_START, FIXADDR_TOP);
207-
#ifdef CONFIG_HIGHMEM
208-
pr_info(" * 0x%08lx..0x%08lx : highmem PTEs\n",
209-
PKMAP_BASE, PKMAP_ADDR(LAST_PKMAP));
210-
#endif /* CONFIG_HIGHMEM */
211-
pr_info(" * 0x%08lx..0x%08lx : early ioremap\n",
212-
ioremap_bot, ioremap_base);
213-
pr_info(" * 0x%08lx..0x%08lx : vmalloc & ioremap\n",
214-
(unsigned long)VMALLOC_START, VMALLOC_END);
215-
#endif
216204
mem_init_done = 1;
217205
}
218206

0 commit comments

Comments
 (0)