]> 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)
commita33e78ee881339b5d229d5ce5582e38436bc58ce
treea5abaabc14741dd43fee27548a65a84c015fbeca
parent9b8057e7f937f20763a90a8fc2333168af101732
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