Re: [PATCH 1/1] userfaultfd: clear the vma->vm_userfaultfd_ctx if UFFD_EVENT_FORK fails

2017-12-25 Thread Mike Rapoport
On Sat, Dec 23, 2017 at 01:25:05AM +0100, Andrea Arcangeli wrote: > The previous fix 384632e67e0829deb8015ee6ad916b180049d252 corrected > the refcounting in case of UFFD_EVENT_FORK failure for the fork > userfault paths. That still didn't clear the vma->vm_userfaultfd_ctx > of the vmas that were se

[PATCH 1/1] userfaultfd: clear the vma->vm_userfaultfd_ctx if UFFD_EVENT_FORK fails

2017-12-22 Thread Andrea Arcangeli
The previous fix 384632e67e0829deb8015ee6ad916b180049d252 corrected the refcounting in case of UFFD_EVENT_FORK failure for the fork userfault paths. That still didn't clear the vma->vm_userfaultfd_ctx of the vmas that were set to point to the aborted new uffd ctx earlier in dup_userfaultfd. Cc: st