From 6fb022dcc843b815cf33db6263a6590e7f936b01 Mon Sep 17 00:00:00 2001 From: Yipeng Zou Date: Thu, 19 Jun 2025 03:44:38 +0000 Subject: [PATCH] arm64: xcall: Fix GPR touch as the original step hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/ICG4XI -------------------------------- Kernel_{entry, exit} fast mode should only skip some alternative step but not any register. Fix it directly, moves all register touch outside fast mode. Fixes: f22cbd7df343 ("arm64: Faster SVC exception handler with xcall") Signed-off-by: Yipeng Zou --- arch/arm64/kernel/entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S index 976f629c60fe..b9d5b9b9ea52 100644 --- a/arch/arm64/kernel/entry.S +++ b/arch/arm64/kernel/entry.S @@ -212,8 +212,8 @@ alternative_else_nop_endif * Ensure MDSCR_EL1.SS is clear, since we can unmask debug exceptions * when scheduling. */ - .if \fast_mode == std ldr x19, [tsk, #TSK_TI_FLAGS] + .if \fast_mode == std disable_step_tsk x19, x20 .endif -- Gitee