From 75b1663222d7aa0b3c33cc3522a347757e6d1d26 Mon Sep 17 00:00:00 2001 From: Florian Bezdeka Date: Fri, 30 Oct 2026 13:31:41 +0100 Subject: [PATCH 1/2] 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 Signed-off-by: Thomas Gleixner 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 fa2854fed1f2..a8b2430eadc5 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) { /* From efe191f1605a149b06eb0fe1ff975e7d3137c9bb Mon Sep 17 00:00:00 2001 From: Florian Bezdeka Date: Fri, 30 Oct 2026 13:31:42 +0100 Subject: [PATCH 2/2] 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 Signed-off-by: Thomas Gleixner 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 a8b2430eadc5..15278416f886 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; \