summaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorAndrea Arcangeli2017-09-09 01:12:42 +0200
committerLinus Torvalds2017-09-09 03:26:47 +0200
commit656710a60e3693911bee3a355d2f2bbae3faba33 (patch)
treedd55fb4c43f3cf65c50d0795a001370429b4d6e0 /mm/memory.c
parentmm: remove useless vma parameter to offset_il_node (diff)
downloadkernel-qcow2-linux-656710a60e3693911bee3a355d2f2bbae3faba33.tar.gz
kernel-qcow2-linux-656710a60e3693911bee3a355d2f2bbae3faba33.tar.xz
kernel-qcow2-linux-656710a60e3693911bee3a355d2f2bbae3faba33.zip
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>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions