On Wed, 2019-03-06 at 01:10:38 UTC, Suraj Jitindar Singh wrote: > Commit ddf35cf3764b ("powerpc: Use barrier_nospec in copy_from_user()") > Added barrier_nospec before loading from user-controller pointers. > The intention was to order the load from the potentially user-controlled > pointer vs a previous branch based on an access_ok() check or similar. > > In order to achieve the same result, add a barrier_nospec to the > raw_copy_in_user() function before loading from such a user-controlled > pointer. > > Signed-off-by: Suraj Jitindar Singh <sjitindarsi...@gmail.com>
Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/6fbcdd59094ade30db63f32316e9502425d7b256 cheers