Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

From: Linus Torvalds
Date: Wed Jan 03 2018 - 20:54:54 EST


On Wed, Jan 3, 2018 at 5:51 PM, Dan Williams <dan.j.williams@xxxxxxxxx> wrote:
>
> Elena has done the work of auditing static analysis reports to a dozen
> or so locations that need some 'nospec' handling.

I'd love to see that patch, just to see how bad things look.

Because I think that really is very relevant to the interface too.

If we're talking "a dozen locations" that are fairly well constrained,
that's very different from having thousands all over the place.

Linus