Re: [PATCH v2 3/7] mm: Introduce FAULT_FLAG_INTERRUPTIBLE

2019-09-06 Thread David Hildenbrand
On 06.09.19 14:38, Peter Xu wrote: > On Fri, Sep 06, 2019 at 11:02:22AM +0200, David Hildenbrand wrote: >> On 05.09.19 12:15, Peter Xu wrote: >>> handle_userfaultfd() is currently the only one place in the kernel >>> page fault procedures that can respond to non-fatal userspace signals. >>> It was

Re: [PATCH v2 3/7] mm: Introduce FAULT_FLAG_INTERRUPTIBLE

2019-09-06 Thread Peter Xu
On Fri, Sep 06, 2019 at 11:02:22AM +0200, David Hildenbrand wrote: > On 05.09.19 12:15, Peter Xu wrote: > > handle_userfaultfd() is currently the only one place in the kernel > > page fault procedures that can respond to non-fatal userspace signals. > > It was trying to detect such an allowance by

Re: [PATCH v2 3/7] mm: Introduce FAULT_FLAG_INTERRUPTIBLE

2019-09-06 Thread David Hildenbrand
On 05.09.19 12:15, Peter Xu wrote: > handle_userfaultfd() is currently the only one place in the kernel > page fault procedures that can respond to non-fatal userspace signals. > It was trying to detect such an allowance by checking against USER & > KILLABLE flags, which was "un-official". > > In

[PATCH v2 3/7] mm: Introduce FAULT_FLAG_INTERRUPTIBLE

2019-09-05 Thread Peter Xu
handle_userfaultfd() is currently the only one place in the kernel page fault procedures that can respond to non-fatal userspace signals. It was trying to detect such an allowance by checking against USER & KILLABLE flags, which was "un-official". In this patch, we introduced a new flag (FAULT_FLA