Re: powerpc/ptrace: Use copy_{from, to}_user() rather than open-coding

2018-06-04 Thread Michael Ellerman
On Tue, 2018-05-29 at 12:57:38 UTC, Michael Ellerman wrote: > From: Al Viro > > 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

Re: [PATCH] powerpc/ptrace: Use copy_{from, to}_user() rather than open-coding

2018-05-30 Thread Samuel Mendoza-Jonas
On Tue, 2018-05-29 at 22:57 +1000, Michael Ellerman wrote: > From: Al Viro > > 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

[PATCH] powerpc/ptrace: Use copy_{from, to}_user() rather than open-coding

2018-05-29 Thread Michael Ellerman
From: Al Viro 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 Signed-off-by: Michael Ellerman ---