aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
AgeCommit message (Expand)AuthorFilesLines
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
2020-10-13Merge tag 'block-5.10-2020-10-12' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2020-10-12Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds1-0/+9
2020-10-11mm: mmap: Fix general protection fault in unlink_file_vma()Miaohe Lin1-1/+5
2020-09-24bdi: replace BDI_CAP_NO_{WRITEBACK,ACCT_DIRTY} with a single flagChristoph Hellwig1-1/+1
2020-09-04mm: Introduce arch_validate_flags()Catalin Marinas1-0/+9
2020-08-07mm: remove unnecessary wrapper function do_mmap_pgoff()Peter Collingbourne1-8/+8
2020-08-07mm: mmap: merge vma after call_mmap() if possibleMiaohe Lin1-1/+21
2020-08-07mm/mmap: optimize a branch judgment in ksys_mmap_pgoff()Zhen Lei1-3/+4
2020-07-31Merge branch 'for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/pau...core-rcu-2020-08-03Ingo Molnar1-0/+1
2020-07-24mm/mmap.c: close race between munmap() and expand_upwards()/downwards()Kirill A. Shutemov1-2/+14
2020-06-29mm/mmap.c: Add cond_resched() for exit_mmap() CPU stallsPaul E. McKenney1-0/+1
2020-06-09mmap locking API: convert mmap_sem commentsMichel Lespinasse1-18/+18
2020-06-09mmap locking API: convert mmap_sem API commentsMichel Lespinasse1-1/+1
2020-06-09mmap locking API: rename mmap_sem to mmap_lockMichel Lespinasse1-2/+2
2020-06-09mmap locking API: use coccinelle to convert mmap_sem rwsem call sitesMichel Lespinasse1-16/+16
2020-06-04mm: mmap: fix a typo in comment "compatbility"->"compatibility"Ethon Paul1-1/+1
2020-04-10mm/vma: introduce VM_ACCESS_FLAGSAnshuman Khandual1-1/+1
2020-04-10mm/mmap.c: initialize align_offset explicitly for vm_unmapped_areaJaewon Kim1-0/+2
2020-04-07mm: use fallthrough;Joe Perches1-3/+2
2020-04-07mm/vma: make vma_is_accessible() available for general useAnshuman Khandual1-3/+2
2020-04-02mm: mmap: add trace point of vm_unmapped_areaJaewon Kim1-2/+10
2020-04-02mmap: remove inline of vm_unmapped_areaJaewon Kim1-2/+18
2020-02-20mm: Avoid creating virtual address aliases in brk()/mmap()/mremap()Catalin Marinas1-4/+0
2020-01-31mm/mmap.c: get rid of odd jump labels in find_mergeable_anon_vma()Miaohe Lin1-20/+16
2020-01-27Merge tag 'timers-core-2020-01-27' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-0/+2
2020-01-14x86/vdso: Handle faults on timens pageDmitry Safonov1-0/+2
2020-01-06arm64: Revert support for execute-only user mappingsCatalin Marinas1-6/+0
2019-12-01mm/mmap.c: make vma_merge() comment more easy to understandWei Yang1-9/+12
2019-12-01mm/mmap.c: use IS_ERR_VALUE to check return value of get_unmapped_areaGaowei Pu1-4/+5
2019-12-01mm/mmap.c: rb_parent is not necessary in __vma_link_list()Wei Yang1-1/+1
2019-12-01mm/mmap.c: extract __vma_unlink_list() as counterpart for __vma_link_list()Wei Yang1-11/+1
2019-12-01mm/mmap.c: __vma_unlink_prev() is not necessary nowWei Yang1-8/+1
2019-12-01mm/mmap.c: prev could be retrieved from vma->vm_prevWei Yang1-13/+7
2019-12-01mm/mmap.c: remove a never-triggered warning in __vma_adjust()Wei Yang1-2/+0
2019-09-25mm: untag user pointers in mmap/munmap/mremap/brkCatalin Marinas1-0/+5
2019-09-25augmented rbtree: add new RB_DECLARE_CALLBACKS_MAX macroMichel Lespinasse1-11/+18
2019-09-24mm: mmap: increase sockets maximum memory size pgoff for 32bitsIvan Khoronzhuk1-0/+3
2019-09-24mm/mmap.c: refine find_vma_prev() with rb_last()Wei Yang1-6/+3
2019-08-20vfs: don't allow writes to swap filesDarrick J. Wong1-2/+6
2019-05-21treewide: Add SPDX license identifier for missed filesThomas Gleixner1-0/+1
2019-05-09x86/mpx, mm/core: Fix recursive munmap() corruptionDave Hansen1-7/+8
2019-04-19coredump: fix race condition between mmget_not_zero()/get_task_mm() and core ...Andrea Arcangeli1-1/+6
2019-03-05mm: fix some typos in mm directoryWei Yang1-4/+4
2019-03-05mm/mmap.c: remove some redundancy in arch_get_unmapped_area_topdown()Yang Fan1-4/+3
2019-02-27mm: enforce min addr even if capable() in expand_downwards()Jann Horn1-4/+3
2018-12-28mm/mmap.c: remove verify_mm_writelocked()Yangtao Li1-16/+0
2018-12-10mm: mmap: Allow for "high" userspace addressesSteve Capper1-7/+18
2018-10-26mm: brk: downgrade mmap_sem to read when shrinkingYang Shi1-11/+35
2018-10-26mm: mremap: downgrade mmap_sem to read when shrinkingYang Shi1-2/+2
2018-10-26mm: unmap VM_PFNMAP mappings with optimized pathYang Shi1-9/+0
2018-10-26mm: unmap VM_HUGETLB mappings with optimized pathYang Shi1-1/+1
2018-10-26mm: mmap: zap pages with read mmap_sem in munmapYang Shi1-11/+48
2018-10-13mm/mmap.c: don't clobber partially overlapping VMA with MAP_FIXED_NOREPLACEJann Horn1-1/+1
2018-08-22mm, oom: remove oom_lock from oom_reaperMichal Hocko1-2/+0
2018-08-22mm, oom: distinguish blockable mode for mmu notifiersMichal Hocko1-1/+1
2018-08-17dax: remove VM_MIXEDMAP for fsdax and device daxDave Jiang1-4/+5
2018-07-26mm: fix vma_is_anonymous() false-positivesKirill A. Shutemov1-0/+3
2018-07-21mm: make vm_area_alloc() initialize core fieldsLinus Torvalds1-9/+3
2018-07-21mm: make vm_area_dup() actually copy the old vma dataLinus Torvalds1-7/+0
2018-07-21mm: use helper functions for allocating and freeing vm_area structsLinus Torvalds1-11/+11
2018-07-14mm: do not bug_on on incorrect length in __mm_populate()Michal Hocko1-17/+12
2018-06-07mm: change return type to vm_fault_tSouptick Joarder1-2/+2
2018-06-04Merge tag 'docs-4.18' of git://git.lwn.net/linuxLinus Torvalds1-1/+1
2018-05-19mmap: relax file size limit for regular filesLinus Torvalds1-1/+1
2018-05-11Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-18/+26
2018-05-11mm, oom: fix concurrent munlock and oom reaper unmap, v3David Rientjes1-18/+26
2018-05-11mmap: introduce sane default mmap limitsLinus Torvalds1-0/+32
2018-04-25x86/pti: Filter at vma->vm_page_prot populationDave Hansen1-1/+10
2018-04-16Merge branch 'mm-rst' into docs-nextJonathan Corbet1-1/+1
2018-04-16docs/vm: rename documentation files to .rstMike Rapoport1-1/+1
2018-04-11mm: introduce MAP_FIXED_NOREPLACEMichal Hocko1-0/+11
2018-04-05mm: always print RLIMIT_DATA warningDavid Woodhouse1-6/+8
2018-04-02mm: add ksys_mmap_pgoff() helper; remove in-kernel calls to sys_mmap_pgoff()Dominik Brodowski1-5/+12
2017-12-14mm, oom_reaper: fix memory corruptionMichal Hocko1-5/+5