From: Andi Kleen <andi@firstfloor.org>
To: tglx@linutronix.de
Cc: dwmw@amazon.co.uk, thomas.lendacky@amd.com, peterz@infradead.org,
torvalds@linux-foundation.org, luto@amacapital.net,
x86@kernel.org, gregkh@linux-foundation.org,
linux-kernel@vger.kernel.org
Subject: Support interrupt stuffing for Skylake
Date: Tue, 23 Jan 2018 14:39:14 -0800 [thread overview]
Message-ID: <20180123223916.26904-1-andi@firstfloor.org> (raw)
Skylake with retpoline needs additional protection against return
stack underflows. While full coverage is more involved, there
are some low hanging fruits that are relatively easy. We already
did stuffing on context switch earlier, this adds the next
low hanging fruit: stuffing on interrupts and exception return
to the kernel.
We only need to stuff when returning to the kernel so there is
no impact on anything interrupting user space directly. Also the
additional stuffing is only enabled on Skylake.
Git tree available here
git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git spec/interrupt-stuff-1
v1: Initial post, but based on the earlier skl-rsb code.
next reply other threads:[~2018-01-23 22:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-23 22:39 Andi Kleen [this message]
2018-01-23 22:39 ` [PATCH 1/2] x86/retpoline: Add feature bit for additional return buffer protections Andi Kleen
2018-01-23 22:39 ` [PATCH 2/2] x86/retpoline: Fill return buffer on interrupt return to kernel Andi Kleen
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=20180123223916.26904-1-andi@firstfloor.org \
--to=andi@firstfloor.org \
--cc=dwmw@amazon.co.uk \
--cc=gregkh@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=thomas.lendacky@amd.com \
--cc=torvalds@linux-foundation.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