Re: [PATCH] x86/alternatives: Fix optimize_nops() checking

From: Linus Torvalds
Date: Wed Jan 10 2018 - 14:38:42 EST


On Wed, Jan 10, 2018 at 3:28 AM, Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> Make sure we scan all bytes before we decide to optimize the NOPs in
> there.

Can we also add compile-time checking (presumably in objtool, but who
knows) that there are no relocations in the alternative section?

Because that was the other "oops, this really doesn't work with
altinstructions" issue, wasn't it?

Linus