[PATCH] powerpc: Add barrier_nospec to raw_copy_in_user()

Michael Ellerman patch-notifications at ellerman.id.au
Mon Jul 8 11:19:29 AEST 2019

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 <sjitindarsingh at gmail.com>

Applied to powerpc next, thanks.



More information about the Linuxppc-dev mailing list