On Tue, 2018-05-29 at 12:57:38 UTC, Michael Ellerman wrote: > From: Al Viro <[email protected]> > > In PPC_PTRACE_GETHWDBGINFO and PPC_PTRACE_SETHWDEBUG we do an > access_ok() check and then __copy_{from,to}_user(). > > Instead we should just use copy_{from,to}_user() which does all that > for us and is less error prone. > > Signed-off-by: Al Viro <[email protected]> > Signed-off-by: Michael Ellerman <[email protected]> > Reviewed-by: Samuel Mendoza-Jonas <[email protected]>
Applied to powerpc next. https://git.kernel.org/powerpc/c/6bcdd2972b9f6ebda9ae5c7075e2d5 cheers
