aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-22Merge tag 'riscv-for-linus-6.9-mw2' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-1/+1
2024-03-14Merge tag 'mm-stable-2024-03-13-20-04' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-67/+43
2024-03-04mm, mmap: fix vma_merge() case 7 with vma_ops->closeVlastimil Babka1-1/+9
2024-02-22mm/mmap: pass vma to vma_merge()Yajun Deng1-14/+13
2024-02-22mm/mmap: use SZ_{8K, 128K} helper macroYajun Deng1-4/+4
2024-02-22mm/mmap: introduce vma_set_range()Yajun Deng1-22/+7
2024-02-21mm: mmap: no need to call khugepaged_enter_vma() for stackYang Shi1-2/+0
2024-02-21mm/mmap: simplify vma link and unlinkYajun Deng1-25/+19
2024-01-26mm: thp_get_unmapped_area must honour topdown preferenceRyan Roberts1-2/+4
2024-01-24mm: Change mmap_rnd_bits_max to __ro_after_initSami Tolvanen1-1/+1
2024-01-09Merge tag 'mm-stable-2024-01-08-15-31' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-39/+7
2023-12-29mm: align larger anonymous mappings on THP boundariesRik van Riel1-0/+3
2023-12-10mmap: remove the IA64-specific vma expansion implementationLukas Bulwahn1-36/+1
2023-12-10fork: use __mt_dup() to duplicate maple tree in dup_mmap()Peng Zhang1-3/+6
2023-11-02Merge tag 'mm-stable-2023-11-01-14-33' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-33/+116
2023-11-01Merge tag 'asm-generic-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-3/+3
2023-10-30Merge tag 'execve-v6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-6/+0
2023-10-25mm: fix multiple typos in multiple filesMuhammad Muzammil1-1/+1
2023-10-18mm: perform the mapping_map_writable() check after call_mmap()Lorenzo Stoakes1-8/+11
2023-10-18mm: drop the assumption that VM_SHARED always implies writableLorenzo Stoakes1-6/+6
2023-10-18mm: abstract VMA merge and extend into vma_merge_extend() helperLorenzo Stoakes1-7/+24
2023-10-18mm: abstract merge for new VMAs into vma_merge_new_vma()Lorenzo Stoakes1-7/+18
2023-10-18mm: make vma_merge() and split_vma() internalLorenzo Stoakes1-4/+4
2023-10-18mm: abstract the vma_merge()/split_vma() pattern for mprotect() et al.Lorenzo Stoakes1-0/+48
2023-10-18mmap: add clarifying comment to vma_merge() codeLiam R. Howlett1-0/+5
2023-10-18Merge mm-hotfixes-stable into mm-stable to pick up depended-upon changes.Andrew Morton1-13/+33
2023-10-06mmap: fix error paths with dup_anon_vma()Liam R. Howlett1-8/+22
2023-10-06mmap: fix vma_iterator in error path of vma_merge()Liam R. Howlett1-2/+8
2023-10-06mm: fix vm_brk_flags() to not bail out while holding lockSebastian Ott1-3/+3
2023-10-04mm: remove duplicated vma->vm_flags check when expanding stackXiu Jianfeng1-2/+0
2023-10-04mm: fix unaccount of memory on vma_link() failureAnthony Yznaga1-1/+2
2023-10-03mm: Remove unused vm_brk()Kees Cook1-6/+0
2023-09-11arch: Remove Itanium (IA-64) architectureArd Biesheuvel1-3/+3
2023-08-31Merge tag 'x86_shstk_for_6.6-rc1' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-7/+7
2023-08-21mm: move vma locking out of vma_prepare and dup_anon_vmaSuren Baghdasaryan1-11/+19
2023-08-21mm: always lock new vma before inserting into vma treeSuren Baghdasaryan1-2/+5
2023-08-21mm/mmap.c: use helper macro K()ZhangPeng1-3/+3
2023-08-18mm/mmap: change vma iteration order in do_vmi_align_munmap()Liam R. Howlett1-14/+13
2023-08-18mm: set up vma iterator for vma_iter_prealloc() callsLiam R. Howlett1-27/+42
2023-08-18mm: use vma_iter_clear_gfp() in nommuLiam R. Howlett1-12/+0
2023-08-18maple_tree: re-introduce entry to mas_preallocate() argumentsLiam R. Howlett1-2/+2
2023-08-18mm: remove re-walk from mmap_region()Liam R. Howlett1-5/+10
2023-08-18mm: remove prev check from do_vmi_align_munmap()Liam R. Howlett1-2/+0
2023-08-18mm: change do_vmi_align_munmap() tracking of VMAs to removeLiam R. Howlett1-17/+24
2023-08-18mm: don't drop VMA locks in mm_drop_all_locks()Jann Horn1-1/+6
2023-08-18mm/mmap: change detached vma locking schemeLiam R. Howlett1-2/+2
2023-08-18mm/mmap: clean up validate_mm() callsLiam R. Howlett1-20/+4
2023-08-18mm/mmap: move vma operations to mm_struct out of the critical section of file...Yu Ma1-8/+3
2023-07-27mm: lock VMA in dup_anon_vma() before setting ->anon_vmaJann Horn1-0/+1
2023-07-11mm: Add guard pages around a shadow stack.Rick Edgecombe1-2/+2
2023-07-11mm: Re-introduce vm_flags to do_mmap()Yu-cheng Yu1-5/+5
2023-07-08mm: lock newly mapped VMA with corrected orderingHugh Dickins1-2/+2
2023-07-08mm: lock newly mapped VMA which can be modified after it becomes visibleSuren Baghdasaryan1-0/+2
2023-07-08mm: lock a vma before stack expansionSuren Baghdasaryan1-0/+4
2023-07-04mm: don't do validate_mm() unnecessarily and without mmap lockingLinus Torvalds1-4/+2
2023-07-03mm: validate the mm before dropping the mmap lockLinus Torvalds1-2/+1
2023-07-01mm: Update do_vmi_align_munmap() return semanticsLiam R. Howlett1-51/+43
2023-07-01mm: Always downgrade mmap_lock if requestedMatthew Wilcox (Oracle)1-13/+2
2023-06-29Merge tag 'unmap-fix-20230629' of git://git.infradead.org/users/dwmw2/linuxLinus Torvalds1-4/+5
2023-06-28Merge branch 'expand-stack'Linus Torvalds1-16/+105
2023-06-28Merge tag 'mm-stable-2023-06-24-19-15' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-101/+121
2023-06-28mm/mmap: Fix error return in do_vmi_align_munmap()David Woodhouse1-4/+5
2023-06-27mm: always expand the stack with the mmap write lock heldLinus Torvalds1-24/+97
2023-06-24mm: make find_extend_vma() fail if write lock not heldLiam R. Howlett1-17/+33
2023-06-24arm/mm: Convert to using lock_mm_and_find_vma()Ben Hutchings1-1/+1
2023-06-19userfaultfd: fix regression in userfaultfd_unmap_prep()Liam R. Howlett1-16/+15
2023-06-18mm/mmap: Fix error path in do_vmi_align_munmap()Liam R. Howlett1-20/+17
2023-06-09mm/mmap: separate writenotify and dirty tracking logicLorenzo Stoakes1-12/+46
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