On 7/8/2026 3:06 AM, Thomas Gleixner wrote: > enter_from_user_mode_randomize_stack() replaces enter_from_user_mode() and > the subsequent invocation of add_random_kstack_offset_irqsoff(). > > As a bonus this avoids the overhead of get/put_cpu_var() in > add_random_kstack_offset(). > > No functional change. > > Signed-off-by: Thomas Gleixner <[email protected]> > Cc: Sven Schnelle <[email protected]> > Cc: [email protected] > --- > arch/s390/kernel/syscall.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > --- a/arch/s390/kernel/syscall.c > +++ b/arch/s390/kernel/syscall.c > @@ -97,8 +97,8 @@ void noinstr __do_syscall(struct pt_regs > { > unsigned long nr; > > - enter_from_user_mode(regs); > - add_random_kstack_offset(); > + enter_from_user_mode_randomize_stack(regs); Reviewed-by: Jinjie Ruan <[email protected]> > + > regs->psw = get_lowcore()->svc_old_psw; > regs->int_code = get_lowcore()->svc_int_code; > update_timer_sys(); >
- Re: [patch 05/18] powerpc/syscall: Use syscal... Radu Rendec
- Re: [patch 05/18] powerpc/syscall: Use syscal... Jinjie Ruan
- Re: [patch 05/18] powerpc/syscall: Use syscal... Philippe Mathieu-Daudé
- [patch 06/18] riscv/syscall: Use syscall_enter_fro... Thomas Gleixner
- Re: [patch 06/18] riscv/syscall: Use syscall_... Radu Rendec
- Re: [patch 06/18] riscv/syscall: Use syscall_... Jinjie Ruan
- Re: [patch 06/18] riscv/syscall: Use syscall_... Philippe Mathieu-Daudé
- [patch 07/18] s390/syscall: Use enter_from_user_mo... Thomas Gleixner
- Re: [patch 07/18] s390/syscall: Use enter_fro... Sven Schnelle
- Re: [patch 07/18] s390/syscall: Use enter_fro... Radu Rendec
- Re: [patch 07/18] s390/syscall: Use enter_fro... Jinjie Ruan
- Re: [patch 07/18] s390/syscall: Use enter_fro... Jinjie Ruan
- Re: [patch 07/18] s390/syscall: Use enter... Philippe Mathieu-Daudé
- [patch 08/18] x86/syscall: Use [syscall_]enter_fro... Thomas Gleixner
- Re: [patch 08/18] x86/syscall: Use [syscall_]... Radu Rendec
- Re: [patch 08/18] x86/syscall: Use [syscall_]... Jinjie Ruan
- Re: [patch 08/18] x86/syscall: Use [syscall_]... Philippe Mathieu-Daudé
- [patch 09/18] entry: Remove syscall_enter_from_use... Thomas Gleixner
- Re: [patch 09/18] entry: Remove syscall_enter... Radu Rendec
- Re: [patch 09/18] entry: Remove syscall_e... Thomas Gleixner
- Re: [patch 09/18] entry: Remove syscall_enter... Jinjie Ruan
