Re: [RFCv2 1/4] asm-generic/barrier: add generic nospec helpers

2018-01-08 Thread Mark Salter
On Fri, 2018-01-05 at 14:57 +, Mark Rutland wrote: > Under speculation, CPUs may mis-predict branches in bounds checks. Thus, > memory accesses under a bounds check may be speculated even if the > bounds check fails, providing a primitive for building a side channel. > > This patch adds helper

[RFCv2 1/4] asm-generic/barrier: add generic nospec helpers

2018-01-05 Thread Mark Rutland
Under speculation, CPUs may mis-predict branches in bounds checks. Thus, memory accesses under a bounds check may be speculated even if the bounds check fails, providing a primitive for building a side channel. This patch adds helpers which can be used to inhibit the use of out-of-bounds pointers