Skip to contentSkip to conversation

arm64: correct the effect of mitigations off on kpti

PATCH Applied Liu Song 2 participants 2 messages Jun 24, 2022 – Jun 28, 2022 Documentation

lore
Share & tools
lore

Liu Song

author
#0 lore raw

PATCH 1/1 arm64: correct the effect of mitigations off on kpti

From: Liu Song <[email protected]>

If KASLR is enabled, then kpti will be forced to be enabled even if mitigations off, so we need to adjust the description of this parameter.

---
 Documentation/admin-guide/kernel-parameters.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/admin-guide/kernel-parameters.txt +1 -1
index 8090130..5b9e7f3 100644
@@ -3162,7 +3162,7 @@
 				improves system performance, but it may also
 				expose users to several CPU vulnerabilities.
 				Equivalent to: nopti [X86,PPC]
-					       kpti=0 [ARM64]
+					       if nokaslr then kpti=0 [ARM64]
 					       nospectre_v1 [X86,PPC]
 					       nobp=0 [S390]
 					       nospectre_v2 [X86,PPC,S390,ARM64]
Signature · 1 line
1.8.3.1
Applied
#1 lore raw
Quoted 6 lines · Liu Song

From: Liu Song <[email protected]>

If KASLR is enabled, then kpti will be forced to be enabled even if mitigations off, so we need to adjust the description of this parameter.

Applied to arm64 (for-next/kpti), thanks!

[1/1] arm64: correct the effect of mitigations off on kpti

      https://git.kernel.org/arm64/c/e92b25731ef6

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev