[PATCH v5 0/1] alpha: enable GENERIC_ENTRY

From: Magnus Lindholm

Date: Wed Sep 02 2026 - 14:48:46 EST


Hi,

This is v5 of the Alpha generic-entry series. The five preparatory
patches from the previous posting have now been merged, so this posting
contains only the remaining GENERIC_ENTRY conversion.

The patch moves Alpha's syscall entry, syscall exit, and return-to-user
handling to the generic entry infrastructure. Alpha-specific syscall
dispatch and the r0/r19 return-value encoding remain architecture code,
as do the low-level PALcode return paths.

This version is rebased onto v7.3-rc1 and adapted to Thomas Gleixner's
syscall-entry API changes. It uses
syscall_enter_from_user_mode_randomize_stack() and the new Boolean
syscall-permission result while preserving Alpha's ptrace, seccomp,
restart, and invalid-syscall handling.

This is tested on an UP2000+ SMP. Normal workload, FPU work,
strace testsuit and seccomp kernel testsuit.

Changes since v4:

- Dropped the five preparatory patches that have been merged.
- Rebased the remaining GENERIC_ENTRY patch onto v7.3-rc1.
- Adapted syscall entry to the new Boolean permission API.
- Use the combined syscall-entry and kernel-stack randomization helper.

The previous posting is available here:

Link: https://lore.kernel.org/linux-alpha/20260706170019.2941459-1-linmag7@xxxxxxxxx/

Thanks,
Magnus


Magnus Lindholm (1):
alpha: enable GENERIC_ENTRY

arch/alpha/Kconfig | 2 +
arch/alpha/include/asm/entry-common.h | 14 ++
arch/alpha/include/asm/ptrace.h | 14 +-
arch/alpha/include/asm/stacktrace.h | 20 ++
arch/alpha/include/asm/syscall.h | 11 +-
arch/alpha/include/asm/thread_info.h | 30 +--
arch/alpha/kernel/asm-offsets.c | 5 +
arch/alpha/kernel/entry.S | 322 +++++++-------------------
arch/alpha/kernel/irq_alpha.c | 14 +-
arch/alpha/kernel/proto.h | 9 +-
arch/alpha/kernel/ptrace.c | 130 +++++------
arch/alpha/kernel/signal.c | 164 ++++++++++---
12 files changed, 370 insertions(+), 365 deletions(-)
create mode 100644 arch/alpha/include/asm/entry-common.h
create mode 100644 arch/alpha/include/asm/stacktrace.h

--
2.53.0