summaryrefslogtreecommitdiffstats
path: root/arch/loongarch
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2024-09-17 16:23:10 +0200
committerHuacai Chen <chenhuacai@loongson.cn>2024-09-17 16:23:10 +0200
commit0eb0bd21e8382d10be8108952a0bb819915e1e2d (patch)
tree2f56a31a75f48e3caceae7e751b9739acb9aa006 /arch/loongarch
parentLoongArch: Set AS_HAS_THIN_ADD_SUB as y if AS_IS_LLVM (diff)
downloadlinux-0eb0bd21e8382d10be8108952a0bb819915e1e2d.tar.xz
linux-0eb0bd21e8382d10be8108952a0bb819915e1e2d.zip
LoongArch: Remove STACK_FRAME_NON_STANDARD(do_syscall)
For now, we can remove STACK_FRAME_NON_STANDARD(do_syscall) because there is no objtool warning "do_syscall+0x11c: return with modified stack frame", then there is handle_syscall() which is the previous frame of do_syscall() in the call trace when executing the command "echo l > /proc/sysrq-trigger". Fixes: a0f7085f6a63 ("LoongArch: Add RANDOMIZE_KSTACK_OFFSET support") Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch')
-rw-r--r--arch/loongarch/kernel/syscall.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/loongarch/kernel/syscall.c b/arch/loongarch/kernel/syscall.c
index ba5d0930a74f..168bd97540f8 100644
--- a/arch/loongarch/kernel/syscall.c
+++ b/arch/loongarch/kernel/syscall.c
@@ -79,7 +79,3 @@ void noinstr __no_stack_protector do_syscall(struct pt_regs *regs)
syscall_exit_to_user_mode(regs);
}
-
-#ifdef CONFIG_RANDOMIZE_KSTACK_OFFSET
-STACK_FRAME_NON_STANDARD(do_syscall);
-#endif