OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
292f86c
)
powerpc/book3s64/hash/kuap: Enable kuap on hash
author
Aneesh Kumar K.V
<aneesh.kumar@linux.ibm.com>
Fri, 27 Nov 2020 04:44:21 +0000
(10:14 +0530)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:27 +0000
(
01:01
+1100)
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Reviewed-by: Sandipan Das <sandipan@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/20201127044424.40686-20-aneesh.kumar@linux.ibm.com
arch/powerpc/mm/book3s64/pkeys.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/mm/book3s64/pkeys.c
b/arch/powerpc/mm/book3s64/pkeys.c
index
8d1bf2f
..
9f01c86
100644
(file)
--- a/
arch/powerpc/mm/book3s64/pkeys.c
+++ b/
arch/powerpc/mm/book3s64/pkeys.c
@@
-265,7
+265,12
@@
void __init setup_kuep(bool disabled)
#ifdef CONFIG_PPC_KUAP
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;
if (smp_processor_id() == boot_cpuid) {