aboutsummaryrefslogtreecommitdiffstats
path: root/fs/userfaultfd.c
AgeCommit message (Expand)AuthorFilesLines
2024-02-22userfaultfd: use per-vma locks in userfaultfd operationsLokesh Gidra1-11/+2
2024-02-22userfaultfd: protect mmap_changing with rw_sem in userfaulfd_ctxLokesh Gidra1-17/+23
2024-02-22userfaultfd: move userfaultfd_ctx struct to header fileLokesh Gidra1-39/+0
2024-02-22userfaultfd: fix return error if mmap_changing is non-zero in MOVE ioctlLokesh Gidra1-1/+1
2024-01-17Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds1-2/+3
2024-01-10Merge tag 'sysctl-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-1/+0
2023-12-29userfaultfd: UFFDIO_MOVE uABIAndrea Arcangeli1-0/+72
2023-12-28fs: Remove the now superfluous sentinel elements from ctl_table arrayJoel Granados1-1/+0
2023-11-14Merge branch 'kvm-guestmemfd' into HEADPaolo Bonzini1-2/+3
2023-11-14fs: Rename anon_inode_getfile_secure() and anon_inode_getfd_secure()Paolo Bonzini1-2/+3
2023-11-02Merge tag 'mm-nonmm-stable-2023-11-02-14-08' of git://git.kernel.org/pub/scm/...Linus Torvalds1-1/+1
2023-10-18treewide: mark stuff as __ro_after_initAlexey Dobriyan1-1/+1
2023-10-18mm: abstract the vma_merge()/split_vma() pattern for mprotect() et al.Lorenzo Stoakes1-52/+18
2023-10-18userfaultfd: UFFD_FEATURE_WP_ASYNCPeter Xu1-4/+22
2023-08-24mm: userfaultfd: remove stale comment about core dump lockingJann Horn1-5/+1
2023-08-24mm: handle userfaults under VMA lockSuren Baghdasaryan1-20/+14
2023-08-21mm: lock vma explicitly before doing vm_flags_reset and vm_flags_reset_onceSuren Baghdasaryan1-0/+6
2023-08-18mm: userfaultfd: add new UFFDIO_POISON ioctlAxel Rasmussen1-0/+58
2023-08-18mm: userfaultfd: check for start + len overflow in validate_rangeAxel Rasmussen1-16/+18
2023-08-18mm/gup: retire follow_hugetlb_page()Peter Xu1-1/+1
2023-06-23Merge mm-hotfixes-stable into mm-stable to pick up depended-upon changes.Andrew Morton1-2/+11
2023-06-19userfaultfd: fix regression in userfaultfd_unmap_prep()Liam R. Howlett1-20/+15
2023-06-19mm: ptep_get() conversionRyan Roberts1-2/+4
2023-06-19mm/userfaultfd: retry if pte_offset_map() failsHugh Dickins1-5/+6
2023-06-19mm: use pmdp_get_lockless() without surplus barrier()Hugh Dickins1-9/+1
2023-06-12mm/uffd: allow vma to merge as much as possiblePeter Xu1-2/+6
2023-06-12mm/uffd: fix vma operation where start addr cuts part of vmaPeter Xu1-0/+5
2023-04-27Merge tag 'mm-stable-2023-04-27-15-30' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-11/+34
2023-04-27Merge tag 'sysctl-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-1/+19
2023-04-16sync mm-stable with mm-hotfixes-stable to pick up depended-upon upstream changesAndrew Morton1-2/+4
2023-04-16Revert "userfaultfd: don't fail on unrecognized features"Peter Xu1-2/+4
2023-04-05mm: userfaultfd: add UFFDIO_CONTINUE_MODE_WP to install WP PTEsAxel Rasmussen1-2/+6
2023-04-05mm: userfaultfd: combine 'mode' and 'wp_copy' argumentsAxel Rasmussen1-1/+4
2023-04-05mm: userfaultfd: don't pass around both mm and vmaAxel Rasmussen1-1/+1
2023-04-05mm: userfaultfd: rename functions for clarity + consistencyAxel Rasmussen1-9/+9
2023-04-05mm/uffd: UFFD_FEATURE_WP_UNPOPULATEDPeter Xu1-0/+16
2023-03-20userfaultfd: move unprivileged_userfaultfd sysctl to its own fileZhangPeng1-1/+19
2023-02-09mm: replace vma->vm_flags direct modifications with modifier callsSuren Baghdasaryan1-1/+1
2023-02-09mm: switch vma_merge(), split_vma(), and __split_vma to vma iteratorLiam R. Howlett1-7/+7
2023-02-09userfaultfd: use vma iteratorLiam R. Howlett1-54/+33
2023-01-18mm/hugetlb: introduce hugetlb_walk()Peter Xu1-4/+2
2023-01-18mm/hugetlb: make userfaultfd_huge_must_wait() safe to pmd unsharePeter Xu1-4/+16
2023-01-11mm/userfaultfd: enable writenotify while userfaultfd-wp is enabled for a VMADavid Hildenbrand1-6/+22
2022-11-07fs/userfaultfd: Fix maple tree iterator in userfaultfd_unregister()Liam Howlett1-0/+3
2022-10-10Merge tag 'mm-stable-2022-10-08' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-36/+97
2022-10-03Merge tag 'lsm-pr-20221003' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-2/+2
2022-09-26userfaultfd: use maple tree iterator to iterate VMAsLiam R. Howlett1-20/+42
2022-09-11userfaultfd: add /dev/userfaultfd for fine grained access controlAxel Rasmussen1-16/+55
2022-08-30userfaultfd: open userfaultfds with O_RDONLYOndrej Mosnacek1-2/+2
2022-08-20mm/uffd: reset write protection when unregister with wp-modePeter Xu1-0/+4
2022-08-05Merge tag 'mm-stable-2022-08-03' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-4/+2
2022-07-29userfaultfd: don't fail on unrecognized featuresAxel Rasmussen1-4/+2
2022-07-26userfaultfd: provide properly masked address for huge-pagesNadav Amit1-5/+7
2022-05-13mm/uffd: enable write protection for shmem & hugetlbfsPeter Xu1-18/+3
2022-05-13mm: teach core mm about pte markersPeter Xu1-4/+7
2022-03-22userfaultfd: provide unmasked address on page-faultNadav Amit1-1/+4
2022-03-05mm: refactor vm_area_struct::anon_vma_name usage codeSuren Baghdasaryan1-3/+3
2022-01-15mm: move anon_vma declarations to linux/mm_inline.hArnd Bergmann1-0/+1
2022-01-15mm: add a field to store names for private anonymous memoryColin Cross1-3/+4
2021-10-18userfaultfd: fix a race between writeprotect and exit_mmap()Nadav Amit1-3/+9
2021-09-03userfaultfd: prevent concurrent API initializationNadav Amit1-47/+44
2021-09-03userfaultfd: change mmap_changing to atomicNadav Amit1-12/+13
2021-07-23userfaultfd: do not untag user pointersPeter Collingbourne1-14/+12
2021-07-02Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-4/+11
2021-06-30userfaultfd/shmem: advertise shmem minor fault supportAxel Rasmussen1-1/+2
2021-06-30userfaultfd/shmem: support minor fault registration for shmemAxel Rasmussen1-2/+1
2021-06-30mm/userfaultfd: fail uffd-wp registration if not supportedPeter Xu1-1/+8
2021-06-18sched: Change task_struct::statePeter Zijlstra1-2/+2
2021-05-05userfaultfd: add UFFDIO_CONTINUE ioctlAxel Rasmussen1-0/+67
2021-05-05userfaultfd: add minor fault registration modeAxel Rasmussen1-31/+47
2021-05-05hugetlb/userfaultfd: unshare all pmds for hugetlbfs when register wpPeter Xu1-0/+4
2021-01-14userfaultfd: use secure anon inodes for userfaultfdDaniel Colascione1-9/+10
2020-12-15userfaultfd: add user-mode only option to unprivileged_userfaultfd sysctl knobLokesh Gidra1-2/+8
2020-12-15userfaultfd: add UFFD_USER_MODE_ONLYLokesh Gidra1-1/+9
2020-10-16mm: remove the now-unnecessary mmget_still_valid() hackJann Horn1-19/+9
2020-08-10Merge tag 'locking-urgent-2020-08-10' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-2/+2
2020-08-03userfaultfd: simplify fault handlingLinus Torvalds1-38/+1
2020-07-29userfaultfd: Use sequence counter with associated spinlockAhmed S. Darwish1-2/+2
2020-06-09mmap locking API: convert mmap_sem commentsMichel Lespinasse1-9/+9
2020-06-09mmap locking API: convert mmap_sem API commentsMichel Lespinasse1-1/+1
2020-06-09mmap locking API: add mmap_assert_locked() and mmap_assert_write_locked()Michel Lespinasse1-3/+3
2020-06-09mmap locking API: use coccinelle to convert mmap_sem rwsem call sitesMichel Lespinasse1-10/+10
2020-04-07userfaultfd: wp: declare _UFFDIO_WRITEPROTECT conditionallyPeter Xu1-3/+13
2020-04-07userfaultfd: wp: don't wake up when doing write protectPeter Xu1-5/+8
2020-04-07userfaultfd: wp: add the writeprotect API to userfaultfd ioctlAndrea Arcangeli1-16/+66
2020-04-07userfaultfd: wp: add UFFDIO_COPY_MODE_WPAndrea Arcangeli1-2/+3
2020-04-02mm/userfaultfd: honor FAULT_FLAG_KILLABLE in fault pathPeter Xu1-8/+28
2020-04-02mm: introduce FAULT_FLAG_INTERRUPTIBLEPeter Xu1-3/+1
2020-04-02userfaultfd: don't retake mmap_sem to emulate NOPAGEPeter Xu1-24/+0
2019-12-01Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-8/+13
2019-12-01userfaultfd: require CAP_SYS_PTRACE for UFFD_FEATURE_EVENT_FORKMike Rapoport1-7/+11
2019-12-01fs/userfaultfd.c: wp: clear VM_UFFD_MISSING or VM_UFFD_WP during userfaultfd_...Andrea Arcangeli1-1/+2
2019-10-23compat_ioctl: move more drivers to compat_ptr_ioctlArnd Bergmann1-1/+1
2019-09-25userfaultfd: untag user pointersAndrey Konovalov1-10/+12
2019-08-24userfaultfd_release: always remove uffd flags and clear vm_userfaultfd_ctxOleg Nesterov1-12/+13
2019-07-05fs/userfaultfd.c: disable irqs for fault_pending and event locksEric Biggers1-16/+26
2019-06-19treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 499Thomas Gleixner1-3/+1
2019-05-14userfaultfd/sysctl: add vm.unprivileged_userfaultfdPeter Xu1-0/+5
2019-04-19coredump: fix race condition between mmget_not_zero()/get_task_mm() and core ...Andrea Arcangeli1-0/+9
2018-12-28userfaultfd: clear flag if remap event not enabledPeter Xu1-1/+9
2018-12-28userfaultfd: convert userfaultfd_ctx::refcount to refcount_tEric Biggers1-6/+5
2018-12-26Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+1
2018-12-14userfaultfd: check VM_MAYWRITE was set after verifying the uffd is registeredAndrea Arcangeli1-1/+2
2018-12-04Merge branch 'for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/pau...Ingo Molnar1-1/+1
2018-11-30userfaultfd: shmem/hugetlbfs: only allow to register VM_MAYWRITE vmasAndrea Arcangeli1-0/+15
2018-11-12userfaultfd: Replace spin_is_locked() with lockdepLance Roy1-1/+1
2018-10-26userfaultfd: disable irqs when taking the waitqueue lockChristoph Hellwig1-4/+4
2018-08-23mm: Change return type int to vm_fault_t for fault handlersSouptick Joarder1-4/+2
2018-08-22userfaultfd: use fault_wqh lockMatthew Wilcox1-3/+3
2018-08-17fs/userfaultfd.c: remove redundant pointer uwqColin Ian King1-3/+0
2018-08-02userfaultfd: remove uffd flags from vma->vm_flags if UFFD_EVENT_FORK failsMike Rapoport1-1/+3
2018-07-03userfaultfd: hugetlbfs: fix userfaultfd_huge_must_wait() pte accessJanosch Frank1-5/+7
2018-06-07userfaultfd: prevent non-cooperative events vs mcopy_atomic racesMike Rapoport1-2/+20
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-8/+8
2018-01-31userfaultfd: convert to use anon_inode_getfd()Eric Biggers1-61/+9
2018-01-31mm, userfaultfd, THP: avoid waiting when PMD under THP migrationHuang Ying1-1/+4
2018-01-30Merge branch 'misc.poll' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-2/+2
2018-01-04userfaultfd: clear the vma->vm_userfaultfd_ctx if UFFD_EVENT_FORK failsAndrea Arcangeli1-2/+18
2017-11-27fs: annotate ->poll() instancesAl Viro1-2/+2
2017-11-15userfaultfd: use mmgrab instead of open-coded increment of mm_countMike Rapoport1-1/+1
2017-10-25locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns ...Mark Rutland1-4/+4
2017-10-03userfaultfd: non-cooperative: fix fork use after freeAndrea Arcangeli1-10/+56
2017-09-08userfaultfd: non-cooperative: closing the uffd without triggering SIGBUSAndrea Arcangeli1-1/+19
2017-09-06userfaultfd: provide pid in userfault msg - add feat unionAndrea Arcangeli1-1/+1
2017-09-06userfaultfd: provide pid in userfault msgAlexey Perevalov1-2/+6
2017-09-06mm: userfaultfd: add feature to request for a signal deliveryPrakash Sangappa1-0/+3
2017-09-06userfaultfd: report UFFDIO_ZEROPAGE as available for shmem VMAsMike Rapoport1-5/+5
2017-08-11Merge branch 'linus' into locking/core, to resolve conflictsIngo Molnar1-2/+2
2017-08-10userfaultfd: replace ENOSPC with ESRCH in case mm has gone during copy/zeropageMike Rapoport1-2/+2
2017-08-10locking: Remove smp_mb__before_spinlock()Peter Zijlstra1-14/+11
2017-08-02userfaultfd: non-cooperative: flush event_wqh at release timeMike Rapoport1-0/+3
2017-08-02userfaultfd_zeropage: return -ENOSPC in case mm has goneMike Rapoport1-0/+2
2017-07-06mm/hugetlb: add size parameter to huge_pte_offset()Punit Agrawal1-2/+5
2017-07-06fs/userfaultfd.c: drop dead codeMike Rapoport1-5/+0
2017-06-20sched/wait: Disambiguate wq_entry->task_list and wq_head->task_list namingIngo Molnar1-11/+11
2017-06-20sched/wait: Rename wait_queue_t => wait_queue_entry_tIngo Molnar1-4/+4
2017-06-17userfaultfd: shmem: handle coredumping in handle_userfault()Andrea Arcangeli1-8/+21
2017-04-08userfaultfd: report actual registered features in fdinfoMike Rapoport1-1/+1
2017-03-10Merge branch 'prep-for-5level'Linus Torvalds1-1/+5
2017-03-09userfaultfd: remove wrong comment from userfaultfd_ctx_get()David Hildenbrand1-2/+0
2017-03-09userfaultfd: non-cooperative: userfaultfd_remove revalidate vma in MADV_DONTNEEDAndrea Arcangeli1-6/+3
2017-03-09userfaultfd: non-cooperative: fix fork fctx->new memleakMike Rapoport1-0/+9
2017-03-09userfaultfd: non-cooperative: release all ctx in dup_userfaultfd_completeAndrea Arcangeli1-13/+5
2017-03-09userfaultfd: non-cooperative: robustness checkAndrea Arcangeli1-2/+7
2017-03-09userfaultfd: non-cooperative: rollback userfaultfd_exitAndrea Arcangeli1-28/+0
2017-03-09userfaultfd: shmem: __do_fault requires VM_FAULT_NOPAGEAndrea Arcangeli1-1/+1
2017-03-09mm: convert generic code to 5-level pagingKirill A. Shutemov1-1/+5
2017-03-02sched/headers: Prepare to move signal wakeup & sigpending methods from <linux...Ingo Molnar1-1/+1
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+1
2017-02-27mm: add new mmgrab() helperVegard Nossum1-1/+1
2017-02-27scripts/spelling.txt: add "an user" pattern and fix typo instancesMasahiro Yamada1-3/+3
2017-02-24userfaultfd_copy: return -ENOSPC in case mm has goneMike Rapoport1-0/+2
2017-02-24userfaultfd: non-cooperative: add event for exit() notificationMike Rapoport1-0/+28
2017-02-24userfaultfd: non-cooperative: add event for memory unmapsMike Rapoport1-0/+65
2017-02-24userfaultfd: non-cooperative: rename *EVENT_MADVDONTNEED to *EVENT_REMOVEMike Rapoport1-7/+7
2017-02-22userfaultfd: shmem: allow registration of shared memory rangesMike Rapoport1-14/+7
2017-02-22userfaultfd: introduce vma_can_userfaultMike Rapoport1-4/+9
2017-02-22userfaultfd: hugetlbfs: userfaultfd_huge_must_wait for hugepmd rangesMike Kravetz1-2/+49
2017-02-22userfaultfd: hugetlbfs: allow registration of ranges containing huge pagesMike Kravetz1-5/+50
2017-02-22userfaultfd: non-cooperative: wake userfaults after UFFDIO_UNREGISTERAndrea Arcangeli1-0/+13
2017-02-22userfaultfd: non-cooperative: add madvise() event for MADV_DONTNEED requestPavel Emelyanov1-0/+28
2017-02-22userfaultfd: non-cooperative: optimize mremap_userfaultfd_complete()Andrea Arcangeli1-2/+2
2017-02-22userfaultfd: non-cooperative: add mremap() eventPavel Emelyanov1-0/+37
2017-02-22userfaultfd: non-cooperative: dup_userfaultfd: use mm_count instead of mm_usersMike Rapoport1-1/+1
2017-02-22userfaultfd: non-cooperative: Add fork() eventPavel Emelyanov1-3/+145
2017-02-22userfaultfd: non-cooperative: report all available features to userlandAndrea Arcangeli1-4/+7
2017-02-22userfaultfd: non-cooperative: add ability to report non-PF events from uffd d...Pavel Emelyanov1-2/+96
2017-02-22userfaultfd: non-cooperative: Split the find_userfault() routinePavel Emelyanov1-6/+11
2017-02-22userfaultfd: use vma_is_anonymousAndrea Arcangeli1-4/+4
2017-02-22userfaultfd: convert BUG() to WARN_ON_ONCE()Andrea Arcangeli1-1/+2
2017-02-22userfaultfd: correct comment about UFFD_FEATURE_PAGEFAULT_FLAG_WPAndrea Arcangeli1-1/+1
2017-01-24userfaultfd: fix SIGBUS resulting from false rwsem wakeupsAndrea Arcangeli1-2/+35
2016-12-14mm: join struct fault_env and vm_faultJan Kara1-10/+12
2016-07-26mm: introduce fault_envKirill A. Shutemov1-11/+11
2016-05-20userfaultfd: don't pin the user memory in userfaultfd_file_create()Oleg Nesterov1-13/+28
2016-03-02userfaultfd: don't block on the last VM updates at exit timeLinus Torvalds1-0/+6
2015-09-22userfaultfd: revert "userfaultfd: waitqueue: add nr wake parameter to __wake_...Andrea Arcangeli1-4/+4
2015-09-17userfaultfd: add missing mmput() in error pathEric Biggers1-1/+3
2015-09-04userfaultfd: avoid missing wakeups during refile in userfaultfd_readAndrea Arcangeli1-2/+24
2015-09-04userfaultfd: allow signals to interrupt a userfaultAndrea Arcangeli1-3/+32
2015-09-04userfaultfd: require UFFDIO_API before other ioctlsAndrea Arcangeli1-1/+3
2015-09-04userfaultfd: UFFDIO_COPY and UFFDIO_ZEROPAGEAndrea Arcangeli1-0/+96
2015-09-04userfaultfd: solve the race between UFFDIO_COPY|ZEROPAGE and readAndrea Arcangeli1-15/+66
2015-09-04userfaultfd: allocate the userfaultfd_ctx cacheline alignedAndrea Arcangeli1-8/+31
2015-09-04userfaultfd: optimize read() and poll() to be O(1)Andrea Arcangeli1-74/+111
2015-09-04userfaultfd: wake pending userfaultsAndrea Arcangeli1-22/+43
2015-09-04userfaultfd: change the read API to return a uffd_msgAndrea Arcangeli1-33/+46
2015-09-04userfaultfd: Rename uffd_api.bits into .featuresPavel Emelyanov1-2/+2
2015-09-04userfaultfd: add new syscall to provide memory externalizationAndrea Arcangeli1-0/+1036