From: Christophe Leroy Date: Wed, 12 Jul 2017 10:08:53 +0000 (+0200) Subject: powerpc/8xx: Do not allow Pinned TLBs with STRICT_KERNEL_RWX or DEBUG_PAGEALLOC X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=87be3e2d31c01d3858bff43ab663769db03aab17;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git powerpc/8xx: Do not allow Pinned TLBs with STRICT_KERNEL_RWX or DEBUG_PAGEALLOC Pinning TLBs bypasses STRICT_KERNEL_RWX or DEBUG_PAGEALLOC protections so it should only be allowed when those are not selected Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index a4c575c95937..a2b669729440 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -1176,7 +1176,8 @@ config CONSISTENT_SIZE config PIN_TLB bool "Pinned Kernel TLBs (860 ONLY)" - depends on ADVANCED_OPTIONS && PPC_8xx + depends on ADVANCED_OPTIONS && PPC_8xx && \ + !DEBUG_PAGEALLOC && !STRICT_KERNEL_RWX config PIN_TLB_DATA bool "Pinned TLB for DATA"