From: Tiezhu Yang Date: Tue, 17 Sep 2024 14:23:10 +0000 (+0800) Subject: LoongArch: Remove STACK_FRAME_NON_STANDARD(do_syscall) X-Git-Tag: v6.12-rc1~27^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0eb0bd21e8382d10be8108952a0bb819915e1e2d;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Huacai Chen --- diff --git a/arch/loongarch/kernel/syscall.c b/arch/loongarch/kernel/syscall.c index ba5d0930a74f7..168bd97540f8c 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