public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Support interrupt stuffing for Skylake
@ 2018-01-23 22:39 Andi Kleen
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Andi Kleen @ 2018-01-23 22:39 UTC (permalink / raw)
  To: tglx
  Cc: dwmw, thomas.lendacky, peterz, torvalds, luto, x86, gregkh,
	linux-kernel

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-23 22:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-23 22:39 Support interrupt stuffing for Skylake Andi Kleen
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox