Commit b2ff33a1 authored by Aneesh Kumar K.V's avatar Aneesh Kumar K.V Committed by Michael Ellerman
parent 292f86c4
...@@ -265,7 +265,12 @@ void __init setup_kuep(bool disabled) ...@@ -265,7 +265,12 @@ void __init setup_kuep(bool disabled)
#ifdef CONFIG_PPC_KUAP #ifdef CONFIG_PPC_KUAP
void __init setup_kuap(bool disabled) void __init setup_kuap(bool disabled)
{ {
if (disabled || !early_radix_enabled()) if (disabled)
return;
/*
* On hash if PKEY feature is not enabled, disable KUAP too.
*/
if (!early_radix_enabled() && !early_mmu_has_feature(MMU_FTR_PKEY))
return; return;
if (smp_processor_id() == boot_cpuid) { if (smp_processor_id() == boot_cpuid) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment