[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250608195043.4953-1-khaliidcaliy@gmail.com>
Date: Sun, 8 Jun 2025 19:48:28 +0000
From: Khalid Ali <khaliidcaliy@...il.com>
To: tglx@...utronix.de,
peterz@...radead.org,
luto@...nel.org
Cc: linux-kernel@...r.kernel.org,
Khalid Ali <khaliidcaliy@...il.com>
Subject: [PATCH] include/linux: Fix outdated comment on entry-common.h
From: Khalid Ali <khaliidcaliy@...il.com>
On most calls to this function, syscall_enter_from_user_mode_prepare()
never get called as the comment indicates.
Privious kernel version i used to see things happen as the function documentation
indicated (syscall_enter_from_user_mode_prepare() called before
syscall_enter_from_user_mode_work), however it seems now some things
have changed which makes that point irrevelant. Most preparations that
function does is handled manually by enter_from_user_mode() and
some other places. So this makes it misleading.
The point is remove strict function call indication on documentation as might be outdated
one day in the future. There multiple places currently called
syscall_enter_from_user_mode_work() without
syscall_enter_from_user_mode_prepare() get called so that will make it
condition not met.
Signed-off-by: Khalid Ali <khaliidcaliy@...il.com>
---
include/linux/entry-common.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h
index f94f3fdf15fc..8b52551600cf 100644
--- a/include/linux/entry-common.h
+++ b/include/linux/entry-common.h
@@ -146,8 +146,7 @@ long syscall_trace_enter(struct pt_regs *regs, long syscall,
* @syscall: The syscall number
*
* Invoked from architecture specific syscall entry code with interrupts
- * enabled after invoking syscall_enter_from_user_mode_prepare() and extra
- * architecture specific work.
+ * enabled and extra architecture specific work.
*
* Returns: The original or a modified syscall number
*
--
2.49.0
Powered by blists - more mailing lists