diff --git a/arch/powerpc/kernel/syscall.c b/arch/powerpc/kernel/syscall.c index ee07b2ed5029..b4d0159e29f8 100644 --- a/arch/powerpc/kernel/syscall.c +++ b/arch/powerpc/kernel/syscall.c @@ -2,7 +2,6 @@ #include #include -#include #include #include @@ -19,8 +18,7 @@ notrace long system_call_exception(struct pt_regs *regs, unsigned long r0) long ret; syscall_fn f; - r0 = syscall_enter_from_user_mode(regs, r0); - add_random_kstack_offset(); + r0 = syscall_enter_from_user_mode_randomize_stack(regs, r0); if (unlikely(r0 >= NR_syscalls)) { if (unlikely(trap_is_unsupported_scv(regs))) {