Skip to content

Commit 0eb0bd2

Browse files
seehearfeelchenhuacai
authored andcommitted
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: a0f7085 ("LoongArch: Add RANDOMIZE_KSTACK_OFFSET support") Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent a7e0837 commit 0eb0bd2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/loongarch/kernel/syscall.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,3 @@ void noinstr __no_stack_protector do_syscall(struct pt_regs *regs)
7979

8080
syscall_exit_to_user_mode(regs);
8181
}
82-
83-
#ifdef CONFIG_RANDOMIZE_KSTACK_OFFSET
84-
STACK_FRAME_NON_STANDARD(do_syscall);
85-
#endif

0 commit comments

Comments
 (0)