Re: [PATCH] x86/retpoline: Avoid return buffer underflows on context switch

From: Woodhouse, David
Date: Mon Jan 08 2018 - 18:26:23 EST


On Mon, 2018-01-08 at 23:26 +0100, Peter Zijlstra wrote:
>
> > is because that might get interpreted as a "push %rip" and not go on
> > the RSB at all. Hence the 'pause' between each one.
>
> OK, then make the comment say that.

Fixed. I've also shifted the #ifdef CONFIG_RETPOLINE to the call sites
instead of inside the FILL_RETURN_BUFFER macro itself. This is going to
get used with IBRS code too, Real Soon Nowâ.

http://git.infradead.org/users/dwmw2/linux-retpoline.git/commitdiff/6e961b86558

Attachment: smime.p7s
Description: S/MIME cryptographic signature