Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier
From: Jiri Kosina
Date: Wed Jan 03 2018 - 20:48:01 EST
On Thu, 4 Jan 2018, Alan Cox wrote:
> > If the CPU speculation can cause these kinds of side-effects, it just must
> > not happen, full stop.
>
> At which point your performance will resemble that of a 2012 atom
> processor at best.
You know what? I'd be completely fine with that, if it's traded for "my
ssh and internet banking keys are JUST MINE, ok?" :)
> Clearly if the CPU must be told then C is going to have to grow some
> syntax for it and some other languages are going to see 'taint' moving
> from a purely software construct to a real processor one.
Again, what is the problem with "yeah, it turned out to speed things up in
the past, but hey, it has security issues, so we stopped doing it"
aproach?
Thanks,
--
Jiri Kosina
SUSE Labs