]> www.infradead.org Git - users/jedix/linux-maple.git/commit
powerpc/32: Stop printing Kernel virtual memory layout
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 8 Jan 2025 18:40:38 +0000 (19:40 +0100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 24 Feb 2025 06:56:21 +0000 (12:26 +0530)
commit2bf3caa7cc3b725eb671fb7e186daf685089eb86
treeec4043bd374744d4dbece7f8f11282dd6bfdee47
parent2c1cbbab626afd2e66ae980eabf610e660cd9126
powerpc/32: Stop printing Kernel virtual memory layout

Printing of Kernel virtual memory layout was added for debug purpose
by commit f637a49e507c ("powerpc: Minor cleanups of kernel virt
address space definitions")

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

Other architectures have removed it through following commits.

Commit 071929dbdd86 ("arm64: Stop printing the virtual memory layout")
Commit 1c31d4e96b8c ("ARM: 8820/1: mm: Stop printing the virtual memory layout")
Commit 31833332f798 ("m68k/mm: Stop printing the virtual memory layout")
Commit fd8d0ca25631 ("parisc: Hide virtual kernel memory layout")
Commit 681ff0181bbf ("x86/mm/init/32: Stop printing the virtual memory layout")

Commit 681ff0181bbf ("x86/mm/init/32: Stop printing the virtual memory
layout") thought x86 was the last one, but in reality powerpc/32 still
had it.

So remove it now on powerpc/32 as well.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Kees Cook <kees@kernel.org>
[Maddy: Added "Commit" in commit message to avoid checkpatch error]
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/430bc8c1f2ff2eb9224b04450e22db472b0b9fa9.1736361630.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/mem.c