Re: [PATCH 2/6] ptrace: introduce ptrace_syscall_enter to consolidate PTRACE_SYSEMU handling

2019-03-04 Thread Sudeep Holla
On Mon, Mar 04, 2019 at 06:23:32AM -0600, Segher Boessenkool wrote: > On Mon, Mar 04, 2019 at 10:46:43AM +, Sudeep Holla wrote: > > On Mon, Mar 04, 2019 at 08:03:47AM +, Haibo Xu (Arm Technology China) > > wrote: > > > On 2019/3/1 2:32, Sudeep Holla wrote: > > > > +long ptrace_syscall_ente

Re: [PATCH 2/6] ptrace: introduce ptrace_syscall_enter to consolidate PTRACE_SYSEMU handling

2019-03-04 Thread Segher Boessenkool
On Mon, Mar 04, 2019 at 10:46:43AM +, Sudeep Holla wrote: > On Mon, Mar 04, 2019 at 08:03:47AM +, Haibo Xu (Arm Technology China) > wrote: > > On 2019/3/1 2:32, Sudeep Holla wrote: > > > +long ptrace_syscall_enter(struct pt_regs *regs) > > > +{ > > > +#ifdef TIF_SYSCALL_EMU > > > + if (tes

Re: [PATCH 2/6] ptrace: introduce ptrace_syscall_enter to consolidate PTRACE_SYSEMU handling

2019-03-04 Thread Sudeep Holla
On Mon, Mar 04, 2019 at 08:03:47AM +, Haibo Xu (Arm Technology China) wrote: > On 2019/3/1 2:32, Sudeep Holla wrote: > > Currently each architecture handles PTRACE_SYSEMU in very similar way. > > It's completely arch independent and can be handled in the code helping > > to consolidate PTRACE_S

Re: [PATCH 2/6] ptrace: introduce ptrace_syscall_enter to consolidate PTRACE_SYSEMU handling

2019-03-04 Thread Haibo Xu (Arm Technology China)
On 2019/3/1 2:32, Sudeep Holla wrote: > Currently each architecture handles PTRACE_SYSEMU in very similar way. > It's completely arch independent and can be handled in the code helping > to consolidate PTRACE_SYSEMU handling. > > Let's introduce a hook 'ptrace_syscall_enter' that arch specific sysc

[PATCH 2/6] ptrace: introduce ptrace_syscall_enter to consolidate PTRACE_SYSEMU handling

2019-02-28 Thread Sudeep Holla
Currently each architecture handles PTRACE_SYSEMU in very similar way. It's completely arch independent and can be handled in the code helping to consolidate PTRACE_SYSEMU handling. Let's introduce a hook 'ptrace_syscall_enter' that arch specific syscall entry code can call. Cc: Oleg Nesterov Si