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

2014-11-06 Thread Kees Cook
On Wed, Nov 5, 2014 at 6:40 PM, AKASHI Takahiro wrote: > Hi Will, Kees > > #Sorry for this late ping, > > > On 10/09/2014 06:23 PM, Will Deacon wrote: >> >> On Wed, Oct 08, 2014 at 04:30:18PM +0100, Kees Cook wrote: >>> >>> On Wed, Oct 8, 2014 at 9:13 AM, Will Deacon wrote: On Thu, Oct

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

2014-11-06 Thread Kees Cook
On Wed, Nov 5, 2014 at 6:40 PM, AKASHI Takahiro takahiro.aka...@linaro.org wrote: Hi Will, Kees #Sorry for this late ping, On 10/09/2014 06:23 PM, Will Deacon wrote: On Wed, Oct 08, 2014 at 04:30:18PM +0100, Kees Cook wrote: On Wed, Oct 8, 2014 at 9:13 AM, Will Deacon will.dea...@arm.com

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

2014-11-05 Thread AKASHI Takahiro
Hi Will, Kees #Sorry for this late ping, On 10/09/2014 06:23 PM, Will Deacon wrote: On Wed, Oct 08, 2014 at 04:30:18PM +0100, Kees Cook wrote: On Wed, Oct 8, 2014 at 9:13 AM, Will Deacon wrote: On Thu, Oct 02, 2014 at 10:46:11AM +0100, AKASHI Takahiro wrote: diff --git

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

2014-11-05 Thread AKASHI Takahiro
Hi Will, Kees #Sorry for this late ping, On 10/09/2014 06:23 PM, Will Deacon wrote: On Wed, Oct 08, 2014 at 04:30:18PM +0100, Kees Cook wrote: On Wed, Oct 8, 2014 at 9:13 AM, Will Deacon will.dea...@arm.com wrote: On Thu, Oct 02, 2014 at 10:46:11AM +0100, AKASHI Takahiro wrote: diff --git

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

2014-10-09 Thread Will Deacon
On Wed, Oct 08, 2014 at 04:30:18PM +0100, Kees Cook wrote: > On Wed, Oct 8, 2014 at 9:13 AM, Will Deacon wrote: > > On Thu, Oct 02, 2014 at 10:46:11AM +0100, AKASHI Takahiro wrote: > >> diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c > >> index fe63ac5..2842f9f 100644 > >>

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

2014-10-09 Thread Will Deacon
On Wed, Oct 08, 2014 at 04:30:18PM +0100, Kees Cook wrote: On Wed, Oct 8, 2014 at 9:13 AM, Will Deacon will.dea...@arm.com wrote: On Thu, Oct 02, 2014 at 10:46:11AM +0100, AKASHI Takahiro wrote: diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c index fe63ac5..2842f9f

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

2014-10-08 Thread AKASHI Takahiro
On 10/09/2014 12:30 AM, Kees Cook wrote: On Wed, Oct 8, 2014 at 9:13 AM, Will Deacon wrote: Hi Akashi, On Thu, Oct 02, 2014 at 10:46:11AM +0100, 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)

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

2014-10-08 Thread Kees Cook
On Wed, Oct 8, 2014 at 9:13 AM, Will Deacon wrote: > Hi Akashi, > > On Thu, Oct 02, 2014 at 10:46:11AM +0100, 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

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

2014-10-08 Thread Will Deacon
Hi Akashi, On Thu, Oct 02, 2014 at 10:46:11AM +0100, 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

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

2014-10-08 Thread Will Deacon
Hi Akashi, On Thu, Oct 02, 2014 at 10:46:11AM +0100, 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

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

2014-10-08 Thread Kees Cook
On Wed, Oct 8, 2014 at 9:13 AM, Will Deacon will.dea...@arm.com wrote: Hi Akashi, On Thu, Oct 02, 2014 at 10:46:11AM +0100, 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

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

2014-10-08 Thread AKASHI Takahiro
On 10/09/2014 12:30 AM, Kees Cook wrote: On Wed, Oct 8, 2014 at 9:13 AM, Will Deacon will.dea...@arm.com wrote: Hi Akashi, On Thu, Oct 02, 2014 at 10:46:11AM +0100, AKASHI Takahiro wrote: To allow tracer to be able to change/skip a system call by re-writing a syscall number, there are several

[PATCH v7 1/6] arm64: ptrace: add PTRACE_SET_SYSCALL

2014-10-02 Thread AKASHI Takahiro
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(), or (2) support ptrace(PTRACE_SET_SYSCALL) as on arm Thinking of

[PATCH v7 1/6] arm64: ptrace: add PTRACE_SET_SYSCALL

2014-10-02 Thread AKASHI Takahiro
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(), or (2) support ptrace(PTRACE_SET_SYSCALL) as on arm Thinking of