Re: [RFC PATCH] rseq: Avoid infinite recursion when delivering SIGSEGV

2018-06-21 Thread Will Deacon
On Wed, Jun 20, 2018 at 12:55:35PM -0400, Mathieu Desnoyers wrote: > - On Jun 20, 2018, at 12:36 PM, Will Deacon will.dea...@arm.com wrote: > > > When delivering a signal to a task that is using rseq, we call into > > __rseq_handle_notify_resume() so that the registers pushed in the > > sigfra

Re: [RFC PATCH] rseq: Avoid infinite recursion when delivering SIGSEGV

2018-06-20 Thread Mathieu Desnoyers
- On Jun 20, 2018, at 12:36 PM, Will Deacon will.dea...@arm.com wrote: > When delivering a signal to a task that is using rseq, we call into > __rseq_handle_notify_resume() so that the registers pushed in the > sigframe are updated to reflect the state of the restartable sequence > (for exampl

[RFC PATCH] rseq: Avoid infinite recursion when delivering SIGSEGV

2018-06-20 Thread Will Deacon
When delivering a signal to a task that is using rseq, we call into __rseq_handle_notify_resume() so that the registers pushed in the sigframe are updated to reflect the state of the restartable sequence (for example, ensuring that the signal returns to the abort handler if necessary). However, if