From nobody Sat Oct 4 21:00:51 2025 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 A78412877F7 for ; Wed, 13 Aug 2025 16:29:22 +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=1755102564; cv=none; b=KUWxu/XoZly1llvfeVYO8/Gm5O/1t6IWPvrkLq9wDuA4xpCcEaiUI0kcA/ACjD5n8cuHmO+4tMK8wrgQDDkMSHRzF/GO6bU7lfu2Dzjsl4q0Mrisi+Qb5jH5tO9+n62eWtJKqhUD/UIdpX3/Q0nO3mjW5UxYGGHCDRW0ARTPypU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755102564; c=relaxed/simple; bh=O+ygg52PIQiWANL8HujuilX/IklZioqj6FH+YBMvJ84=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=Okwy2rVmDPzlTnuwl9z/NzpJwmZ4nnKKmFk94ixsMKkCYXWMQklzokJ/jh5bsbvoSDnfTVVw8Jo9GrUuMJNX4879lsetJfH/cIyosKicPF+ymruCR0FG9nBz7YC+w8v0en5p+2xQD7oEDr7SdjUD00rzD7fV+tovkSxab/BTEpo= 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=zizFNKF2; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fo53kI+G; 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="zizFNKF2"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fo53kI+G" Message-ID: <20250813162823.972744605@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1755102561; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=McYOjH3pRC85xYVfVYL6bZ0T+rBBg/9+RCapZBZZnk0=; b=zizFNKF2dSVrMoEtWGzrIM10AfMnqW5OYTsmTFgTvafffWaOXJGlUod94lhB04ACe3VZ76 O5DkEip0ethgFhZtC5eZFifjBmUxovQ/se+5Bkghj2BwjQHNXNSxsB9+/tmGsXrv56OYIz n6c/e1ONhFJ6RHTL9dJ8xHM2KVuuJKNeU8pJfZFjQf0uW9Ky28mAAX1CklTAprmuHvXIHO vApG/+HCV5HSNHgNm5Qf+6nEcmSqwjJDYSEORcKahZjZzl557WdoNWWNtw9LlfyZJVv2cn uBUxK22qYciSxKsXBzKa1xczAvI36GxvjyZlQ0SAJRRWiy3wbeGX4Mo7/4TwOA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1755102561; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=McYOjH3pRC85xYVfVYL6bZ0T+rBBg/9+RCapZBZZnk0=; b=fo53kI+G78MaaWDw8Z4NIYq0/OowuT6lAA/itDQ8GWkIwSWXUwn397U1rlC1lru2muHiFr /jrDp5MBD6xad5DQ== From: Thomas Gleixner To: LKML Cc: Michael Jeanson , Peter Zijlstra , Mathieu Desnoyers , "Paul E. McKenney" , Boqun Feng , Wei Liu , Jens Axboe Subject: [patch 03/11] rseq: Rename rseq_syscall() to rseq_debug_syscall_exit() References: <20250813155941.014821755@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Wed, 13 Aug 2025 18:29:19 +0200 (CEST) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" rseq_syscall() is a debug function, which is invoked before the syscall exit work is handled. Name it so it's clear what it does. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Mathieu Desnoyers Cc: "Paul E. McKenney" Cc: Boqun Feng Reviewed-by: Mathieu Desnoyers --- include/linux/entry-common.h | 2 +- include/linux/rseq.h | 4 ++-- kernel/rseq.c | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) --- a/include/linux/entry-common.h +++ b/include/linux/entry-common.h @@ -162,7 +162,7 @@ static __always_inline void syscall_exit local_irq_enable(); } =20 - rseq_syscall(regs); + rseq_debug_syscall_exit(regs); =20 /* * Do one-time syscall specific work. If these work items are --- a/include/linux/rseq.h +++ b/include/linux/rseq.h @@ -113,9 +113,9 @@ static inline void rseq_exit_to_user_mod #endif /* !CONFIG_RSEQ */ =20 #ifdef CONFIG_DEBUG_RSEQ -void rseq_syscall(struct pt_regs *regs); +void rseq_debug_syscall_exit(struct pt_regs *regs); #else /* CONFIG_DEBUG_RSEQ */ -static inline void rseq_syscall(struct pt_regs *regs) { } +static inline void rseq_debug_syscall_exit(struct pt_regs *regs) { } #endif /* !CONFIG_DEBUG_RSEQ */ =20 #endif /* _LINUX_RSEQ_H */ --- a/kernel/rseq.c +++ b/kernel/rseq.c @@ -427,7 +427,8 @@ void __rseq_handle_notify_resume(struct * this invocation was invoked inside a critical section, then it * will either end up in this code again or a possible violation of * a syscall inside a critical region can only be detected by the - * debug code in rseq_syscall() in a debug enabled kernel. + * debug code in rseq_debug_syscall_exit() in a debug enabled + * kernel. */ if (regs) { /* @@ -476,7 +477,7 @@ void __rseq_handle_notify_resume(struct * Terminate the process if a syscall is issued within a restartable * sequence. */ -void rseq_syscall(struct pt_regs *regs) +void rseq_debug_syscall_exit(struct pt_regs *regs) { unsigned long ip =3D instruction_pointer(regs); struct task_struct *t =3D current;