arm64: mte: remove an ISB on kernel exit
PATCH 1/1 arm64: mte: remove an ISB on kernel exit
This ISB is unnecessary because we will soon do an ERET.
Signed-off-by Peter Collingbourne <[email protected]>
--- arch/arm64/kernel/entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/entry.S +1 -1
@@ -182,7 +182,6 @@ alternative_else_nop_endif mrs_s \tmp2, SYS_GCR_EL1 bfi \tmp2, \tmp, #0, #16 msr_s SYS_GCR_EL1, \tmp2 - isb #endif .endm
@@ -194,6 +193,7 @@ alternative_else_nop_endif ldr_l \tmp, gcr_kernel_excl mte_set_gcr \tmp, \tmp2 + isb 1: #endif .endm
Signature · 7 lines
2.29.2.454.gaff20da3a2-goog _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Catalin Marinas
maintainerQuoted 21 lines · Peter Collingbourne
This ISB is unnecessary because we will soon do an ERET.
Signed-off-by Peter Collingbourne <[email protected]>--- arch/arm64/kernel/entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/kernel/entry.S +0
-1@@ -182,7 +182,6 @@ alternative_else_nop_endif mrs_s \tmp2, SYS_GCR_EL1 bfi \tmp2, \tmp, #0, #16 msr_s SYS_GCR_EL1, \tmp2 - isb #endif .endm
arch/arm64/kernel/entry.S alternative_else_nop_endif · line 199
Quoted 7 lines
arch/arm64/kernel/entry.S +1
-0@@ -194,6 +193,7 @@ alternative_else_nop_endif ldr_l \tmp, gcr_kernel_excl mte_set_gcr \tmp, \tmp2 + isb 1: #endif .endm
It makes sense. I'll apply it after -rc1 once the MTE+kasan patches go in.
Thanks.
Signature · 6 lines
Catalin _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 1 line · Peter Collingbourne
This ISB is unnecessary because we will soon do an ERET.
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: mte: remove an ISB on kernel exit
https://git.kernel.org/arm64/c/b614231dec78
Signature · 7 lines
Catalin _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel