]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfd824fcc3d6be6fc9985fd9c02adec6c7e275be8
treea5abaabc14741dd43fee27548a65a84c015fbeca
parent0e6c92ce1d170795a396f8108369eb2c8412797f
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: 17804cc2f2a8 ([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