aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
AgeCommit message (Expand)AuthorFilesLines
2023-06-09mm/mlock: rename mlock_future_check() to mlock_future_ok()Andrew Morton1-4/+4
2023-06-09mm/mmap: refactor mlock_future_check()Lorenzo Stoakes1-16/+17
2023-06-09mm: avoid rewalk in mmap_regionLiam R. Howlett1-0/+3
2023-06-09mm/mmap: change do_vmi_align_munmap() for maple tree iterator changesLiam R. Howlett1-1/+6
2023-06-09mm: update validate_mm() to use vma iteratorLiam R. Howlett1-58/+36
2023-06-09maple_tree: add format option to mt_dump()Liam R. Howlett1-4/+4
2023-05-06mm/mmap/vma_merge: always check invariantsLorenzo Stoakes1-5/+5
2023-04-27Merge tag 'mm-stable-2023-04-27-15-30' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-119/+171
2023-04-27mm/mremap: fix vm_pgoff in vma_merge() case 3Vlastimil Babka1-1/+1
2023-04-21mm: move 'mmap_min_addr' logic from callers into vm_unmapped_area()Linus Torvalds1-6/+13
2023-04-21mm: add new api to enable ksm per processStefan Roesch1-0/+3
2023-04-18sync mm-stable with mm-hotfixes-stable to pick up depended-upon upstream changesAndrew Morton1-5/+43
2023-04-18mm/mmap: regression fix for unmapped_area{_topdown}Liam R. Howlett1-5/+43
2023-04-16sync mm-stable with mm-hotfixes-stable to pick up depended-upon upstream changesAndrew Morton1-1/+2
2023-04-05mm/mmap: free vm_area_struct without call_rcu in exit_mmapSuren Baghdasaryan1-4/+7
2023-04-05mm: introduce vma detached flagSuren Baghdasaryan1-0/+2
2023-04-05mm/mmap: prevent pagefault handler from racing with mmu_notifier registrationSuren Baghdasaryan1-0/+9
2023-04-05mm: conditionally write-lock VMA in free_pgtablesSuren Baghdasaryan1-2/+3
2023-04-05mm: write-lock VMAs before removing them from VMA treeSuren Baghdasaryan1-0/+1
2023-04-05mm/mremap: write-lock VMA while remapping it to a new address rangeSuren Baghdasaryan1-0/+1
2023-04-05mm/mmap: write-lock VMAs in vma_prepare before modifying themSuren Baghdasaryan1-0/+9
2023-04-05mm/mmap: move vma_prepare before vma_adjust_trans_hugeSuren Baghdasaryan1-5/+5
2023-04-05mm/mmap/vma_merge: init cleanup, be explicit about the non-mergeable caseLorenzo Stoakes1-25/+22
2023-04-05mm/mmap/vma_merge: explicitly assign res, vma, extend invariantsLorenzo Stoakes1-5/+14
2023-04-05mm/mmap/vma_merge: fold curr, next assignment logicLorenzo Stoakes1-13/+11
2023-04-05mm/mmap/vma_merge: further improve prev/next VMA namingLorenzo Stoakes1-43/+43
2023-04-05mm/mmap: start distinguishing if vma can be removed in mergeability testVlastimil Babka1-5/+10
2023-04-05mm/mmap/vma_merge: convert mergeability checks to return boolVlastimil Babka1-28/+25
2023-04-05mm/mmap/vma_merge: rename adj_next to adj_startVlastimil Babka1-8/+8
2023-04-05mm/mmap/vma_merge: set mid to NULL if not applicableVlastimil Babka1-8/+15
2023-04-05mm/mmap/vma_merge: initialize mid and next in natural orderVlastimil Babka1-4/+5
2023-04-05mm/mmap/vma_merge: use the proper vma pointer in case 4Vlastimil Babka1-4/+4
2023-04-05mm/mmap/vma_merge: use the proper vma pointers in cases 1 and 6Vlastimil Babka1-5/+6
2023-04-05mm/mmap/vma_merge: use the proper vma pointer in case 3Vlastimil Babka1-4/+5
2023-04-05mm/mmap/vma_merge: use only primary pointers for preparing mergeVlastimil Babka1-7/+7
2023-04-05mm: enable maple tree RCU mode by defaultLiam R. Howlett1-1/+2
2023-03-23mm: deduplicate error handling for map_deny_write_execJoey Gouly1-6/+1
2023-02-27mm/mremap: fix dup_anon_vma() in vma_merge() case 4Vlastimil Babka1-1/+1
2023-02-09mm: introduce __vm_flags_mod and use it in untrack_pfnSuren Baghdasaryan1-6/+10
2023-02-09mm: replace vma->vm_flags direct modifications with modifier callsSuren Baghdasaryan1-5/+5
2023-02-09mm: replace VM_LOCKED_CLEAR_MASK with VM_LOCKED_MASKSuren Baghdasaryan1-3/+3
2023-02-09vma_merge: set vma iterator to correct position.Liam R. Howlett1-3/+1
2023-02-09mm/mmap: remove __vma_adjust()Liam R. Howlett1-153/+97
2023-02-09mm/mmap: convert do_brk_flags() to use vma_prepare() and vma_complete()Liam R. Howlett1-8/+4
2023-02-09mm/mmap: introduce dup_vma_anon() helperLiam R. Howlett1-34/+40
2023-02-09mm/mmap: don't use __vma_adjust() in shift_arg_pages()Liam R. Howlett1-9/+43
2023-02-09mm/mremap: convert vma_adjust() to vma_expand()Liam R. Howlett1-3/+3
2023-02-09mm: don't use __vma_adjust() in __split_vma()Liam R. Howlett1-63/+55
2023-02-09mm/mmap: introduce init_vma_prep() and init_multi_vma_prep()Liam R. Howlett1-47/+61
2023-02-09mm/mmap: use vma_prepare() and vma_complete() in vma_expand()Liam R. Howlett1-116/+72
2023-02-09mm/mmap: refactor locking out of __vma_adjust()Liam R. Howlett1-95/+136
2023-02-09mm/mmap: move anon_vma setting in __vma_adjust()Liam R. Howlett1-5/+8
2023-02-09mm: change munmap splitting order and move_vma()Liam R. Howlett1-16/+2
2023-02-09mmap: clean up mmap_region() unrollingLiam R. Howlett1-27/+18
2023-02-09mm: add vma iterator to vma_adjust() argumentsLiam R. Howlett1-5/+5
2023-02-09mm: pass vma iterator through to __vma_adjust()Liam R. Howlett1-8/+14
2023-02-09mm: remove unnecessary write to vma iterator in __vma_adjust()Liam R. Howlett1-4/+6
2023-02-09mm: pass through vma iterator to __vma_adjust()Liam R. Howlett1-16/+15
2023-02-09mmap: convert __vma_adjust() to use vma iteratorLiam R. Howlett1-62/+13
2023-02-09mm: switch vma_merge(), split_vma(), and __split_vma to vma iteratorLiam R. Howlett1-57/+22
2023-02-09mmap: use vmi version of vma_merge()Liam R. Howlett1-3/+5
2023-02-09mmap: pass through vmi iterator to __split_vma()Liam R. Howlett1-2/+2
2023-02-09ipc/shm: introduce new do_vma_munmap() to munmapLiam R. Howlett1-20/+18
2023-02-09mm: add temporary vma iterator versions of vma_merge(), split_vma(), and __sp...Liam R. Howlett1-0/+44
2023-02-09mmap: convert vma_expand() to use vma iteratorLiam R. Howlett1-5/+4
2023-02-09mmap: change do_mas_munmap and do_mas_aligned_munmap() to use vma iteratorLiam R. Howlett1-42/+35
2023-02-09mm/mmap: remove preallocation from do_mas_align_munmap()Liam R. Howlett1-8/+6
2023-02-09mmap: convert vma_link() vma iteratorLiam R. Howlett1-3/+3
2023-02-09mm/mmap: convert brk to use vma iteratorLiam R. Howlett1-25/+23
2023-02-09mm: expand vma iterator interfaceLiam R. Howlett1-0/+18
2023-02-02mm: implement memory-deny-write-execute as a prctlJoey Gouly1-0/+10
2023-02-02mm/mmap: fix comment of unmapped_area{_topdown}Vernon Yang1-5/+5
2023-02-02mm/mmap: fix typo in commentVernon Yang1-1/+1
2023-02-02maple_tree: remove the parameter entry of mas_preallocateVernon Yang1-8/+8
2023-01-11mm: update mmap_sem comments to refer to mmap_lockLorenzo Stoakes1-2/+2
2023-01-11mm/userfaultfd: enable writenotify while userfaultfd-wp is enabled for a VMADavid Hildenbrand1-0/+4
2022-12-13Merge tag 'mm-stable-2022-12-13' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-8/+4
2022-12-11mm/mmap: properly unaccount memory on mas_preallocate() failureAlistair Popple1-3/+3
2022-12-10Merge tag 'mm-hotfixes-stable-2022-12-10-1' of git://git.kernel.org/pub/scm/l...Linus Torvalds1-10/+4
2022-12-09Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-10/+4
2022-12-09mmap: fix do_brk_flags() modifying obviously incorrect VMAsLiam Howlett1-8/+3
2022-12-09mm: do not BUG_ON missing brk mapping, because userspace can unmap itJason A. Donenfeld1-2/+1
2022-12-04Revert "mm: align larger anonymous mappings on THP boundaries"Linus Torvalds1-3/+0
2022-11-30Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-2/+6
2022-11-22mm: mmap: fix documentation for vma_mas_szeroIan Cowan1-1/+1
2022-11-08memory: move hotplug memory notifier priority to same file for easy sortingLiu Shixin1-1/+1
2022-11-08mm/mmap: use hotplug_memory_notifier() directlyLiu Shixin1-5/+1
2022-11-08mm/mmap: fix memory leak in mmap_region()Li Zetao1-1/+5
2022-10-28mmap: fix remap_file_pages() regressionLiam Howlett1-0/+3
2022-10-20mm/mmap: fix MAP_FIXED address return on VMA mergeLiam Howlett1-8/+7
2022-10-20mm/mmap.c: __vma_adjust(): suppress uninitialized var warningAndrew Morton1-1/+2
2022-10-20mm/mmap: undo ->mmap() when mas_preallocate() failsMike Kravetz1-1/+1
2022-10-12mm/mmap: undo ->mmap() when arch_validate_flags() failsCarlos Llamas1-1/+4
2022-10-12mm/mmap: preallocate maple nodes for brk vma expansionLiam Howlett1-12/+6
2022-10-12mmap: fix copy_vma() failure pathLiam Howlett1-0/+5
2022-09-26mm: refactor of vma_merge()Jakub Matěna1-50/+37
2022-09-26mm: delete unused MMF_OOM_VICTIM flagSuren Baghdasaryan1-2/+1
2022-09-26mm: drop oom code from exit_mmapSuren Baghdasaryan1-19/+11
2022-09-26mm/mmap.c: pass in mapping to __vma_link_file()Liam R. Howlett1-17/+12
2022-09-26mm/mmap: drop range_has_overlap() functionLiam R. Howlett1-26/+1
2022-09-26mm: remove the vma linked listLiam R. Howlett1-282/+187
2022-09-26userfaultfd: use maple tree iterator to iterate VMAsLiam R. Howlett1-1/+1
2022-09-26mm/mmap: change do_brk_munmap() to use do_mas_align_munmap()Liam R. Howlett1-1/+1
2022-09-26mm/mmap: reorganize munmap to use maple statesLiam R. Howlett1-83/+145
2022-09-26mm/mmap: move mmap_region() below do_munmap()Liam R. Howlett1-245/+245
2022-09-26mm: remove vmacacheLiam R. Howlett1-29/+2
2022-09-26mm/mmap: use advanced maple tree API for mmap_region()Liam R. Howlett1-48/+203
2022-09-26mm: use maple tree operations for find_vma_intersection()Liam R. Howlett1-0/+29
2022-09-26mm/mmap: change do_brk_flags() to expand existing VMA and add do_brk_munmap()Liam R. Howlett1-60/+177
2022-09-26mmap: change zeroing of maple tree in __vma_adjust()Liam R. Howlett1-8/+22
2022-09-26mm: remove rb tree.Liam R. Howlett1-395/+111
2022-09-26mm/mmap: use maple tree for unmapped_area{_topdown}Liam R. Howlett1-221/+34
2022-09-26mm/mmap: use the maple tree for find_vma_prev() instead of the rbtreeLiam R. Howlett1-10/+17
2022-09-26mm/mmap: use the maple tree in find_vma() instead of the rbtree.Liam R. Howlett1-18/+10
2022-09-26mmap: use the VMA iterator in count_vma_pages_range()Matthew Wilcox (Oracle)1-17/+7
2022-09-26mm: add VMA iteratorMatthew Wilcox (Oracle)1-5/+5
2022-09-26mm: start tracking VMAs with maple treeLiam R. Howlett1-33/+320
2022-09-11mm: align larger anonymous mappings on THP boundariesRik van Riel1-0/+3
2022-08-20mm/hugetlb: fix hugetlb not supporting softdirty trackingDavid Hildenbrand1-2/+5
2022-07-29mm/mprotect: fix soft-dirty check in can_change_pte_writable()Peter Xu1-1/+1
2022-07-29mm/mmap.c: fix missing call to vm_unacct_memory in mmap_regionMiaohe Lin1-1/+0
2022-07-17mm/mmap: fix obsolete comment of find_extend_vmaMiaohe Lin1-1/+0
2022-07-17mm/mmap: drop ARCH_HAS_VM_GET_PAGE_PROTAnshuman Khandual1-22/+0
2022-07-17mm/mmap: build protect protection_map[] with ARCH_HAS_VM_GET_PAGE_PROTAnshuman Khandual1-4/+1
2022-07-17mm/mmap: define DECLARE_VM_GET_PAGE_PROTAnshuman Khandual1-25/+1
2022-07-17mm/mmap: build protect protection_map[] with __P000Anshuman Khandual1-0/+2
2022-06-27docs: rename Documentation/vm to Documentation/mmMike Rapoport1-1/+1
2022-05-28Merge tag 'powerpc-5.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-9/+26
2022-05-19mm: mmap: register suitable readonly file vmas for khugepagedYang Shi1-0/+7
2022-05-19mm: khugepaged: introduce khugepaged_enter_vma() helperYang Shi1-4/+4
2022-05-13mmap locking API: fix missed mmap_sem references in commentsFlorian Rommel1-2/+2
2022-05-05mm: Add len and flags parameters to arch_get_mmap_end()Christophe Leroy1-2/+2
2022-05-05mm, hugetlbfs: Allow an arch to always use generic versions of get_unmapped_a...Christophe Leroy1-7/+24
2022-04-28mm/mmap: drop arch_vm_get_page_pgprot()Anshuman Khandual1-3/+1
2022-04-28mm/mmap: drop arch_filter_pgprot()Anshuman Khandual1-11/+2
2022-04-28mm/mmap: add new config ARCH_HAS_VM_GET_PAGE_PROTAnshuman Khandual1-0/+2
2022-04-28mm/mmap.c: use helper mlock_future_check()Miaohe Lin1-9/+2
2022-04-28mm/mmap: clarify protection_map[] indicesAnshuman Khandual1-2/+16
2022-04-28mm/mmap.c: use mmap_assert_write_locked() instead of open coding itRolf Eike Beer1-2/+2
2022-04-21mm, hugetlb: allow for "high" userspace addressesChristophe Leroy1-8/+0
2022-03-22Merge tag 'folio-5.18c' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-30/+2
2022-03-22mm/mmap: remove obsolete comment in ksys_mmap_pgoffMiaohe Lin1-2/+0
2022-03-22mm: _install_special_mapping() apply VM_LOCKED_CLEAR_MASKHugh Dickins1-0/+1
2022-03-22mm/mmap: return 1 from stack_guard_gap __setup() handlerRandy Dunlap1-1/+1
2022-03-05mm: refactor vm_area_struct::anon_vma_name usage codeSuren Baghdasaryan1-6/+6
2022-02-26mm: fix use-after-free bug when mm->mmap is reused after being freedSuren Baghdasaryan1-0/+1
2022-02-17mm/munlock: delete munlock_vma_pages_all(), allow oomreapHugh Dickins1-30/+2
2022-01-17Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+0
2022-01-15mm: protect free_pgtables with mmap_lock write lock in exit_mmapSuren Baghdasaryan1-8/+8
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-16/+22
2022-01-08exit: Remove profile_task_exit & profile_munmapEric W. Biederman1-1/+0
2021-11-09mm,hugetlb: remove mlock ulimit for SHM_HUGETLBzhangyiru1-2/+1
2021-11-06mm/mmap.c: fix a data race of mm->total_vmPeng Liu1-1/+1
2021-09-04Merge tag 'denywrite-for-5.15' of git://github.com/davidhildenbrand/linuxLinus Torvalds1-26/+3
2021-09-03Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-4/+3
2021-09-03remap_file_pages: Use vma_lookup() instead of find_vma()Liam R. Howlett1-4/+1
2021-09-03mm/pagemap: add mmap_assert_locked() annotations to find_vma*()Luigi Rizzo1-0/+2
2021-09-03mm: ignore MAP_DENYWRITE in ksys_mmap_pgoff()David Hildenbrand1-2/+0
2021-09-03mm: remove VM_DENYWRITEDavid Hildenbrand1-24/+3
2021-08-23fs: remove mandatory file locking supportJeff Layton1-6/+0
2021-07-08mmap: make mlock_future_check() globalMike Rapoport1-3/+2
2021-06-29Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-30/+24
2021-06-29mm/mmap: use find_vma_intersection() in do_mmap() for overlapLiam Howlett1-3/+1
2021-06-29mm/mmap: introduce unlock_range() for code cleanupLiam Howlett1-19/+20
2021-06-29mm/mmap.c: logic of find_vma_intersection repeated in __do_munmapGonzalo Matias Juarez Tello1-7/+2
2021-06-29mm: ignore MAP_EXECUTABLE in ksys_mmap_pgoff()David Hildenbrand1-1/+1
2021-06-28Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-2/+2
2021-05-07mm: fix typos in commentsIngo Molnar1-2/+2
2021-05-05mm/mmap.c: don't unlock VMAs in remap_file_pages()Liam Howlett1-17/+1
2021-04-30Reimplement RLIMIT_MEMLOCK on top of ucountsAlexey Gladkov1-2/+2
2021-04-30Revert "mremap: don't allow MREMAP_DONTUNMAP on special_mappings and aio"Brian Geffon1-5/+1
2021-03-26arm64: Support execute-only permissions with Enhanced PANVladimir Murzin1-0/+6
2021-02-24mm/mmap.c: remove unnecessary local variableAdrian Huang1-3/+1
2021-01-29tlb: mmu_gather: Remove start/end arguments from tlb_gather_mmu()Will Deacon1-1/+1
2021-01-29tlb: mmu_gather: Introduce tlb_gather_mmu_fullmm()Will Deacon1-1/+1
2021-01-29tlb: mmu_gather: Remove unused start/end arguments from tlb_finish_mmu()Will Deacon1-2/+2
2020-12-18Merge tag 'drm-next-2020-12-18' of git://anongit.freedesktop.org/drm/drmLinus Torvalds1-1/+1
2020-12-15mm: forbid splitting special mappingsDmitry Safonov1-0/+12
2020-12-15vm_ops: rename .split() callback to .may_split()Dmitry Safonov1-2/+2
2020-12-15mremap: don't allow MREMAP_DONTUNMAP on special_mappings and aioDmitry Safonov1-1/+5
2020-12-15Merge tag 'drm-misc-next-2020-11-27-1' of git://anongit.freedesktop.org/drm/d...Daniel Vetter1-1/+1
2020-12-06mm/mmap.c: fix mmap return value when vma is merged after call_mmap()Liu Zixian1-14/+12
2020-11-19mm: mmap: fix fput in error path v2Christian König1-1/+1
2020-11-05Revert "mm: mmap: fix fput in error path v2"Christian König1-1/+1
2020-11-05Revert "mm: introduce vma_set_file function v4"Christian König1-12/+0
2020-11-05mm: introduce vma_set_file function v4Christian König1-0/+12
2020-11-05mm: mmap: fix fput in error path v2Christian König1-1/+1
2020-10-18mm/mmap: add inline munmap_vma_range() for code readabilityLiam R. Howlett1-15/+33
2020-10-18mm/mmap: add inline vma_next() for readability of mmap codeLiam R. Howlett1-6/+20
2020-10-16mm: remove the now-unnecessary mmget_still_valid() hackJann Horn1-4/+1
2020-10-16mm: use helper function put_write_access()Miaohe Lin1-1/+1
2020-10-13mm/mmap.c: replace do_brk with do_brk_flags in comment of insert_vm_struct()Liao Pingfang1-1/+1
2020-10-13mm/mmap.c: use helper function allow_write_access() in __remove_shared_vm_str...Miaohe Lin1-1/+1
2020-10-13mm: use helper function mapping_allow_writable()Miaohe Lin1-1/+1
2020-10-13mm/mmap: check on file instead of the rb_root_cached of its address_spaceWei Yang1-3/+3
2020-10-13mm/mmap: not necessary to check mapping separatelyWei Yang1-2/+1
2020-10-13mm/mmap: leave adjust_next as virtual address instead of page frame numberWei Yang1-4/+4
2020-10-13mm/mmap: leverage vma_rb_erase_ignore() to implement vma_rb_erase()Wei Yang1-9/+7
2020-10-13mm/mmap: rename __vma_unlink_common() to __vma_unlink()Wei Yang1-3/+3