sparc64: fix misuses of access_process_vm() in genregs32_[sg]et()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 17 May 2020 19:37:50 +0000 (15:37 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 17 May 2020 20:39:18 +0000 (16:39 -0400)
commit142cd25293f6a7ecbdff4fb0af17de6438d46433
treea5abaabc14741dd43fee27548a65a84c015fbeca
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
sparc64: fix misuses of access_process_vm() in genregs32_[sg]et()

We do need access_process_vm() to access the target's reg_window.
However, access to caller's memory (storing the result in
genregs32_get(), fetching the new values in case of genregs32_set())
should be done by normal uaccess primitives.

Fixes: ad4f95764040 ([SPARC64]: Fix user accesses in regset code.)
Cc: stable@kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/sparc/kernel/ptrace_64.c