Thread (94 messages) 94 messages, 12 authors, 15h ago

Re: [patch 08/18] x86/syscall: Use [syscall_]enter_from_user_mode_randomize_stack()

From: Philippe Mathieu-Daudé <hidden>
Date: 2026-07-09 11:18:14
Also in: linux-alpha, linux-arch, linux-doc, linux-m68k, linux-mips, linux-riscv, linux-s390, linux-sh, linux-um, lkml, loongarch, sparclinux

On 7/7/26 21:06, Thomas Gleixner wrote:
These functions integrate the stack randomization.

syscall_enter_from_user_mode_randomize_stack() has the advantage that the
randomization happens early right after enter_from_user_mode().

In both cases also the overhead of get/put_cpu_var() in
add_random_kstack_offset() is avoided.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Cc: x86@kernel.org
---
  arch/x86/entry/syscall_32.c         |   19 +++++--------------
  arch/x86/entry/syscall_64.c         |    3 +--
  arch/x86/include/asm/entry-common.h |    1 -
  3 files changed, 6 insertions(+), 17 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help