Re: [PATCH] x86/retpoline: Remove the esp/rsp thunk

From: David Woodhouse
Date: Mon Jan 22 2018 - 17:22:08 EST


On Mon, 2018-01-22 at 17:09 -0500, Waiman Long wrote:
> It doesn't make sense to have an indirect call thunk with esp/rsp as
> retpoline code won't work correctly with the stack pointer register.
> Removing it will help compiler writers to catch error in case such
> a thunk call is emitted incorrectly.
>
> Fixes: 76b043848fd2 ("x86/retpoline: Add initial retpoline support")
> Suggested-by: Jeff Law <law@xxxxxxxxxx>
> Signed-off-by: Waiman Long <longman@xxxxxxxxxx>

Acked-by: David Woodhouse <dwmw@xxxxxxxxxxxx>

I spotted that and *almost* removed it a couple of times in other
refactoring, but after abandoning those I forgot to come back and do
just this. Thanks.

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