Skip to content

Commit 006e1ce

Browse files
committed
x86/entry: Mark check_user_regs() noinstr
It's called from the non-instrumentable section. Fixes: c9c2615 ("x86/entry: Assert that syscalls are on the right stack") Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Andy Lutomirski <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent bce9b04 commit 006e1ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/entry/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#include <trace/events/syscalls.h>
4747

4848
/* Check that the stack and regs on entry from user mode are sane. */
49-
static void check_user_regs(struct pt_regs *regs)
49+
static noinstr void check_user_regs(struct pt_regs *regs)
5050
{
5151
if (IS_ENABLED(CONFIG_DEBUG_ENTRY)) {
5252
/*

0 commit comments

Comments
 (0)