Re: [PATCH] x86: pad assembly functions with INT3

From: Ingo Molnar
Date: Tue May 15 2018 - 02:54:13 EST



* hpa@xxxxxxxxx <hpa@xxxxxxxxx> wrote:

> > I guess it won't try to speculatively execute the 'pad' instructions - but you
> > can never really tell!
> >
> > David
>
> The CPU doesn't speculate down past an unconditional control transfer. Doing so
> would be idiotic.

I think, when it comes to speculative execution, our general expectation that CPUs
don't do idiotic things got somewhat weakened in the past year or so ...

Thanks,

Ingo