All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Lindholm <linmag7@gmail.com>
To: richard.henderson@linaro.org, mattst88@gmail.com,
	linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org
Cc: glaubitz@physik.fu-berlin.de, mcree@orcon.net.nz,
	Magnus Lindholm <linmag7@gmail.com>
Subject: [PATCH v5 0/1] alpha: enable GENERIC_ENTRY
Date: Wed,  2 Sep 2026 20:38:55 +0200	[thread overview]
Message-ID: <20260902184058.198679-1-linmag7@gmail.com> (raw)

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@gmail.com/

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


             reply	other threads:[~2026-09-02 18:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02 18:38 Magnus Lindholm [this message]
2026-09-02 18:38 ` [PATCH 1/1] alpha: enable GENERIC_ENTRY Magnus Lindholm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260902184058.198679-1-linmag7@gmail.com \
    --to=linmag7@gmail.com \
    --cc=glaubitz@physik.fu-berlin.de \
    --cc=linux-alpha@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mattst88@gmail.com \
    --cc=mcree@orcon.net.nz \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.