From nobody Sat Jul 25 19:30:20 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FBD6480956; Tue, 14 Jul 2026 14:40:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784040008; cv=none; b=gOB0cgUIUQsK6IYSTmOi0mjgkp+QiDn3AWP/TuCkZ+jcEySPN1pmBfXtSHNbeXcb5bITwf9oSiC+n5+l2dGDJdWQqnzmjlJybYENR9KYfYJgdl2iKv9zUDBYNtMMkXHBmPW44UQHARsMv7oUkettbxE1JiqkqdrQ8j/X2tbh+xM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784040008; c=relaxed/simple; bh=TCQuDcckxZDBov3CR5fluV39Cy7gbY1sL373G9iEWsg=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=mFNwrw3GHRPfgIVD6M2DE/WwEQ1UZF8vmUCa9wRnjZIHXxaAuWzazblOsfdglprUwLjfu2rrbLz9NqSp92t3v+iKlPx0WRz/nYT7lXZy2lXNzP91Ev5eqV2DAxed5aLddN89gLjJSz8QXrd2It7kkW6g8X7TCsMvINX4tFxvWuo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=x4rs0YnS; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=4suZPZu9; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="x4rs0YnS"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="4suZPZu9" Date: Tue, 14 Jul 2026 14:40:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784040003; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GjeT2kQFp7kqrLzu9mmkukLranAKWCZBEJRsggWCvu4=; b=x4rs0YnSMSa4YfhdnyYHSjSV/+MEF1W7DQqh9Fwc7JJTxTe9DA5yqcCbdFaKlJo1VwtGfW XYwX8/ZK5yrHDlTLSvUp1mCUOphMZvXmYC5lRgvc+DrIjS4sEVlCvTsC6GSZ9eg+ydyC7Z uf4SffTU7l39WezFxj9wA8XmRqUpFcUAr8I2WkSkNmSXiXkqDWvM23yUW54dmBidPpYago VYwfZdRdQ+ZeZjeaJE83EL9lZnj7fGGqVLytNm+UpJIrarb97ELcqzDvbI+kP0QTTnAcpg 9N3yPREHZTnFimT/xSPPAmofTi3EKAsHUA7eIRClujLLeCghrXq6Si/iXE2MBw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784040003; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GjeT2kQFp7kqrLzu9mmkukLranAKWCZBEJRsggWCvu4=; b=4suZPZu9Jug4MU0lqNRMYD8838t4zrgr9qdFkk1nYAx6QitWTBz04J7IAkEcSOisBYm7cu dYTcfTqA3XTBJHDg== From: "tip-bot2 for Jinjie Ruan" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/entry] syscall_user_dispatch: Introduce ARCH_SUPPORTS_SYSCALL_USER_DISPATCH Cc: Mark Rutland , Jinjie Ruan , Thomas Gleixner , thomas.weissschuh@linutronix.de, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260713035422.582771-1-ruanjinjie@huawei.com> References: <20260713035422.582771-1-ruanjinjie@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178404000204.1844600.12069980154149043547.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the core/entry branch of tip: Commit-ID: 8383e05af734355ba5cdd348991eaa71f6003e71 Gitweb: https://git.kernel.org/tip/8383e05af734355ba5cdd348991eaa71f= 6003e71 Author: Jinjie Ruan AuthorDate: Mon, 13 Jul 2026 11:54:22 +08:00 Committer: Thomas Gleixner CommitterDate: Tue, 14 Jul 2026 16:34:07 +02:00 syscall_user_dispatch: Introduce ARCH_SUPPORTS_SYSCALL_USER_DISPATCH Currently, only x86 genuinely implements and supports Syscall User Dispatch (SUD). Multiple architectures provide a stub arch_syscall_is_vdso_sigreturn() returning 'false' simply to satisfy GENERIC_ENTRY compilation, which creates a false impression of feature support. Introduce ARCH_SUPPORTS_SYSCALL_USER_DISPATCH to decouple this mechanism from GENERIC_ENTRY. Select it exclusively on x86 and remove the redundant stub functions from other architectures. Suggested-by: Mark Rutland Signed-off-by: Jinjie Ruan Signed-off-by: Thomas Gleixner Reviewed-by: Thomas Wei=C3=9Fschuh Link: https://patch.msgid.link/20260713035422.582771-1-ruanjinjie@huawei.com --- arch/Kconfig | 4 ++++ arch/loongarch/include/asm/syscall.h | 6 ------ arch/powerpc/include/asm/syscall.h | 5 ----- arch/riscv/include/asm/syscall.h | 5 ----- arch/s390/include/asm/syscall.h | 5 ----- arch/x86/Kconfig | 1 + 6 files changed, 5 insertions(+), 21 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index d2dbed5..066263c 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -114,8 +114,12 @@ config GENERIC_ENTRY select GENERIC_IRQ_ENTRY select GENERIC_SYSCALL =20 +config ARCH_SUPPORTS_SYSCALL_USER_DISPATCH + bool + config SYSCALL_USER_DISPATCH bool "Syscall User Dispatch" + depends on ARCH_SUPPORTS_SYSCALL_USER_DISPATCH depends on GENERIC_ENTRY default y help diff --git a/arch/loongarch/include/asm/syscall.h b/arch/loongarch/include/= asm/syscall.h index df8ea22..d927501 100644 --- a/arch/loongarch/include/asm/syscall.h +++ b/arch/loongarch/include/asm/syscall.h @@ -84,10 +84,4 @@ static inline int syscall_get_arch(struct task_struct *t= ask) return AUDIT_ARCH_LOONGARCH64; #endif } - -static inline bool arch_syscall_is_vdso_sigreturn(struct pt_regs *regs) -{ - return false; -} - #endif /* __ASM_LOONGARCH_SYSCALL_H */ diff --git a/arch/powerpc/include/asm/syscall.h b/arch/powerpc/include/asm/= syscall.h index 834fcc4..4b3c52e 100644 --- a/arch/powerpc/include/asm/syscall.h +++ b/arch/powerpc/include/asm/syscall.h @@ -139,9 +139,4 @@ static inline int syscall_get_arch(struct task_struct *= task) else return AUDIT_ARCH_PPC64; } - -static inline bool arch_syscall_is_vdso_sigreturn(struct pt_regs *regs) -{ - return false; -} #endif /* _ASM_SYSCALL_H */ diff --git a/arch/riscv/include/asm/syscall.h b/arch/riscv/include/asm/sysc= all.h index 8067e66..987c9a7 100644 --- a/arch/riscv/include/asm/syscall.h +++ b/arch/riscv/include/asm/syscall.h @@ -112,11 +112,6 @@ static inline void syscall_handler(struct pt_regs *reg= s, ulong syscall) regs->a0 =3D fn(regs); } =20 -static inline bool arch_syscall_is_vdso_sigreturn(struct pt_regs *regs) -{ - return false; -} - asmlinkage long sys_riscv_flush_icache(uintptr_t, uintptr_t, uintptr_t); =20 asmlinkage long sys_riscv_hwprobe(struct riscv_hwprobe *, size_t, size_t, diff --git a/arch/s390/include/asm/syscall.h b/arch/s390/include/asm/syscal= l.h index 4271e41..5f310ca 100644 --- a/arch/s390/include/asm/syscall.h +++ b/arch/s390/include/asm/syscall.h @@ -89,11 +89,6 @@ static inline int syscall_get_arch(struct task_struct *t= ask) return AUDIT_ARCH_S390X; } =20 -static inline bool arch_syscall_is_vdso_sigreturn(struct pt_regs *regs) -{ - return false; -} - #define SYSCALL_FMT_0 #define SYSCALL_FMT_1 , "0" (r2) #define SYSCALL_FMT_2 , "d" (r3) SYSCALL_FMT_1 diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index bdad90f..f3f8ad1 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -335,6 +335,7 @@ config X86 select SCHED_SMT if SMP select ARCH_SUPPORTS_SCHED_CLUSTER if SMP select ARCH_SUPPORTS_SCHED_MC if SMP + select ARCH_SUPPORTS_SYSCALL_USER_DISPATCH select HAVE_SINGLE_FTRACE_DIRECT_OPS if X86_64 && DYNAMIC_FTRACE_WITH_DIR= ECT_CALLS =20 config INSTRUCTION_DECODER