Re: [PATCH 06/18] x86, barrier: stop speculation for failed access_ok

From
Alexei Starovoitov <hidden>
Date
2018-01-08 02:57:41
Also in
lkml, netdev
Reply to
Alan Cox, 2018-01-07
On Sun, Jan 07, 2018 at 01:59:35PM +0000, Alan Cox wrote:
quoted
which means that POC is relying 64-bit address speculation.
In the places coverity found the user supplied value is 32-bit,
People have 32bit computers as well as 64bit and in some cases 32bit is
fine for an attack depending where your target is relative to the object.
right. absolutely correct on 32-bit archs.
The question whether truncation to 32-bit is enough to workaround
spectre1 on 64-bit archs.
I hope the researchers can clarify.
lfence timing is also heavily dependent upon what work has to be done to
retire previous live instructions. 
BPF does not normally do a lot of writing so you'd expect the cost to be low.
right. to retire previous loads. Not sure what 'not a lot of writing'
has to do with lfence.

Our XDP based DDOS mostly does reads with few writes for stats into maps,
whereas XDP based load balancer modifies every packet.
XDP is root only, so not relevant in the spectre context. Just clarifying
read vs writes in BPF.
Thread (136 messages) 136 messages, 29 authors, last reply 2018-01-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help