]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Implement STRICT_KERNEL_RWX on PPC32
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 2 Aug 2017 13:51:05 +0000 (15:51 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Aug 2017 12:55:57 +0000 (22:55 +1000)
commit4ce9190089be994c505e8a2bb35dd2161ea65e21
treecb41417a8e6436b46a3b504fe73641b4234d5262
parent6d4bba5ccae0c0cadf2e0b54d6ef36c5766a63f2
powerpc/mm: Implement STRICT_KERNEL_RWX on PPC32

This patch implements STRICT_KERNEL_RWX on PPC32.

As for CONFIG_DEBUG_PAGEALLOC, it deactivates BAT and LTLB mappings
in order to allow page protection setup at the level of each page.

As BAT/LTLB mappings are deactivated, there might be a performance
impact.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig
arch/powerpc/kernel/vmlinux.lds.S
arch/powerpc/mm/init_32.c
arch/powerpc/mm/pgtable_32.c