Re: [PATCH v2 1/2] syscall_user_dispatch: Make it configurable in Kconfig
From: Thomas Gleixner
Date: Sun Jul 05 2026 - 16:32:05 EST
On Fri, Jul 03 2026 at 21:58, Gregory Price wrote:
> Syscall User Dispatch is presently built under CONFIG_GENERIC_SYSCALL
> and cannot be disabled independently.
>
> Add CONFIG_SYSCALL_USER_DISPATCH to make it an optional feature.
>
> Signed-off-by: Gregory Price <gourry@xxxxxxxxxx>
> ---
> arch/Kconfig | 11 ++++++++
> include/linux/entry-common.h | 6 ++---
> include/linux/syscall_user_dispatch.h | 28 +++++++++++++++++++--
> include/linux/syscall_user_dispatch_types.h | 2 +-
> kernel/entry/Makefile | 3 ++-
> 5 files changed, 42 insertions(+), 8 deletions(-)
>
> diff --git a/arch/Kconfig b/arch/Kconfig
> index fa7507ac8e13..192b9d8abb5f 100644
> --- a/arch/Kconfig
> +++ b/arch/Kconfig
> @@ -114,6 +114,17 @@ config GENERIC_ENTRY
> select GENERIC_IRQ_ENTRY
> select GENERIC_SYSCALL
>
> +config SYSCALL_USER_DISPATCH
> + bool "Syscall User Dispatch"
> + depends on GENERIC_ENTRY
> + default y
> + help
> + Syscall User Dispatch lets a thread have its own system calls outside
> + an allowed IP address range to be intercepted and redirected to a
> + userspace signal handler.
Space/TAB mismatch.
Also the mechanism allows to filter either outside an allowed range or
inside an allowed range depending on the mode which is handed to the PRCTL.
> +static inline bool syscall_user_dispatch(struct pt_regs *regs)
__always_inline for the very same reason. Sorry compilers _are_ silly.