Re: [PATCH v7 2/6] arm64: ptrace: allow tracer to skip a system call

2014-10-10 Thread Will Deacon
On Thu, Oct 09, 2014 at 05:29:33AM +0100, AKASHI Takahiro wrote: > On 10/08/2014 11:23 PM, Will Deacon wrote: > > On Thu, Oct 02, 2014 at 10:46:12AM +0100, AKASHI Takahiro wrote: > >> diff --git a/arch/arm64/include/asm/ptrace.h > >> b/arch/arm64/include/asm/ptrace.h > >> index 41ed9e1..736ebc3 10

Re: [PATCH v7 2/6] arm64: ptrace: allow tracer to skip a system call

2014-10-08 Thread AKASHI Takahiro
On 10/08/2014 11:23 PM, Will Deacon wrote: On Thu, Oct 02, 2014 at 10:46:12AM +0100, AKASHI Takahiro wrote: If tracer specifies -1 as a syscall number, this traced system call should be skipped with a value in x0 used as a return value. This patch implements this semantics, but there is one rest

Re: [PATCH v7 2/6] arm64: ptrace: allow tracer to skip a system call

2014-10-08 Thread Will Deacon
On Thu, Oct 02, 2014 at 10:46:12AM +0100, AKASHI Takahiro wrote: > If tracer specifies -1 as a syscall number, this traced system call should > be skipped with a value in x0 used as a return value. > This patch implements this semantics, but there is one restriction here: > >when syscall(-1) i

[PATCH v7 2/6] arm64: ptrace: allow tracer to skip a system call

2014-10-02 Thread AKASHI Takahiro
If tracer specifies -1 as a syscall number, this traced system call should be skipped with a value in x0 used as a return value. This patch implements this semantics, but there is one restriction here: when syscall(-1) is issued by user, tracer cannot skip this system call and modify a retur