]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jun 2020 07:33:04 +0000 (09:33 +0200)
commitf028a8dad0df1f516162b7c3ec29757cb71d7f51
tree655bac9df9a1e0b60238a6571d195ec67fdc1788
parent65ba1ed566fe9ad532701835525e0dbae4538683
sparc64: fix misuses of access_process_vm() in genregs32_[sg]et()

commit 142cd25293f6a7ecbdff4fb0af17de6438d46433 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/kernel/ptrace_64.c