Re: [PATCH RFC] mm: arc: fix potential double realease of mmap_sem

2018-11-05 Thread Peter Xu
On Tue, Nov 06, 2018 at 12:48:31AM +, Vineet Gupta wrote: > On 10/31/18 8:24 PM, Peter Xu wrote: > > In do_page_fault() of ARC we have: > > > > ... > > fault = handle_mm_fault(vma, address, flags); > > > > /* If Pagefault was interrupted by SIGKILL, exit page fault "early"

Re: [PATCH RFC] mm: arc: fix potential double realease of mmap_sem

2018-11-05 Thread Vineet Gupta
On 10/31/18 8:24 PM, Peter Xu wrote: > In do_page_fault() of ARC we have: > > ... > fault = handle_mm_fault(vma, address, flags); > > /* If Pagefault was interrupted by SIGKILL, exit page fault "early" */ > if (unlikely(fatal_signal_pending(current))) { >

[PATCH RFC] mm: arc: fix potential double realease of mmap_sem

2018-10-31 Thread Peter Xu
In do_page_fault() of ARC we have: ... fault = handle_mm_fault(vma, address, flags); /* If Pagefault was interrupted by SIGKILL, exit page fault "early" */ if (unlikely(fatal_signal_pending(current))) { if ((fault & VM_FAULT_ERROR) && !(fault & VM_F