Re: [PATCH v2 10/11] x86/alternatives: Simplify ALTERNATIVE_n()

From: Peter Zijlstra
Date: Wed Sep 13 2023 - 12:15:02 EST


On Wed, Sep 13, 2023 at 04:38:47PM +0200, Borislav Petkov wrote:
> On Wed, Sep 13, 2023 at 10:46:58AM +0200, Peter Zijlstra wrote:
> > We've gone over this multiple times already, also see commit
> > 6c480f222128. That made sure the kernel side adhered to this scheme by
> > making the tail a single instruction irrespective of the length.
>
> Yes, sorry about that. I've been putting off digging deep into objtool
> internals for a while now and there are no more excuses so lemme finally
> read that whole thing and what it does in detail. And thanks for
> explaining again. :-\

No worries, I always seem to forget a detail or two myself :-)

> As to the patch at hand, how does the below look like?

Brain is fried, I'll give it a look tomorrow.