aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
AgeCommit message (Expand)AuthorFilesLines
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...Ingo 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
2017-11-29mm, hugetlbfs: introduce ->split() to vm_operations_structDan Williams1-3/+5
2017-11-03mm: introduce MAP_SHARED_VALIDATE, a mechanism to safely define new mmap flagsDan Williams1-0/+15
2017-09-08lib/interval_tree: fast overlap detectionDavidlohr Bueso1-5/+5
2017-09-06mm: oom: let oom_reap_task and exit_mmap run concurrentlyAndrea Arcangeli1-0/+18
2017-09-06userfaultfd: call userfaultfd_unmap_prep only if __split_vma succeedsAndrea Arcangeli1-7/+15
2017-09-06mm: rename global_page_state to global_zone_page_stateMichal Hocko1-3/+3
2017-07-14mm: fix overflow check in expand_upwards()Helge Deller1-1/+1
2017-07-10mm: use dedicated helper to access rlimit valueKrzysztof Opasiak1-3/+2
2017-07-10mm/mmap.c: expand_downwards: don't require the gap if !vm_prevOleg Nesterov1-7/+3
2017-07-10mm/mmap.c: do not blow on PROT_NONE MAP_FIXED holes in the stackMichal Hocko1-2/+4
2017-07-08Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-armLinus Torvalds1-0/+4
2017-07-06mm/mmap.c: mark protection_map as __ro_after_initDaniel Micay1-1/+1
2017-06-21Allow stack to grow up to address space limitHelge Deller1-5/+8
2017-06-21mm: fix new crash in unmapped_area_topdown()Hugh Dickins1-2/+4
2017-06-21ARM: 8683/1: ARM32: Support mremap() for sigpage/vDSODmitry Safonov1-0/+4
2017-06-19mm: larger stack guard gap, between vmasHugh Dickins1-60/+89
2017-05-03mm/mmap: replace SHM_HUGE_MASK with MAP_HUGE_MASK inside mmap_pgoffAnshuman Khandual1-1/+1
2017-03-02Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2017-03-02Merge remote-tracking branch 'ovl/for-viro' into for-linusAl Viro1-1/+1
2017-02-24mm, madvise: fail with ENOMEM when splitting vma will hit max_map_countDavid Rientjes1-4/+4
2017-02-24userfaultfd: non-cooperative: add event for memory unmapsMike Rapoport1-15/+31
2017-02-24mm: call vm_munmap in munmap syscall instead of using open coded versionMike Rapoport1-8/+1
2017-02-24mm: fix comments for mmap_init()seokhoon.yoon1-1/+1
2017-02-24mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmfDave Jiang1-5/+4
2017-02-22powerpc: do not make the entire heap executableDenys Vlasenko1-5/+19
2017-02-20mm: use helper for calling f_op->mmap()Miklos Szeredi1-1/+1
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-10-07mm: vma_merge: correct false positive from __vma_unlink->validate_mm_rbAndrea Arcangeli1-18/+41
2016-10-07mm: vma_adjust: minor comment correctionAndrea Arcangeli1-1/+1
2016-10-07mm: vma_adjust: remove superfluous check for next not NULLAndrea Arcangeli1-1/+1
2016-10-07mm: vma_merge: fix vm_page_prot SMP race condition against rmap_walkAndrea Arcangeli1-27/+130
2016-10-07mm: vma_adjust: remove superfluous confusing update in remove_next == 1 caseAndrea Arcangeli1-2/+22
2016-10-07mm: vm_page_prot: update with WRITE_ONCE/READ_ONCEAndrea Arcangeli1-7/+9
2016-10-03Merge branch 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-0/+8
2016-09-14x86/arch_prctl/vdso: Add ARCH_MAP_VDSO_*Dmitry Safonov1-0/+8
2016-08-25arm64: Introduce execute-only page access permissionsCatalin Marinas1-0/+5
2016-08-02mm: refuse wrapped vm_brk requestsKees Cook1-3/+5
2016-07-28mm: fix use-after-free if memory allocation failed in vma_adjust()Kirill A. Shutemov1-5/+15
2016-07-26shmem: get_unmapped_area align huge pageHugh Dickins1-2/+14
2016-07-26thp, mlock: do not mlock PTE-mapped file huge pagesKirill A. Shutemov1-0/+6
2016-07-26thp: run vma_adjust_trans_huge() outside i_mmap_rwsemKirill A. Shutemov1-2/+2
2016-07-08x86/vdso: Add mremap hook to vm_special_mappingDmitry Safonov1-0/+10
2016-05-27mm: remove more IS_ERR_VALUE abusesLinus Torvalds1-8/+8
2016-05-23mm: make vm_brk killableMichal Hocko1-6/+3
2016-05-23mm: make vm_munmap killableMichal Hocko1-5/+3