Skip to content
Commit f495d2ec authored by Al Viro's avatar Al Viro Committed by Paul Gortmaker
Browse files

sparc32: fix register window handling in genregs32_[gs]et()



commit cf51e129 upstream.

It needs access_process_vm() if the traced process does not share
mm with the caller.  Solution is similar to what sparc64 does.
Note that genregs32_set() is only ever called with pos being 0
or 32 * sizeof(u32) (the latter - as part of PTRACE_SETREGS
handling).

Cc: stable@kernel.org
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent ced6b26a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment