Re: [PATCH 5/7] x86/speculation: Annotate intra-function calls

From: Peter Zijlstra
Date: Fri Apr 03 2020 - 13:18:43 EST


On Fri, Apr 03, 2020 at 10:14:49AM -0700, Alexandre Chartre wrote:

> So that means that any alternative that does a stack manipulation isn't
> currently supported?

It's fundamentally impossible to correctly unwind through.

Instructions before and after the alternative need to have the same
stack layout irrespective of the alternative chosen.

What we need in this case though is only a different stack layout inside
the alternative, and that is doable.