Re: [PATCH v6 1/6] arm64: ptrace: add PTRACE_SET_SYSCALL

2014-09-03 Thread Kees Cook
On Tue, Aug 26, 2014 at 10:32 PM, AKASHI Takahiro wrote: > Kees, > > > On 08/27/2014 02:46 AM, Will Deacon wrote: >> >> On Fri, Aug 22, 2014 at 01:19:13AM +0100, AKASHI Takahiro wrote: >>> >>> On 08/22/2014 01:47 AM, Kees Cook wrote: On Thu, Aug 21, 2014 at 3:56 AM, AKASHI Takahiro

Re: [PATCH v6 1/6] arm64: ptrace: add PTRACE_SET_SYSCALL

2014-08-26 Thread AKASHI Takahiro
Kees, On 08/27/2014 02:46 AM, Will Deacon wrote: On Fri, Aug 22, 2014 at 01:19:13AM +0100, AKASHI Takahiro wrote: On 08/22/2014 01:47 AM, Kees Cook wrote: On Thu, Aug 21, 2014 at 3:56 AM, AKASHI Takahiro wrote: To allow tracer to be able to change/skip a system call by re-writing a syscall n

Re: [PATCH v6 1/6] arm64: ptrace: add PTRACE_SET_SYSCALL

2014-08-26 Thread Will Deacon
On Fri, Aug 22, 2014 at 01:19:13AM +0100, AKASHI Takahiro wrote: > On 08/22/2014 01:47 AM, Kees Cook wrote: > > On Thu, Aug 21, 2014 at 3:56 AM, AKASHI Takahiro > > wrote: > >> To allow tracer to be able to change/skip a system call by re-writing > >> a syscall number, there are several approaches

Re: [PATCH v6 1/6] arm64: ptrace: add PTRACE_SET_SYSCALL

2014-08-21 Thread AKASHI Takahiro
On 08/22/2014 01:47 AM, Kees Cook wrote: On Thu, Aug 21, 2014 at 3:56 AM, AKASHI Takahiro wrote: To allow tracer to be able to change/skip a system call by re-writing a syscall number, there are several approaches: (1) modify x8 register with ptrace(PTRACE_SETREGSET), and handle this case

Re: [PATCH v6 1/6] arm64: ptrace: add PTRACE_SET_SYSCALL

2014-08-21 Thread Kees Cook
On Thu, Aug 21, 2014 at 3:56 AM, AKASHI Takahiro wrote: > To allow tracer to be able to change/skip a system call by re-writing > a syscall number, there are several approaches: > > (1) modify x8 register with ptrace(PTRACE_SETREGSET), and handle this case > later on in syscall_trace_enter(),