aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/shm.c
AgeCommit message (Expand)AuthorFilesLines
2023-12-20shm: Slim down dependenciesKent Overstreet1-0/+1
2023-10-25mempolicy: alloc_pages_mpol() for NUMA policy without vmaHugh Dickins1-13/+8
2023-07-11mm: Re-introduce vm_flags to do_mmap()Yu-cheng Yu1-1/+1
2023-02-09ipc/shm: introduce new do_vma_munmap() to munmapLiam R. Howlett1-5/+6
2023-02-09ipc/shm: use the vma iterator for munmap callsLiam R. Howlett1-6/+5
2022-11-22ipc/shm: call underlying open/close vm_opsMike Kravetz1-9/+25
2022-09-26ipc/shm: use VMA iterator instead of linked listLiam R. Howlett1-11/+10
2021-11-20shm: extend forced shm destroy to support objects from several IPC nsesAlexander Mikhalitsyn1-46/+143
2021-11-09mm,hugetlb: remove mlock ulimit for SHM_HUGETLBzhangyiru1-7/+1
2021-09-03memcg: enable accounting of ipc resourcesVasily Averin1-1/+1
2021-07-02Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-3/+3
2021-07-01ipc: use kmalloc for msg_queue and shmid_kernelVasily Averin1-3/+3
2021-04-30Reimplement RLIMIT_MEMLOCK on top of ucountsAlexey Gladkov1-13/+13
2020-12-15vm_ops: rename .split() callback to .may_split()Dmitry Safonov1-4/+4
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-2/+2
2020-08-12ipc/shm.c: remove the superfluous breakLiao Pingfang1-1/+0
2020-08-12ipc: uninline functionsAlexey Dobriyan1-2/+1
2020-08-07mm: remove unnecessary wrapper function do_mmap_pgoff()Peter Collingbourne1-1/+1
2020-06-09mmap locking API: use coccinelle to convert mmap_sem rwsem call sitesMichel Lespinasse1-4/+4
2020-04-07ipc/shm.c: make compat_ksys_shmctl() staticJason Yan1-1/+1
2019-01-25ipc: rename old-style shmctl/semctl/msgctl syscallsArnd Bergmann1-7/+33
2018-10-25Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-3/+3
2018-10-05ipc/shm.c: use ERR_CAST() for shm_lock() error returnKees Cook1-1/+1
2018-09-04ipc/shm: properly return EIDRM in shm_lock()Davidlohr Bueso1-0/+1
2018-08-27y2038: globally rename compat_time to old_time32Arnd Bergmann1-3/+3
2018-08-22ipc/util.c: further variable name cleanupsManfred Spraul1-2/+2
2018-08-22ipc: simplify ipc initializationDavidlohr Bueso1-5/+4
2018-08-22ipc: drop ipc_lock()Davidlohr Bueso1-6/+23
2018-08-22ipc: rename ipcctl_pre_down_nolock()Manfred Spraul1-1/+1
2018-08-22ipc/util.c: use ipc_rcu_putref() for failues in ipc_addid()Manfred Spraul1-0/+2
2018-08-22ipc: compute kern_ipc_perm.id under the ipc lockManfred Spraul1-5/+14
2018-08-15Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-0/+1
2018-08-13Merge branch 'work.open3' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-24/+21
2018-08-05Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+12
2018-08-02ipc/shm.c add ->pagesize function to shm_vm_opsJane Chu1-0/+12
2018-07-12do_shmat(): grab shp->shm_file earlier, switch to alloc_file_clone()Al Viro1-21/+18
2018-07-12alloc_file(): switch to passing O_... flags instead of FMODE_... modeAl Viro1-4/+4
2018-06-22rhashtable: split rhashtable.hNeilBrown1-0/+1
2018-06-15ipc: use new return type vm_fault_tSouptick Joarder1-1/+1
2018-06-04Merge branch 'timers-2038-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-3/+11
2018-05-25ipc/shm: fix shmat() nil address after round-down when remappingDavidlohr Bueso1-2/+10
2018-05-25Revert "ipc/shm: Fix shmat mmap nil-page protection"Davidlohr Bueso1-7/+2
2018-04-20y2038: ipc: Report long times to user spaceArnd Bergmann1-3/+11
2018-04-13ipc/shm: fix use-after-free of shm file via remap_file_pages()Eric Biggers1-3/+20
2018-04-11ipc/shm.c: shm_split(): remove unneeded test for NULL shm_file_data.vm_opsAndrew Morton1-1/+1
2018-04-11ipc/shm: introduce shmctl(SHM_STAT_ANY)Davidlohr Bueso1-5/+18
2018-04-03Merge branch 'userns-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-26/+42
2018-04-02Merge branch 'syscalls-next' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-4/+24
2018-04-02ipc: add shmctl syscall/compat_syscall wrappersDominik Brodowski1-2/+12
2018-04-02ipc: add shmdt syscall wrapperDominik Brodowski1-1/+6
2018-04-02ipc: add shmget syscall wrapperDominik Brodowski1-1/+6
2018-03-28ipc/shm.c: add split function to shm_vm_opsMike Kravetz1-0/+12
2018-03-28ipc/shm: Fix pid freeing.Eric W. Biederman1-2/+2
2018-03-27ipc: Directly call the security hook in ipc_ops.associateEric W. Biederman1-9/+1
2018-03-27ipc/shm: Fix shmctl(..., IPC_STAT, ...) between pid namespaces.Eric W. Biederman1-10/+15
2018-03-24shm: Move struct shmid_kernel into ipc/shm.cEric W. Biederman1-0/+22
2018-03-22shm/security: Pass kern_ipc_perm not shmid_kernel into the shm security hooksEric W. Biederman1-10/+7
2018-02-06ipc: fix ipc data structures inconsistencyPhilippe Mikoyan1-5/+15
2017-11-17Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-0/+1
2017-11-17sysvipc: duplicate lock comments wrt ipc_addid()Davidlohr Bueso1-0/+1
2017-11-17Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-2/+2
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-10-11fix address space warnings in ipc/Linus Torvalds1-2/+2
2017-09-25fix a typo in put_compat_shm_info()Al Viro1-1/+1
2017-09-20ipc/shm: Fix order of parameters when calling copy_compat_shmid_to_userWill Deacon1-1/+1
2017-09-14Merge branch 'work.ipc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro...Linus Torvalds1-170/+363
2017-09-08ipc: optimize semget/shmget/msgget for lots of keysGuillaume Knispel1-5/+7
2017-09-03ipc: shm: Make shmid_kernel timestamps y2038 safeDeepa Dinamani1-5/+5
2017-08-02ipc: add missing container_of()s for randstructKees Cook1-1/+3
2017-07-15shmat(2): move compat to nativeAl Viro1-0/+19
2017-07-15ipc: make use of compat ipc_perm helpersAl Viro1-26/+4
2017-07-15ipc: move compat shmctl to nativeAl Viro1-5/+204
2017-07-15shmctl: split the work from copyin/copyoutAl Viro1-175/+172
2017-07-12ipc/shm: remove special shm_alloc/freeKees Cook1-20/+4
2017-07-12ipc: move atomic_set() to where it is neededKees Cook1-2/+0
2017-07-12ipc/shm.c: avoid ipc_rcu_putref for failed ipc_addid()Manfred Spraul1-6/+3
2017-07-12ipc/shm: avoid ipc_rcu_alloc()Kees Cook1-4/+14
2017-07-12ipc/shm: do not use ipc_rcu_free()Kees Cook1-2/+7
2017-07-12ipc: merge ipc_rcu and kern_ipc_permManfred Spraul1-7/+11
2017-07-05fs: remove call_fsync helper functionJeff Layton1-1/+1
2017-05-08ipc/shm: some shmat cleanupsDavidlohr Bueso1-9/+7
2017-03-02Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-2/+2
2017-02-27ipc/shm: Fix shmat mmap nil-page protectionDavidlohr Bueso1-4/+9
2017-02-24userfaultfd: non-cooperative: add event for memory unmapsMike Rapoport1-4/+4
2017-02-24mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmfDave Jiang1-3/+3
2017-02-20vfs: use helper for calling f_op->fsync()Miklos Szeredi1-1/+1
2017-02-20mm: use helper for calling f_op->mmap()Miklos Szeredi1-1/+1
2016-12-14ipc/shm.c: coding style fixesShailesh Pandey1-3/+10
2016-07-26shmem: make shmem_inode_info::lock irq-safeKirill A. Shutemov1-2/+2
2016-07-26shmem: get_unmapped_area align huge pageHugh Dickins1-2/+4
2016-05-23ipc, shm: make shmem attach/detach wait for mmap_sem killableMichal Hocko1-2/+7
2016-02-18ipc/shm: handle removed segments gracefully in shm_mmap()Kirill A. Shutemov1-10/+43
2016-01-20ipc/shm.c: is_file_shm_hugepages() can be booleanYaowei Bai1-1/+1
2015-09-30Initialize msg/shm IPC objects before doing ipc_addid()Linus Torvalds1-6/+7
2015-09-10ipc: convert invalid scenarios to use WARN_ONDavidlohr Bueso1-2/+2
2015-08-07ipc: use private shmem or hugetlbfs inodes for shm segments.Stephen Smalley1-1/+1
2015-06-30ipc: rename ipc_obtain_objectDavidlohr Bueso1-1/+1
2015-06-30ipc,shm: move BUG_ON check into shm_lockDavidlohr Bueso1-5/+5
2015-04-26Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2015-04-15ipc: remove use of seq_printf return valueJoe Perches1-20/+22
2015-04-15VFS: assorted weird filesystems: d_inode() annotationsDavid Howells1-1/+1
2014-12-13shmdt: use i_size_read() instead of ->i_sizeDave Hansen1-2/+3
2014-12-13ipc/shm.c: fix overly aggressive shmdt() when calls span multiple segmentsDave Hansen1-5/+13
2014-10-14ipc/shm: kill the historical/wrong mm->start_stack checkOleg Nesterov1-7/+0
2014-08-08shm: allow exit_shm in parallel if only marking orphansJack Miller1-32/+35
2014-08-08shm: make exit_shm work proportional to task activityJack Miller1-11/+11
2014-06-06ipc/shm.c: check for integer overflow during shmget.Manfred Spraul1-0/+3
2014-06-06ipc/shm.c: check for overflows of shm_totManfred Spraul1-1/+2
2014-06-06ipc/shm.c: check for ulong overflows in shmatManfred Spraul1-0/+3
2014-06-06ipc, kernel: clear whitespacePaul McQuade1-1/+1
2014-06-06ipc, kernel: use Linux headersPaul McQuade1-1/+1
2014-06-06ipc: constify ipc_opsMathias Krause1-5/+5
2014-01-27ipc: standardize code commentsDavidlohr Bueso1-1/+0
2014-01-27ipc: whitespace cleanupManfred Spraul1-16/+16
2014-01-27ipc: introduce ipc_valid_object() helper to sort out IPC_RMID racesRafael Aquini1-8/+8
2013-11-21ipc,shm: correct error return value in shmctl (SHM_UNLOCK)Jesper Nilsson1-3/+6
2013-11-21ipc,shm: fix shm_file deletion racesGreg Thelen1-5/+23
2013-09-24ipc: fix race with LSMsDavidlohr Bueso1-5/+12
2013-09-11ipc, shm: drop shm_lock_checkDavidlohr Bueso1-11/+0
2013-09-11ipc, shm: guard against non-existant vma in shmdt(2)Davidlohr Bueso1-2/+1
2013-09-11ipc: rename ids->rw_mutexDavidlohr Bueso1-28/+28
2013-09-11ipc,shm: shorten critical region for shmatDavidlohr Bueso1-4/+10
2013-09-11ipc,shm: cleanup do_shmat pastaDavidlohr Bueso1-14/+12
2013-09-11ipc,shm: shorten critical region for shmctlDavidlohr Bueso1-24/+25
2013-09-11ipc,shm: make shmctl_nolock locklessDavidlohr Bueso1-7/+12
2013-09-11ipc,shm: introduce shmctl_nolockDavidlohr Bueso1-18/+39
2013-09-11ipc,shm: shorten critical region in shmctl_downDavidlohr Bueso1-4/+6
2013-09-11ipc,shm: introduce lockless functions to obtain the ipc objectDavidlohr Bueso1-0/+20
2013-07-09ipc: move locking out of ipcctl_pre_down_nolockDavidlohr Bueso1-6/+17
2013-07-09ipc: close open coded spin lock callsDavidlohr Bueso1-2/+2
2013-07-09ipc: move rcu lock out of ipc_addidDavidlohr Bueso1-1/+4
2013-07-09ipc/shmc.c: eliminate ugly 80-col tricksAndrew Morton1-2/+2
2013-05-09shm: fix null pointer deref when userspace specifies invalid hugepage sizeLi Zefan1-1/+7
2013-05-07hugetlbfs: fix mmap failure in unaligned size requestNaoya Horiguchi1-1/+5
2013-05-01ipc: sysv shared memory limited to 8TiBRobin Holt1-1/+1
2013-02-26Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-5/+6
2013-02-23mm: make do_mmap_pgoff return populate as a size in bytes, not as a boolMichel Lespinasse1-2/+2
2013-02-23mm: introduce mm_populate() for populating new vmasMichel Lespinasse1-5/+7
2013-02-22fs: Preserve error code in get_empty_filp(), part 2Anatol Pomozov1-1/+2
2013-02-22new helper: file_inode(file)Al Viro1-4/+4
2012-12-11mm: support more pagesizes for MAP_HUGETLB/SHM_HUGETLBAndi Kleen1-1/+2
2012-09-06userns: Convert ipc to use kuid and kgid where appropriateEric W. Biederman1-8/+11
2012-07-30ipc: add COMPAT_SHMLBA supportWill Deacon1-4/+5
2012-06-07ipc: shm: restore MADV_REMOVE functionality on shared memory segmentsWill Deacon1-0/+12
2012-06-01switch aio and shm to do_mmap_pgoff(), make do_mmap() staticAl Viro1-1/+1
2012-06-01take security_mmap_file() outside of ->mmap_semAl Viro1-0/+5
2012-03-21hugetlbfs: fix alignment of huge page requestsSteven Truelove1-1/+1
2012-01-23SHM_UNLOCK: fix Unevictable pages stranded after swapHugh Dickins1-1/+1
2012-01-23SHM_UNLOCK: fix long unpreemptible sectionHugh Dickins1-15/+22
2011-08-04Do 'shm_init_ns()' in an early pure_initcallLinus Torvalds1-1/+8
2011-08-03shm: optimize exit_shm()Vasiliy Kulikov1-0/+3
2011-08-03shm: fix wrong testsVasiliy Kulikov1-2/+2
2011-07-30shm: optimize locking and ipc_namespace gettingVasiliy Kulikov1-33/+28
2011-07-30shm: handle separate PID namespaces caseVasiliy Kulikov1-7/+20
2011-07-26ipc: introduce shm_rmid_forced sysctlVasiliy Kulikov1-4/+93
2011-07-20fs: push i_mutex and filemap_write_and_wait down into ->fsync() handlersJosef Bacik1-2/+2
2011-05-26mm: don't access vm_flags as 'int'KOSAKI Motohiro1-1/+1
2011-03-31Fix common misspellingsLucas De Marchi1-1/+1
2011-03-23userns: user namespaces: convert several capable() callsSerge E. Hallyn1-4/+5
2010-10-30ipc: shm: fix information leak to userlandVasiliy Kulikov1-0/+1
2010-10-27ipc/shm.c: add RSS and swap size information to /proc/sysvipc/shmHelge Deller1-21/+42
2010-10-15llseek: automatically add .llseek fopArnd Bergmann1-0/+2
2010-05-27drop unused dentry argument to ->fsyncChristoph Hellwig1-7/+4
2010-03-12ipc: use rlimit helpersJiri Slaby1-2/+1
2010-01-16nommu: fix SYSV SHM for NOMMUDavid Howells1-0/+3
2009-12-16Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/v...Linus Torvalds1-7/+5
2009-12-16Untangling ima mess, part 1: alloc_file()Al Viro1-2/+0
2009-12-16switch alloc_file() to passing struct pathAl Viro1-5/+5
2009-12-16ipc ns: fix memory leak (idr)Serge E. Hallyn1-0/+1
2009-12-11file ->get_unmapped_area() shouldn't duplicate work of get_unmapped_area()Al Viro1-14/+17
2009-09-27const: mark struct vm_struct_operationsAlexey Dobriyan1-2/+2
2009-09-22hugetlbfs: allow the creation of files suitable for MAP_PRIVATE on the vfs in...Eric B Munson1-1/+1
2009-09-14fix undefined reference to user_shm_unlockHugh Dickins1-1/+1
2009-08-24mm: fix hugetlb bug due to user_shm_unlock callHugh Dickins1-3/+5
2009-06-11Merge branch 'next' into for-linusJames Morris1-2/+1
2009-06-09shm: fix unused warnings on nommuMike Frysinger1-2/+5
2009-05-22integrity: move ima_counts_getMimi Zohar1-1/+0
2009-05-22integrity: path_check updateMimi Zohar1-2/+2
2009-04-02ipc: make shm_get_stat() more robustTony Battersby1-2/+4
2009-03-24Merge branch 'master' into nextJames Morris1-3/+5
2009-02-10Do not account for the address space used by hugetlbfs using VM_ACCOUNTMel Gorman1-3/+5
2009-02-06Merge branch 'master' into nextJames Morris1-19/+28
2009-02-06Integrity: IMA file free imbalanceMimi Zohar1-0/+3
2009-02-05shm: fix shmctl(SHM_INFO) lockup with !CONFIG_SHMEMTony Battersby1-0/+4
2009-01-31Stop playing silly games with the VM_ACCOUNT flagLinus Torvalds1-2/+2
2009-01-14[CVE-2009-0029] System call wrappers part 25Heiko Carstens1-4/+4
2009-01-08NOMMU: Make VMAs per MM as for MMU-mode linuxDavid Howells1-0/+12
2009-01-06ipc: clean up ipc/shm.cWANG Cong1-10/+5
2009-01-04sanitize audit_ipc_obj()Al Viro1-3/+1
2008-11-14CRED: Wrap current->cred and a few other accessorsDavid Howells1-2/+2
2008-11-14CRED: Separate task security context from task_structDavid Howells1-2/+2
2008-11-14CRED: Wrap task credential accesses in the SYSV IPC subsystemDavid Howells1-2/+3
2008-10-21[PATCH] introduce fmode_t, do annotationsAl Viro1-1/+1
2008-10-20SHM_LOCKED pages are unevictableLee Schermerhorn1-0/+4
2008-07-25ipc: get rid of ipc_lock_down()Nadia Derbey1-18/+3
2008-07-24hugetlb: modular state for hugetlb page sizeAndi Kleen1-1/+2
2008-06-12/proc/sysvipc/shm: fix 32-bit truncation of segment sizesPaul Menage1-8/+8
2008-06-10shm: Remove silly double assignmentNeil Horman1-2/+0
2008-04-29IPC: consolidate all xxxctl_down() functionsPierre Peiffer1-38/+4
2008-04-29IPC: introduce ipc_update_perm()Pierre Peiffer1-4/+1