Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd8d0ca2 authored by Helge Deller's avatar Helge Deller
Browse files

parisc: Hide virtual kernel memory layout



For security reasons do not expose the virtual kernel memory layout to
userspace.

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Suggested-by: default avatarKees Cook <keescook@chromium.org>
Cc: stable@vger.kernel.org # 4.15
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
parent 0adb24e0
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -629,7 +629,12 @@ void __init mem_init(void)
#endif

	mem_init_print_info(NULL);
#ifdef CONFIG_DEBUG_KERNEL /* double-sanity-check paranoia */

#if 0
	/*
	 * Do not expose the virtual kernel memory layout to userspace.
	 * But keep code for debugging purposes.
	 */
	printk("virtual kernel memory layout:\n"
	       "    vmalloc : 0x%px - 0x%px   (%4ld MB)\n"
	       "    memory  : 0x%px - 0x%px   (%4ld MB)\n"