Re: Avoid speculative indirect calls in kernel

From: Andi Kleen
Date: Wed Jan 03 2018 - 19:15:07 EST


> It should be a CPU_BUG bit as we have for the other mess. And that can be
> used for patching.

It has to be done at compile time because it requires a compiler option.

Most of the indirect calls are in C code.

So it cannot just patched in, only partially out.

-Andi