Re: [PATCH v3 01/13] x86/retpoline: Add initial retpoline support

From: Borislav Petkov
Date: Fri Jan 05 2018 - 11:45:16 EST


On Fri, Jan 05, 2018 at 04:41:46PM +0000, Woodhouse, David wrote:
> Nope, alternatives are broken. Only a jmp as the *first* opcode of
> altinstr gets handled by recompute_jump(), while any subsequent insn is
> just copied untouched.

Not broken - simply no one needed it until now. I'm looking into it.
Looks like the insn decoder might come in handy finally.

:-)

--
Regards/Gruss,
Boris.

SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)
--