mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
x86/entry: Mark check_user_regs() noinstr
It's called from the non-instrumentable section.
Fixes: c9c26150e6
("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
This commit is contained in:
parent
bce9b042ec
commit
006e1ced51
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@
|
||||||
#include <trace/events/syscalls.h>
|
#include <trace/events/syscalls.h>
|
||||||
|
|
||||||
/* Check that the stack and regs on entry from user mode are sane. */
|
/* 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)) {
|
if (IS_ENABLED(CONFIG_DEBUG_ENTRY)) {
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue