diff options
author | Suraj Jitindar Singh <sjitindarsingh@gmail.com> | 2019-03-06 12:10:38 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-19 09:11:01 +0200 |
commit | a9ce57d57155b21cc667d26f737231b420232a5c (patch) | |
tree | 4bc38466c9cdaf8fb2c74ccaa550052942e535f5 /kernel/module.c | |
parent | 6876bd0c34c8d472f0fe889ad5c8af9b38534882 (diff) |
powerpc: Add barrier_nospec to raw_copy_in_user()
commit 6fbcdd59094ade30db63f32316e9502425d7b256 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/module.c')
0 files changed, 0 insertions, 0 deletions