]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
x86/entry: Mark check_user_regs() noinstr
authorThomas Gleixner <tglx@linutronix.de>
Wed, 8 Jul 2020 19:28:06 +0000 (21:28 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 9 Jul 2020 09:18:29 +0000 (11:18 +0200)
It's called from the non-instrumentable section.

Fixes: c9c26150e61d ("x86/entry: Assert that syscalls are on the right stack")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20200708192934.191497962@linutronix.de
arch/x86/entry/common.c

index e83b3f14897cc43ba1ea31a820b5014197ad7adf..ea7b515e3bc28904dbf27372a8ed50089aeb1621 100644 (file)
@@ -46,7 +46,7 @@
 #include <trace/events/syscalls.h>
 
 /* Check that the stack and regs on entry from user mode are sane. */
-static void check_user_regs(struct pt_regs *regs)
+static noinstr void check_user_regs(struct pt_regs *regs)
 {
        if (IS_ENABLED(CONFIG_DEBUG_ENTRY)) {
                /*