Home
last modified time | relevance | path

Searched hist:"656710 a60e3693911bee3a355d2f2bbae3faba33" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/
H A Duserfaultfd.cdiff 656710a60e3693911bee3a355d2f2bbae3faba33 Fri Sep 08 18:12:42 CDT 2017 Andrea Arcangeli <aarcange@redhat.com> userfaultfd: non-cooperative: closing the uffd without triggering SIGBUS

This is an enhancement to avoid a non cooperative userfaultfd manager
having to unregister all regions before it can close the uffd after all
userfaultfd activity completed.

The UFFDIO_UNREGISTER would serialize against the handle_userfault by
taking the mmap_sem for writing, but we can simply repeat the page fault
if we detect the uffd was closed and so the regular page fault paths
should takeover.

Link: http://lkml.kernel.org/r/20170823181227.19926-1-aarcange@redhat.com
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>