From: Thomas Gleixner <tglx@linutronix.de>
To: LKML <linux-kernel@vger.kernel.org>
Cc: x86@kernel.org
Subject: [patch 2/3] x86/entry: Mark check_user_regs() noinstr
Date: Wed, 08 Jul 2020 21:28:06 +0200 [thread overview]
Message-ID: <20200708192934.191497962@linutronix.de> (raw)
In-Reply-To: 20200708192804.911958542@linutronix.de
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>
---
arch/x86/entry/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/x86/entry/common.c
+++ b/arch/x86/entry/common.c
@@ -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)) {
/*
next prev parent reply other threads:[~2020-07-08 19:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-08 19:28 [patch 0/3] x86/entry: A couple of small fixes Thomas Gleixner
2020-07-08 19:28 ` [patch 1/3] x86/traps: Disable interrupts in exc_aligment_check() Thomas Gleixner
2020-07-09 9:22 ` [tip: x86/urgent] " tip-bot2 for Thomas Gleixner
2020-07-08 19:28 ` Thomas Gleixner [this message]
2020-07-09 9:22 ` [tip: x86/urgent] x86/entry: Mark check_user_regs() noinstr tip-bot2 for Thomas Gleixner
2020-07-08 19:28 ` [patch 3/3] x86/entry/common: Make prepare_exit_to_usermode() static Thomas Gleixner
2020-07-09 9:22 ` [tip: x86/urgent] " tip-bot2 for Thomas Gleixner
2020-07-08 21:17 ` [patch 0/3] x86/entry: A couple of small fixes Andy Lutomirski
2020-07-09 9:09 ` Peter Zijlstra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200708192934.191497962@linutronix.de \
--to=tglx@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox