Re: [PATCH 2/4] MIPS: Add syscall detection for restartable sequences

2018-06-16 Thread Mathieu Desnoyers
- On Jun 15, 2018, at 2:43 PM, Paul Burton paul.bur...@mips.com wrote: > Hi Mathieu, > > On Fri, Jun 15, 2018 at 01:41:25PM -0400, Mathieu Desnoyers wrote: >> > diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S >> > index 38a302919e6b..d7de8adcfcc8 100644 >> > ---

Re: [PATCH 2/4] MIPS: Add syscall detection for restartable sequences

2018-06-16 Thread Mathieu Desnoyers
- On Jun 15, 2018, at 2:43 PM, Paul Burton paul.bur...@mips.com wrote: > Hi Mathieu, > > On Fri, Jun 15, 2018 at 01:41:25PM -0400, Mathieu Desnoyers wrote: >> > diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S >> > index 38a302919e6b..d7de8adcfcc8 100644 >> > ---

Re: [PATCH 2/4] MIPS: Add syscall detection for restartable sequences

2018-06-15 Thread Paul Burton
Hi Mathieu, On Fri, Jun 15, 2018 at 01:41:25PM -0400, Mathieu Desnoyers wrote: > > diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S > > index 38a302919e6b..d7de8adcfcc8 100644 > > --- a/arch/mips/kernel/entry.S > > +++ b/arch/mips/kernel/entry.S > > @@ -79,6 +79,10 @@

Re: [PATCH 2/4] MIPS: Add syscall detection for restartable sequences

2018-06-15 Thread Paul Burton
Hi Mathieu, On Fri, Jun 15, 2018 at 01:41:25PM -0400, Mathieu Desnoyers wrote: > > diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S > > index 38a302919e6b..d7de8adcfcc8 100644 > > --- a/arch/mips/kernel/entry.S > > +++ b/arch/mips/kernel/entry.S > > @@ -79,6 +79,10 @@

Re: [PATCH 2/4] MIPS: Add syscall detection for restartable sequences

2018-06-15 Thread Mathieu Desnoyers
- On Jun 14, 2018, at 7:52 PM, Paul Burton paul.bur...@mips.com wrote: > Syscalls are not allowed inside restartable sequences, so add a call to > rseq_syscall() at the very beginning of the system call exit path when > CONFIG_DEBUG_RSEQ=y. This will help us to detect whether there is a >

Re: [PATCH 2/4] MIPS: Add syscall detection for restartable sequences

2018-06-15 Thread Mathieu Desnoyers
- On Jun 14, 2018, at 7:52 PM, Paul Burton paul.bur...@mips.com wrote: > Syscalls are not allowed inside restartable sequences, so add a call to > rseq_syscall() at the very beginning of the system call exit path when > CONFIG_DEBUG_RSEQ=y. This will help us to detect whether there is a >

[PATCH 2/4] MIPS: Add syscall detection for restartable sequences

2018-06-14 Thread Paul Burton
Syscalls are not allowed inside restartable sequences, so add a call to rseq_syscall() at the very beginning of the system call exit path when CONFIG_DEBUG_RSEQ=y. This will help us to detect whether there is a syscall issued erroneously inside a restartable sequence. Signed-off-by: Paul Burton

[PATCH 2/4] MIPS: Add syscall detection for restartable sequences

2018-06-14 Thread Paul Burton
Syscalls are not allowed inside restartable sequences, so add a call to rseq_syscall() at the very beginning of the system call exit path when CONFIG_DEBUG_RSEQ=y. This will help us to detect whether there is a syscall issued erroneously inside a restartable sequence. Signed-off-by: Paul Burton