powerpc/book3s64/kuep: Add MMU_FTR_KUEP

This will be used to enable/disable Kernel Userspace Execution
Prevention (KUEP).

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200709032946.881753-15-aneesh.kumar@linux.ibm.com
このコミットが含まれているのは:
Aneesh Kumar K.V
2020-07-09 08:59:37 +05:30
committed by Michael Ellerman
コミット e10cc8715d
2個のファイルの変更12行の追加1行の削除

ファイルの表示

@@ -593,8 +593,10 @@ void setup_kuep(bool disabled)
if (disabled || !early_radix_enabled())
return;
if (smp_processor_id() == boot_cpuid)
if (smp_processor_id() == boot_cpuid) {
pr_info("Activating Kernel Userspace Execution Prevention\n");
cur_cpu_spec->mmu_features |= MMU_FTR_KUEP;
}
/*
* Radix always uses key0 of the IAMR to determine if an access is