mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] entry: Drive-by fixes for the entry code
@ 2026-10-30 12:31 Florian Bezdeka
  2026-10-30 12:31 ` [PATCH 1/2] entry: Fix return type of syscall_trace_enter() Florian Bezdeka
  2026-10-30 12:31 ` [PATCH 2/2] entry: Complete syscall_enter_from_user_mode_work() to bool migration Florian Bezdeka
  0 siblings, 2 replies; 5+ messages in thread
From: Florian Bezdeka @ 2026-10-30 12:31 UTC (permalink / raw)
  To: Thomas Gleixner, Peter Zijlstra, Andy Lutomirski, Jinjie Ruan
  Cc: linux-kernel, Florian Bezdeka

Hi all,

I had to debug and read a lot of the low level entry code today. While
doing so two minor things jumped at me. I hope those "fixes" are
valuable. Feel free to ignore.

Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
---
Florian Bezdeka (2):
      entry: Fix return type of syscall_trace_enter()
      entry: Complete syscall_enter_from_user_mode_work() to bool migration

 include/linux/entry-common.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
base-commit: a39c950806213f6861d00f90729acaaa21f2d95a
change-id: 20261030-wip-flo-fixup-entry-code-6abd6e2a81fc

Best regards,
-- 
Florian Bezdeka <florian.bezdeka@siemens.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] entry: Fix return type of syscall_trace_enter()
  2026-10-30 12:31 [PATCH 0/2] entry: Drive-by fixes for the entry code Florian Bezdeka
@ 2026-10-30 12:31 ` Florian Bezdeka
  2026-11-09 15:47   ` [tip: core/urgent] " tip-bot2 for Florian Bezdeka
  2026-10-30 12:31 ` [PATCH 2/2] entry: Complete syscall_enter_from_user_mode_work() to bool migration Florian Bezdeka
  1 sibling, 1 reply; 5+ messages in thread
From: Florian Bezdeka @ 2026-10-30 12:31 UTC (permalink / raw)
  To: Thomas Gleixner, Peter Zijlstra, Andy Lutomirski, Jinjie Ruan
  Cc: linux-kernel, Florian Bezdeka

All return values of syscall_trace_enter() were migrated to bool in
commit 71ff30013f19 ("entry: Make return type of syscall_trace_enter() bool"),
but the function declaration has not been updated.

Fixing that up now.

Fixes: 71ff30013f19 ("entry: Make return type of syscall_trace_enter() bool")
Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
---
 include/linux/entry-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h
index fa2854fed1f289b9d2dffbc4bf70ab9927f36917..a8b2430eadc5f8500195454e24f86cd9e0d06614 100644
--- a/include/linux/entry-common.h
+++ b/include/linux/entry-common.h
@@ -62,7 +62,7 @@ void trace_syscall_enter(struct pt_regs *regs);
 void trace_syscall_exit(struct pt_regs *regs, long ret);
 void syscall_enter_audit(struct pt_regs *regs);
 
-static __always_inline long syscall_trace_enter(struct pt_regs *regs, unsigned long work,
+static __always_inline bool syscall_trace_enter(struct pt_regs *regs, unsigned long work,
 						long syscall)
 {
 	/*

-- 
2.56.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] entry: Complete syscall_enter_from_user_mode_work() to bool migration
  2026-10-30 12:31 [PATCH 0/2] entry: Drive-by fixes for the entry code Florian Bezdeka
  2026-10-30 12:31 ` [PATCH 1/2] entry: Fix return type of syscall_trace_enter() Florian Bezdeka
@ 2026-10-30 12:31 ` Florian Bezdeka
  2026-11-09 15:47   ` [tip: core/urgent] " tip-bot2 for Florian Bezdeka
  1 sibling, 1 reply; 5+ messages in thread
From: Florian Bezdeka @ 2026-10-30 12:31 UTC (permalink / raw)
  To: Thomas Gleixner, Peter Zijlstra, Andy Lutomirski, Jinjie Ruan
  Cc: linux-kernel, Florian Bezdeka

The return type of syscall_enter_from_user_mode_work() was changed to
bool in the commit referenced below, see Fixes: tag.

While doing so, one caller in
syscall_enter_from_user_mode_randomize_stack() was overlooked and
stayed at the previous type: long. Updating this caller accordingly
now.

Fixes: 05c033db7e9a ("entry, treewide: Make syscall_enter_from_user_mode[_work]() indicate syscall execution")
Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
---
 include/linux/entry-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h
index a8b2430eadc5f8500195454e24f86cd9e0d06614..15278416f8860724d90bb2f8862017fdf678771e 100644
--- a/include/linux/entry-common.h
+++ b/include/linux/entry-common.h
@@ -202,7 +202,7 @@ do {									\
 									\
 	instrumentation_begin();					\
 	local_irq_enable();						\
-	long _ret = syscall_enter_from_user_mode_work(regs, syscall);	\
+	bool _ret = syscall_enter_from_user_mode_work(regs, syscall);	\
 	instrumentation_end();						\
 									\
 	_ret;								\

-- 
2.56.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [tip: core/urgent] entry: Complete syscall_enter_from_user_mode_work() to bool migration
  2026-10-30 12:31 ` [PATCH 2/2] entry: Complete syscall_enter_from_user_mode_work() to bool migration Florian Bezdeka
@ 2026-11-09 15:47   ` tip-bot2 for Florian Bezdeka
  0 siblings, 0 replies; 5+ messages in thread
From: tip-bot2 for Florian Bezdeka @ 2026-11-09 15:47 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Florian Bezdeka, Thomas Gleixner, stable, x86, linux-kernel

The following commit has been merged into the core/urgent branch of tip:

Commit-ID:     efe191f1605a149b06eb0fe1ff975e7d3137c9bb
Gitweb:        https://git.kernel.org/tip/efe191f1605a149b06eb0fe1ff975e7d3137c9bb
Author:        Florian Bezdeka <florian.bezdeka@siemens.com>
AuthorDate:    Fri, 30 Oct 2026 13:31:42 +01:00
Committer:     Thomas Gleixner <tglx@kernel.org>
CommitterDate: Mon, 09 Nov 2026 16:43:18 +01:00

entry: Complete syscall_enter_from_user_mode_work() to bool migration

The return type of syscall_enter_from_user_mode_work() was changed to
bool in the commit referenced below.

While doing so, one caller in syscall_enter_from_user_mode_randomize_stack()
was overlooked and stayed at the previous type: long.

Update this caller accordingly.

Fixes: 05c033db7e9a ("entry, treewide: Make syscall_enter_from_user_mode[_work]() indicate syscall execution")
Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20261030-wip-flo-fixup-entry-code-v1-2-7724c29e800b@siemens.com
---
 include/linux/entry-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h
index a8b2430..1527841 100644
--- a/include/linux/entry-common.h
+++ b/include/linux/entry-common.h
@@ -202,7 +202,7 @@ do {									\
 									\
 	instrumentation_begin();					\
 	local_irq_enable();						\
-	long _ret = syscall_enter_from_user_mode_work(regs, syscall);	\
+	bool _ret = syscall_enter_from_user_mode_work(regs, syscall);	\
 	instrumentation_end();						\
 									\
 	_ret;								\

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [tip: core/urgent] entry: Fix return type of syscall_trace_enter()
  2026-10-30 12:31 ` [PATCH 1/2] entry: Fix return type of syscall_trace_enter() Florian Bezdeka
@ 2026-11-09 15:47   ` tip-bot2 for Florian Bezdeka
  0 siblings, 0 replies; 5+ messages in thread
From: tip-bot2 for Florian Bezdeka @ 2026-11-09 15:47 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Florian Bezdeka, Thomas Gleixner, stable, x86, linux-kernel

The following commit has been merged into the core/urgent branch of tip:

Commit-ID:     75b1663222d7aa0b3c33cc3522a347757e6d1d26
Gitweb:        https://git.kernel.org/tip/75b1663222d7aa0b3c33cc3522a347757e6d1d26
Author:        Florian Bezdeka <florian.bezdeka@siemens.com>
AuthorDate:    Fri, 30 Oct 2026 13:31:41 +01:00
Committer:     Thomas Gleixner <tglx@kernel.org>
CommitterDate: Mon, 09 Nov 2026 16:43:18 +01:00

entry: Fix return type of syscall_trace_enter()

All return values of syscall_trace_enter() were migrated to bool in
commit 71ff30013f19 ("entry: Make return type of syscall_trace_enter() bool"),
but the function declaration has not been updated.

Fix that up now.

Fixes: 71ff30013f19 ("entry: Make return type of syscall_trace_enter() bool")
Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20261030-wip-flo-fixup-entry-code-v1-1-7724c29e800b@siemens.com
---
 include/linux/entry-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h
index fa2854f..a8b2430 100644
--- a/include/linux/entry-common.h
+++ b/include/linux/entry-common.h
@@ -62,7 +62,7 @@ void trace_syscall_enter(struct pt_regs *regs);
 void trace_syscall_exit(struct pt_regs *regs, long ret);
 void syscall_enter_audit(struct pt_regs *regs);
 
-static __always_inline long syscall_trace_enter(struct pt_regs *regs, unsigned long work,
+static __always_inline bool syscall_trace_enter(struct pt_regs *regs, unsigned long work,
 						long syscall)
 {
 	/*

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-09 15:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 12:31 [PATCH 0/2] entry: Drive-by fixes for the entry code Florian Bezdeka
2026-10-30 12:31 ` [PATCH 1/2] entry: Fix return type of syscall_trace_enter() Florian Bezdeka
2026-11-09 15:47   ` [tip: core/urgent] " tip-bot2 for Florian Bezdeka
2026-10-30 12:31 ` [PATCH 2/2] entry: Complete syscall_enter_from_user_mode_work() to bool migration Florian Bezdeka
2026-11-09 15:47   ` [tip: core/urgent] " tip-bot2 for Florian Bezdeka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®