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

From
Dan Williams <hidden>
Date
2018-01-06 18:54:30
Also in
linux-arch, lkml
Reply to
Alexei Starovoitov, 2018-01-06
On Sat, Jan 6, 2018 at 10:39 AM, Alexei Starovoitov
[off-list ref] wrote:
[..]
quoted
retpoline is variant-2, this patch series is about variant-1.
that's exactly the point. Don't slow down the kernel with lfences
to solve variant 1. retpoline for 2 is ok from long term kernel
viability perspective.
Setting aside that we still need to measure the impact of these
changes the end result will still be nospec_array_ptr() sprinkled in
various locations. So can we save the debate about what's inside that
macro on various architectures and at least proceed with annotating
the problematic locations? Perhaps we can go a step further and have a
config option to switch between the clever array_access() approach
from Linus that might be fine depending on the compiler, and the
cpu-vendor-recommended not to speculate implementation of
nospec_array_ptr().
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