]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/booke: Disable STRICT_KERNEL_RWX, DEBUG_PAGEALLOC and KFENCE
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 15 Oct 2021 10:02:42 +0000 (12:02 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 22 Oct 2021 04:22:02 +0000 (15:22 +1100)
commit4abfdcce7e8e469d85957a587c91b57811b2dadf
treee9d07ef47466e872888740e225d52b507e35d472
parentbcc6f9fbb783220f5de22ba1e02b1699d47a543a
powerpc/booke: Disable STRICT_KERNEL_RWX, DEBUG_PAGEALLOC and KFENCE

fsl_booke and 44x are not able to map kernel linear memory with
pages, so they can't support DEBUG_PAGEALLOC and KFENCE, and
STRICT_KERNEL_RWX is also a problem for now.

Enable those only on book3s (both 32 and 64 except KFENCE), 8xx and 40x.

Fixes: 2ed4785febb3 ("[POWERPC] DEBUG_PAGEALLOC for 32-bit")
Fixes: 4ce9190089be ("powerpc/mm: Implement STRICT_KERNEL_RWX on PPC32")
Fixes: dccf8bb29c66 ("powerpc: Enable KFENCE for PPC32")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/d1ad9fdd9b27da3fdfa16510bb542ed51fa6e134.1634292136.git.christophe.leroy@csgroup.eu
arch/powerpc/Kconfig