diff options
author | Suraj Jitindar Singh | 2019-03-06 02:10:38 +0100 |
---|---|---|
committer | Michael Ellerman | 2019-07-03 07:19:36 +0200 |
commit | 6fbcdd59094ade30db63f32316e9502425d7b256 (patch) | |
tree | b8bb4bd4a9c755717f4513f876547040eabaa78f /tools/testing/selftests/powerpc | |
parent | KVM: PPC: Book3S HV: Fix CR0 setting in TM emulation (diff) | |
download | kernel-qcow2-linux-6fbcdd59094ade30db63f32316e9502425d7b256.tar.gz kernel-qcow2-linux-6fbcdd59094ade30db63f32316e9502425d7b256.tar.xz kernel-qcow2-linux-6fbcdd59094ade30db63f32316e9502425d7b256.zip |
powerpc: Add barrier_nospec to raw_copy_in_user()
Commit ddf35cf3764b ("powerpc: Use barrier_nospec in copy_from_user()")
Added barrier_nospec before loading from user-controlled 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.
Fixes: ddf35cf3764b ("powerpc: Use barrier_nospec in copy_from_user()")
Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc')
0 files changed, 0 insertions, 0 deletions