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

From
Thomas Gleixner <hidden>
Date
2018-01-06 21:21:16
Also in
lkml, netdev
Reply to
Alexei Starovoitov, 2018-01-06
On Sat, 6 Jan 2018, Alexei Starovoitov wrote:
So how about we do array_access() macro similar to above by default
with extra CONFIG_ to convert it to lfence ?
Why default to AND approach instead of lfence ?
Because the kernel should still be usable. If security
sacrifices performance so much such security will be turned off.
Ex: kpti suppose to add 5-30%. If it means 10% on production workload
and the datacenter capacity cannot grow 10% overnight, kpti will be off.
That's the decision and responsibility of the person who disables it.

Thanks,

	tglx
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