diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-10-09 22:21:05 +0300 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2019-10-14 21:39:50 +0300 |
commit | 6595d144decec396bf2e2efee27e50634a4b627f (patch) | |
tree | 91dfc29dc79a7a8d7e33df00b784e36ac5597b0b /tools/perf/builtin-sched.c | |
parent | 4f5cafb5cb8471e54afdc9054d973535614f7675 (diff) | |
download | linux-6595d144decec396bf2e2efee27e50634a4b627f.tar.xz |
xtensa: fix {get,put}_user() for 64bit values
First of all, on short copies __copy_{to,from}_user() return the amount
of bytes left uncopied, *not* -EFAULT. get_user() and put_user() are
expected to return -EFAULT on failure.
Another problem is get_user(v32, (__u64 __user *)p); that should
fetch 64bit value and the assign it to v32, truncating it in process.
Current code, OTOH, reads 8 bytes of data and stores them at the
address of v32, stomping on the 4 bytes that follow v32 itself.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'tools/perf/builtin-sched.c')
0 files changed, 0 insertions, 0 deletions