aboutsummaryrefslogtreecommitdiffstats
path: root/mm/gup.c
AgeCommit message (Expand)AuthorFilesLines
2025-04-17mm/gup: fix wrongly calculated returned value in fault_in_safe_writeable()Baoquan He1-2/+2
2025-04-01Merge tag 'mm-stable-2025-03-30-16-52' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-18/+11
2025-03-17mm: move _pincount in folio to page[2] on 32bitDavid Hildenbrand1-4/+4
2025-03-17fs/dax: properly refcount fs dax pagesAlistair Popple1-6/+3
2025-03-17mm/gup: remove redundant check for PCI P2PDMA pageAlistair Popple1-5/+0
2025-03-16mm: remove the access_ok() call from gup_fast_fallback()David Laight1-3/+1
2025-03-16mm/gup: reject FOLL_SPLIT_PMD with hugetlb VMAsDavid Hildenbrand1-0/+3
2025-02-21fs: avoid mmap sem relocks when coredumping with many missing pagesMateusz Guzik1-3/+3
2025-02-01mm: gup: fix infinite loop within __get_longterm_lockedZhaoyang Huang1-10/+4
2025-01-26Merge tag 'mm-stable-2025-01-26-14-59' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-48/+45
2025-01-25mm/hugetlb: rename isolate_hugetlb() to folio_isolate_hugetlb()David Hildenbrand1-1/+1
2025-01-21Merge tag 'perf-core-2025-01-20' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-2/+1
2025-01-13mm/hugetlb: support FOLL_FORCE|FOLL_WRITEGuillaume Morin1-47/+44
2024-12-05mm/gup: handle NULL pages in unpin_user_pages()John Hubbard1-1/+10
2024-12-02mm/gup: Use raw_seqcount_try_begin()Peter Zijlstra1-2/+1
2024-11-23Merge tag 'mm-stable-2024-11-18-19-27' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-4/+4
2024-11-21Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-0/+24
2024-11-12mm/gup: avoid an unnecessary allocation call for FOLL_LONGTERM casesJohn Hubbard1-39/+77
2024-11-06gup: convert FOLL_TOUCH case in follow_page_pte() to folioMatthew Wilcox (Oracle)1-4/+4
2024-10-30mm/gup: stop leaking pinned pages in low memory conditionsJohn Hubbard1-14/+19
2024-10-28mm/gup: Add folio_add_pins()Steve Sistare1-0/+24
2024-09-26mm/hugetlb: simplify refs in memfd_alloc_folioSteve Sistare1-3/+1
2024-09-26mm/gup: fix memfd_pin_folios alloc race panicSteve Sistare1-0/+1
2024-09-26mm/hugetlb: fix memfd_pin_folios free_huge_pages leakSteve Sistare1-1/+3
2024-09-21Merge tag 'mm-stable-2024-09-20-02-31' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-42/+26
2024-09-17mm/gup: detect huge pfnmap entries in gup-fastPeter Xu1-0/+6
2024-09-11mm: release number of pages of a folioKundan Kumar1-0/+13
2024-09-09mm: migrate_device: convert to migrate_device_coherent_folio()Kefeng Wang1-1/+1
2024-09-01mm: remove follow_page()David Hildenbrand1-23/+1
2024-09-01mm/gup: convert to arch_make_folio_accessible()David Hildenbrand1-3/+5
2024-09-01mm: remove foll_flags in __get_user_pagesJosef Bacik1-6/+4
2024-09-01mm: cleanup flags usage in faultin_pageJosef Bacik1-10/+10
2024-07-12mm: remove CONFIG_ARCH_HAS_HUGEPDChristophe Leroy1-189/+5
2024-07-12mm: provide mm_struct and address to huge_ptep_get()Christophe Leroy1-1/+1
2024-07-12mm/gup: introduce memfd_pin_folios() for pinning memfd foliosVivek Kasireddy1-0/+139
2024-07-12mm/gup: introduce check_and_migrate_movable_folios()Vivek Kasireddy1-47/+77
2024-07-12mm/gup: introduce unpin_folio/unpin_folios helpersVivek Kasireddy1-0/+47
2024-07-06Merge branch 'mm-hotfixes-stable' into mm-stable to pick up "mm: fixAndrew Morton1-137/+154
2024-07-06mm: gup: stop abusing try_grab_folioYang Shi1-136/+153
2024-07-03mm: page_ref: remove folio_try_get_rcu()Yang Shi1-1/+1
2024-07-03mm: remove page_mkclean()Kefeng Wang1-1/+1
2024-07-03mm: introduce pmd|pte_needs_soft_dirty_wp helpers for softdirty write-protectBarry Song1-2/+2
2024-05-07mm/gup: fix hugepd handling in hugetlb reworkPeter Xu1-25/+39
2024-05-05gup: use folios for gup_devmapMatthew Wilcox (Oracle)1-9/+8
2024-05-05mm: convert put_devmap_managed_page_refs() to put_devmap_managed_folio_refs()Matthew Wilcox (Oracle)1-3/+3
2024-04-25mm/treewide: rename CONFIG_HAVE_FAST_GUP to CONFIG_HAVE_GUP_FASTDavid Hildenbrand1-5/+5
2024-04-25mm/gup: consistently name GUP-fast functionsDavid Hildenbrand1-102/+103
2024-04-25mm/gup: handle hugetlb in the generic follow_page_mask codePeter Xu1-10/+5
2024-04-25mm/gup: handle hugepd for follow_page()Peter Xu1-106/+163
2024-04-25mm/gup: handle huge pmd for follow_pmd_mask()Peter Xu1-6/+98
2024-04-25mm/gup: handle huge pud for follow_pud_mask()Peter Xu1-3/+67
2024-04-25mm/gup: cache *pudp in follow_pud_mask()Peter Xu1-8/+9
2024-04-25mm/gup: handle hugetlb for no_page_table()Peter Xu1-18/+26
2024-04-25mm/gup: refactor record_subpages() to find 1st small pagePeter Xu1-11/+14
2024-04-25mm/gup: drop gup_fast_folio_allowed() in hugepd processingPeter Xu1-5/+8
2024-04-25mm: merge folio_is_secretmem() and folio_fast_pin_allowed() into gup_fast_fol...David Hildenbrand1-20/+28
2024-04-25mm: record the migration reason for struct migration_target_controlBaolin Wang1-0/+1
2024-04-25mm/treewide: replace pXd_huge() with pXd_leaf()Peter Xu1-2/+2
2024-04-25mm/gup: merge pXd huge mapping checksPeter Xu1-4/+3
2024-04-25mm/gup: check p4d presence before going onPeter Xu1-2/+2
2024-04-25mm/gup: cache p4d in follow_p4d_mask()Peter Xu1-6/+7
2024-04-16mm/madvise: make MADV_POPULATE_(READ|WRITE) handle VM_FAULT_RETRY properlyDavid Hildenbrand1-22/+32
2024-03-29mm: clean up populate_vma_page_range() FOLL_* flag handlingLinus Torvalds1-6/+8
2023-12-29mm: convert page_try_share_anon_rmap() to folio_try_share_anon_rmap_[pte|pmd]()David Hildenbrand1-1/+1
2023-12-10mm/gup: fix follow_devmap_p[mu]d() on page==NULL handlingPeter Xu1-0/+2
2023-10-18mm/gup: make failure to pin an error if FOLL_NOWAIT not specifiedLorenzo Stoakes1-0/+11
2023-10-18mm/gup: explicitly define and check internal GUP flags, disallow FOLL_TOUCHLorenzo Stoakes1-3/+2
2023-08-31Merge tag 'x86_shstk_for_6.6-rc1' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+1
2023-08-24secretmem: convert page_is_secretmem() to folio_is_secretmem()Matthew Wilcox (Oracle)1-1/+1
2023-08-21mm/gup: don't implicitly set FOLL_HONOR_NUMA_FAULTDavid Hildenbrand1-7/+0
2023-08-21merge mm-hotfixes-stable into mm-stable to pick up depended-upon changesAndrew Morton1-6/+24
2023-08-21mm/gup: reintroduce FOLL_NUMA as FOLL_HONOR_NUMA_FAULTDavid Hildenbrand1-6/+24
2023-08-18mm/gup: retire follow_hugetlb_page()Peter Xu1-19/+0
2023-08-18mm/gup: accelerate thp gup even for "pages != NULL"Peter Xu1-7/+44
2023-08-18mm/gup: cleanup next_page handlingPeter Xu1-4/+3
2023-08-18mm/hugetlb: add page_mask for hugetlb_follow_page_mask()Peter Xu1-1/+2
2023-08-18mm/hugetlb: handle FOLL_DUMP well in follow_page_mask()Peter Xu1-7/+2
2023-08-02mm: Don't allow write GUPs to shadow stack memoryRick Edgecombe1-1/+1
2023-07-05gup: make the stack expansion warning a bit more targetedLinus Torvalds1-10/+41
2023-06-28Merge branch 'expand-stack'Linus Torvalds1-3/+11
2023-06-28Merge tag 'mm-stable-2023-06-24-19-15' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-150/+256
2023-06-27gup: add warning if some caller would seem to want stack expansionLinus Torvalds1-2/+10
2023-06-27mm: always expand the stack with the mmap write lock heldLinus Torvalds1-3/+3
2023-06-23mm/gup: do not return 0 from pin_user_pages_fast() for bad argsJason Gunthorpe1-1/+1
2023-06-19mm/gup.c: reorganize try_get_folio()Vishal Moola (Oracle)1-43/+43
2023-06-19mm: ptep_get() conversionRyan Roberts1-9/+12
2023-06-19mm/gup: remove FOLL_SPLIT_PMD use of pmd_trans_unstable()Hugh Dickins1-15/+4
2023-06-19mm/various: give up if pte_offset_map[_lock]() failsHugh Dickins1-3/+6
2023-06-19mm: use pmdp_get_lockless() without surplus barrier()Hugh Dickins1-5/+1
2023-06-09mm/gup: disallow FOLL_LONGTERM GUP-fast writing to file-backed mappingsLorenzo Stoakes1-0/+101
2023-06-09mm/gup: disallow FOLL_LONGTERM GUP-nonfast writing to file-backed mappingsLorenzo Stoakes1-1/+43
2023-06-09mm/gup: remove vmas array from internal GUP functionsLorenzo Stoakes1-52/+31
2023-06-09mm/gup: remove vmas parameter from pin_user_pages()Lorenzo Stoakes1-6/+3
2023-06-09mm/gup: remove vmas parameter from get_user_pages_remote()Lorenzo Stoakes1-8/+4
2023-06-09mm/gup: remove unused vmas parameter from pin_user_pages_remote()Lorenzo Stoakes1-5/+3
2023-06-09mm/gup: remove unused vmas parameter from get_user_pages()Lorenzo Stoakes1-6/+3
2023-06-09mm/gup: add missing gup_must_unshare() check to gup_huge_pgd()Lorenzo Stoakes1-0/+5
2023-05-31mm: Provide a function to get an additional pin on a pageDavid Howells1-0/+27
2023-05-31mm: Don't pin ZERO_PAGE in pin_user_pages()David Howells1-1/+30
2023-05-03x86-64: make access_ok() independent of LAMLinus Torvalds1-0/+2
2023-04-28Merge tag 'x86_mm_for_6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/t...Linus Torvalds1-2/+2
2023-03-28mm/gup.c: fix typo in commentsJingyu Wang1-1/+1
2023-03-16mm: Introduce untagged_addr_remote()Kirill A. Shutemov1-2/+2
2023-02-20mm: change to return bool for folio_isolate_lru()Baolin Wang1-1/+1
2023-02-13mm/hugetlb: convert isolate_hugetlb to foliosSidhartha Kumar1-1/+1
2023-02-10Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-1/+1
2023-02-09mm/gup: make get_user_pages_fast_only() return the common return valueJason Gunthorpe1-16/+1
2023-02-09mm/gup: remove pin_user_pages_fast_only()Jason Gunthorpe1-33/+0
2023-02-09mm/gup: make locked never NULL in the internal GUP functionsJason Gunthorpe1-21/+30
2023-02-09mm/gup: add FOLL_UNLOCKABLEJason Gunthorpe1-13/+23
2023-02-09mm/gup: remove locked being NULL from faultin_vma_page_range()Jason Gunthorpe1-6/+1
2023-02-09mm/gup: add an assertion that the mmap lock is lockedJason Gunthorpe1-0/+2
2023-02-09mm/gup: simplify the external interface functions and consolidate invariantsJason Gunthorpe1-78/+75
2023-02-09mm/gup: don't call __gup_longterm_locked() if FOLL_LONGTERM cannot be setJason Gunthorpe1-6/+6
2023-02-09mm/gup: have internal functions get the mmap_read_lock()Jason Gunthorpe1-48/+65
2023-02-03mm/gup: add folio to list when folio_isolate_lru() succeedKuan-Ying Lee1-1/+1
2023-02-02mm/gup.c: fix typo in commentsJongwoo Han1-1/+1
2023-02-02mm: remove folio_pincount_ptr() and head_compound_pincount()Matthew Wilcox (Oracle)1-4/+4
2022-12-17Merge tag 'x86_mm_for_6.2_v2' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-1/+1
2022-12-15Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds1-4/+29
2022-12-15mm/gup: Fix the lockless PMD accessPeter Zijlstra1-1/+1
2022-12-13Merge tag 'mm-stable-2022-12-13' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-204/+51
2022-12-13Merge tag 'for-6.2/block-2022-12-08' of git://git.kernel.dk/linuxLinus Torvalds1-13/+32
2022-12-11mm/gup: remove FOLL_MIGRATIONDavid Hildenbrand1-50/+5
2022-12-09Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-1/+1
2022-12-09mm/gup: fix gup_pud_range() for daxJohn Starks1-1/+1
2022-11-30mm/gup: disallow FOLL_FORCE|FOLL_WRITE on hugetlb mappingsDavid Hildenbrand1-0/+3
2022-11-30mm/gup: reliable R/O long-term pinning in COW mappingsDavid Hildenbrand1-5/+5
2022-11-30mm/gup: remove the restriction on locked with FOLL_LONGTERMJason Gunthorpe1-82/+27
2022-11-09mm: introduce FOLL_PCI_P2PDMA to gate getting PCI P2PDMA pagesLogan Gunthorpe1-1/+18
2022-11-09mm: allow multiple error returns in try_grab_page()Logan Gunthorpe1-12/+14
2022-11-09mm/gup: Add FOLL_INTERRUPTIBLEPeter Xu1-4/+29
2022-11-08hugetlb: simplify hugetlb handling in follow_page_maskMike Kravetz1-68/+12
2022-10-12Merge tag 'mm-hotfixes-stable-2022-10-11' of git://git.kernel.org/pub/scm/lin...Linus Torvalds1-1/+13
2022-10-11mm/hugetlb: fix races when looking up a CONT-PTE/PMD size hugetlb pageBaolin Wang1-1/+13
2022-09-26mm/gup: use gup_can_follow_protnone() also in GUP-fastDavid Hildenbrand1-11/+3
2022-09-26mm/gup: replace FOLL_NUMA by gup_can_follow_protnone()David Hildenbrand1-10/+2
2022-09-26mm/gup: use maple tree navigation instead of linked listLiam R. Howlett1-3/+4
2022-09-26Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-6/+28
2022-09-26mm: gup: fix the fast GUP race against THP collapseYang Shi1-6/+28
2022-09-11mm: fix PageAnonExclusive clearing racing with concurrent RCU GUP-fastDavid Hildenbrand1-0/+7
2022-09-11mm/gup.c: refactor check_and_migrate_movable_pages()Alistair Popple1-68/+111
2022-09-11mm/gup.c: don't pass gup_flags to check_and_migrate_movable_pages()Alistair Popple1-14/+9
2022-09-11mm/gup.c: simplify and fix check_and_migrate_movable_pages() return codesAlistair Popple1-28/+32
2022-08-20mm/gup: fix FOLL_FORCE COW security issue and remove FOLL_COWDavid Hildenbrand1-22/+46
2022-08-05Merge tag 'mm-stable-2022-08-03' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-11/+79
2022-07-29mm/gup.c: fix formatting in check_and_migrate_movable_page()Alistair Popple1-2/+2
2022-07-18mm: fix missing wake-up event for FSDAX pagesMuchun Song1-2/+4
2022-07-17mm: gup: pass a pointer to virt_to_page()Linus Walleij1-1/+1
2022-07-17mm/gup: migrate device coherent pages when pinning instead of failingAlistair Popple1-7/+43
2022-07-17mm: rename is_pinnable_page() to is_longterm_pinnable_page()Alex Sierra1-2/+2
2022-07-03mm/migration: return errno when isolate_huge_page failedMiaohe Lin1-1/+1
2022-06-16mm: avoid unnecessary page fault retires on shared memory typesPeter Xu1-1/+33
2022-05-26Merge tag 'mm-stable-2022-05-25' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-8/+119
2022-05-09mm/gup: fix comments to pin_user_pages_*()Yury Norov1-4/+17
2022-05-09mm/gup: sanity-check with CONFIG_DEBUG_VM that anonymous pages are exclusive ...David Hildenbrand1-1/+60
2022-05-09mm/gup: trigger FAULT_FLAG_UNSHARE when R/O-pinning a possibly shared anonymo...David Hildenbrand1-3/+39
2022-05-09mm/gup: disallow follow_page(FOLL_PIN)David Hildenbrand1-0/+3
2022-04-25mm: Add fault_in_subpage_writeable() to probe at sub-page granularityCatalin Marinas1-0/+29
2022-04-01mm/munlock: add lru_add_drain() to fix memcg_stat_testHugh Dickins1-2/+8
2022-03-22Merge tag 'folio-5.18c' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-281/+205
2022-03-22mm/gup: remove unused get_user_pages_locked()John Hubbard1-59/+0
2022-03-22mm/gup: remove unused pin_user_pages_locked()John Hubbard1-29/+0
2022-03-22mm/gup: follow_pfn_pte(): -EEXIST cleanupJohn Hubbard1-5/+8
2022-03-22mm: fix invalid page pointer returned with FOLL_PIN gupsPeter Xu1-1/+1
2022-03-21mm/gup: Convert check_and_migrate_movable_pages() to use a folioMatthew Wilcox (Oracle)1-13/+14
2022-03-21mm/gup: Turn compound_range_next() into gup_folio_range_next()Matthew Wilcox (Oracle)1-21/+17
2022-03-21mm/gup: Turn compound_next() into gup_folio_next()Matthew Wilcox (Oracle)1-19/+21
2022-03-21mm/gup: Convert gup_huge_pgd() to use a folioMatthew Wilcox (Oracle)1-11/+6
2022-03-21mm/gup: Convert gup_huge_pud() to use a folioMatthew Wilcox (Oracle)1-5/+6
2022-03-21mm/gup: Convert gup_huge_pmd() to use a folioMatthew Wilcox (Oracle)1-5/+6
2022-03-21mm/gup: Convert gup_hugepte() to use a folioMatthew Wilcox (Oracle)1-7/+7
2022-03-21mm/gup: Convert gup_pte_range() to use a folioMatthew Wilcox (Oracle)1-10/+8
2022-03-21mm/hugetlb: Use try_grab_folio() instead of try_grab_compound_head()Matthew Wilcox (Oracle)1-1/+1
2022-03-21mm/gup: Add gup_put_folio()Matthew Wilcox (Oracle)1-26/+12
2022-03-21mm/gup: Convert try_grab_page() to use a folioMatthew Wilcox (Oracle)1-15/+13
2022-03-21mm/gup: Add try_get_folio() and try_grab_folio()Matthew Wilcox (Oracle)1-50/+49
2022-03-21mm: Make compound_pincount always availableMatthew Wilcox (Oracle)1-11/+9
2022-03-21mm/gup: Remove hpage_pincount_sub()Matthew Wilcox (Oracle)1-10/+3
2022-03-21mm/gup: Remove hpage_pincount_add()Matthew Wilcox (Oracle)1-20/+11
2022-03-21mm/gup: Handle page split race more efficientlyMatthew Wilcox (Oracle)1-2/+5
2022-03-21mm/gup: Remove an assumption of a contiguous memmapMatthew Wilcox (Oracle)1-2/+2
2022-03-21mm/gup: Fix some contiguous memmap assumptionsMatthew Wilcox (Oracle)1-7/+7
2022-03-21mm/gup: Change the calling convention for compound_next()Matthew Wilcox (Oracle)1-6/+5
2022-03-21mm/gup: Optimise compound_range_next()Matthew Wilcox (Oracle)1-1/+1
2022-03-21mm/gup: Change the calling convention for compound_range_next()Matthew Wilcox (Oracle)1-6/+5
2022-03-21mm/gup: Remove for_each_compound_head()Matthew Wilcox (Oracle)1-11/+5
2022-03-21mm/gup: Remove for_each_compound_range()Matthew Wilcox (Oracle)1-10/+2
2022-03-21mm/gup: Increment the page refcount before the pincountMatthew Wilcox (Oracle)1-8/+6
2022-03-10mm: gup: make fault_in_safe_writeable() use fixup_user_fault()Linus Torvalds1-38/+19
2022-03-03mm: refactor check_and_migrate_movable_pagesChristoph Hellwig1-37/+44
2022-02-17mm/munlock: delete FOLL_MLOCK and FOLL_POPULATEHugh Dickins1-35/+8
2022-02-03Revert "mm/gup: small refactoring: simplify try_grab_page()"John Hubbard1-5/+30
2022-01-15mm/gup.c: stricter check on THP migration entry during follow_pmd_maskLi Xinhai1-4/+9
2022-01-15gup: avoid multiple user access locking/unlocking in fault_in_{read/write}ableChristophe Leroy1-8/+10
2021-11-06Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-4/+1
2021-11-06mm/gup: further simplify __gup_device_huge()John Hubbard1-4/+1
2021-10-24gup: Introduce FOLL_NOFAULT flag to disable page faultsAndreas Gruenbacher1-1/+3
2021-10-20iov_iter: Introduce fault_in_iov_iter_writeableAndreas Gruenbacher1-0/+63
2021-10-18gup: Turn fault_in_pages_{readable,writeable} into fault_in_{readable,writeable}Andreas Gruenbacher1-0/+72