Re: [tip: x86/core] x86/alternative: Patch a single alternative location only once

From: Borislav Petkov

Date: Tue Oct 14 2025 - 10:39:23 EST


On Tue, Oct 14, 2025 at 04:31:31PM +0200, Jürgen Groß wrote:
> I have this here in the commit message:
>
> - In case of replacing an indirect with a direct call using the
> ALT_FLAG_DIRECT_CALL flag, there is no longer the need to have that
> instance before any other instances at the same location (the
> original instruction is needed for finding the target of the direct
> call).
>
> which is explaining why the problem is occurring. Isn't that enough?

I can guess what this is about but a concrete example here would make it
a lot clearer, I'd say.

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette