[patch 04/18] loongarch/syscall: Use syscall_enter_from_user_mode_randomize_stack()
Philippe Mathieu-Daudé
philmd at oss.qualcomm.com
Thu Jul 9 04:15:55 PDT 2026
On 7/7/26 21:06, Thomas Gleixner wrote:
> syscall_enter_from_user_mode_randomize_stack() replaces
> syscall_enter_from_user_mode() and the subsequent invocation of
> add_random_kstack_offset().
>
> The advantage is that it applies the stack randomization right after
> enter_from_user_mode() and thereby avoids the overhead of get/put_cpu_var()
> as that code is invoked with interrupts disabled.
>
> No functional change.
>
> Signed-off-by: Thomas Gleixner <tglx at kernel.org>
> Cc: Huacai Chen <chenhuacai at kernel.org>
> Cc: loongarch at lists.linux.dev
> ---
> arch/loongarch/kernel/syscall.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd at oss.qualcomm.com>
More information about the linux-riscv
mailing list