summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2018-04-24 14:15:58 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2018-06-03 20:43:45 +1000
commitddf35cf3764b5a182b178105f57515b42e2634f8 (patch)
treeedebc20a9689231fd62d857d9a9e51f9bf3850c3 /arch/powerpc/kernel
parentcb3d6759a93c6d0aea1c10deb6d00e111c29c19c (diff)
downloadtalos-obmc-linux-ddf35cf3764b5a182b178105f57515b42e2634f8.tar.gz
talos-obmc-linux-ddf35cf3764b5a182b178105f57515b42e2634f8.zip
powerpc: Use barrier_nospec in copy_from_user()
Based on the x86 commit doing the same. See commit 304ec1b05031 ("x86/uaccess: Use __uaccess_begin_nospec() and uaccess_try_nospec") and b3bbfb3fb5d2 ("x86: Introduce __uaccess_begin_nospec() and uaccess_try_nospec") for more detail. In all cases we are ordering the load from the potentially user-controlled pointer vs a previous branch based on an access_ok() check or similar. Base on a patch from Michal Suchanek. Signed-off-by: Michal Suchanek <msuchanek@suse.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud