History

parisc: Hide virtual kernel memory layout

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

Helge Deller committed 8 years ago

Commit fd8d0ca1 parent 0adb24e1 file · +6 −1Browse files

Unified · Split

arch/parisc/mm/init.c+6−1
@@ -629,7 +629,12 @@ void __init mem_init(void) · 628 unmodified lines
629629 #endif
630630
631631 mem_init_print_info(NULL);
632−#ifdef CONFIG_DEBUG_KERNEL /* double-sanity-check paranoia */
632+
633+#if 0
634+ /*
635+ * Do not expose the virtual kernel memory layout to userspace.
636+ * But keep code for debugging purposes.
637+ */
633638 printk("virtual kernel memory layout:\n"
634639 " vmalloc : 0x%px - 0x%px (%4ld MB)\n"
635640 " memory : 0x%px - 0x%px (%4ld MB)\n"