aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.h
AgeCommit message (Expand)AuthorFilesLines
2024-03-12Merge branch 'slab/for-6.9/slab-flag-cleanups' into slab/for-linusVlastimil Babka1-1/+0
2024-03-05slab: remove PARTIAL_NODE slab_stateChengming Zhou1-1/+0
2024-02-26mm, slab: deprecate SLAB_MEM_SPREAD flagVlastimil Babka1-1/+0
2024-02-21mm, slab: remove unused object_size parameter in kmem_cache_flags()Chengming Zhou1-2/+1
2024-01-30mm/slub: remove parameter 'flags' in create_kmalloc_caches()Zheng Yejian1-3/+1
2024-01-22mm/slub: unify all sl[au]b parameters with "slab_$param"Xiongwei Song1-1/+1
2023-12-06mm/slab: move kmalloc() functions from slab_common.c to slub.cVlastimil Babka1-3/+0
2023-12-06mm/slab: move kmalloc_slab() to mm/slab.hVlastimil Babka1-2/+26
2023-12-06mm/slab: move kfree() from slab_common.c to slub.cVlastimil Babka1-4/+0
2023-12-06mm/slab: move struct kmem_cache_node from slab.h to slub.cVlastimil Babka1-29/+0
2023-12-06mm/slab: move memcg related functions from slab.h to slub.cVlastimil Babka1-206/+0
2023-12-06mm/slab: move pre/post-alloc hooks from slab.h to slub.cVlastimil Babka1-72/+0
2023-12-06mm/slab: consolidate includes in the internal mm/slab.hVlastimil Babka1-14/+14
2023-12-06mm/slab: move the rest of slub_def.h to mm/slab.hVlastimil Babka1-1/+137
2023-12-05mm/slab: remove CONFIG_SLAB code from slab common codeVlastimil Babka1-64/+5
2023-10-25mm: kmem: scoped objcg protectionRoman Gushchin1-7/+8
2023-07-18Randomized slab caches for kmalloc()GONG, Ruiqi1-1/+1
2023-07-08kasan, slub: fix HW_TAGS zeroing with slub_debugAndrey Konovalov1-2/+14
2023-06-29Merge tag 'slab-for-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/vba...Linus Torvalds1-10/+3
2023-06-28Merge tag 'mm-stable-2023-06-24-19-15' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-3/+2
2023-06-19mm/slab: simplify create_kmalloc_cache() args and make it staticCatalin Marinas1-3/+2
2023-06-16Merge branches 'slab/for-6.5/prandom', 'slab/for-6.5/slab_no_merge' and 'slab...Vlastimil Babka1-2/+3
2023-06-05slub: Replace cmpxchg_double()Peter Zijlstra1-7/+46
2023-06-02mm/slab: introduce kmem_cache flag SLAB_NO_MERGEJesper Dangaard Brouer1-2/+3
2023-05-24mm/slab: remove HAVE_HARDENED_USERCOPY_ALLOCATORVlastimil Babka1-8/+0
2023-04-27Merge tag 'mm-stable-2023-04-27-15-30' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-0/+1
2023-04-05mm: move kmem_cache_init() declaration to mm/slab.hMike Rapoport (IBM)1-0/+1
2023-03-29mm/slab: remove CONFIG_SLOB code from slab common codeVlastimil Babka1-61/+0
2023-02-16mm: memcontrol: rename memcg_kmem_enabled()Roman Gushchin1-5/+5
2023-01-18mm/slab: add is_kmalloc_cache() helper functionFeng Tang1-0/+8
2022-12-01Merge branch 'slub-tiny-v1r6' into slab/for-nextVlastimil Babka1-2/+0
2022-12-01Merge branch 'slab/for-6.2/kmalloc_redzone' into slab/for-nextVlastimil Babka1-1/+3
2022-12-01mm/slub, kunit: Add a test case for kmalloc redzone checkFeng Tang1-1/+3
2022-11-27mm, slab: ignore hardened usercopy parameters when disabledVlastimil Babka1-2/+0
2022-11-21Merge branch 'slab/for-6.2/kmalloc_redzone' into slab/for-nextVlastimil Babka1-2/+20
2022-11-21Merge branch 'slab/for-6.2/fit_rcu_head' into slab/for-nextVlastimil Babka1-22/+32
2022-11-21mm/sl[au]b: rearrange struct slab fields to allow larger rcu_headVlastimil Babka1-22/+32
2022-11-11mm/slub: extend redzone check to extra allocated kmalloc space than requestedFeng Tang1-0/+4
2022-11-10mm/slub: only zero requested size of buffer for kzalloc when debug enabledFeng Tang1-2/+16
2022-10-24mm/slab: Annotate kmem_cache_node->list_lock as rawJiri Kosina1-2/+2
2022-10-10Merge tag 'mm-stable-2022-10-08' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-0/+1
2022-10-03mm: kmsan: call KMSAN hooks from SLUB codeAlexander Potapenko1-0/+1
2022-09-01mm/slab_common: move declaration of __ksize() to mm/slab.hHyeonggon Yoo1-0/+2
2022-09-01mm/sl[au]b: generalize kmalloc subsystemHyeonggon Yoo1-2/+0
2022-08-24mm/sl[au]b: introduce common alloc/free functions without tracepointHyeonggon Yoo1-0/+5
2022-08-24mm/slab: kmalloc: pass requests larger than order-1 page to page allocatorHyeonggon Yoo1-0/+3
2022-08-24mm/slab_common: kmalloc_node: pass large requests to page allocatorHyeonggon Yoo1-0/+2
2022-07-20mm/slab_common: move generic bulk alloc/free functions to SLOBHyeonggon Yoo1-9/+0
2022-07-04mm: slab: optimize memcg_slab_free_hook()Muchun Song1-22/+8
2022-05-25Merge tag 'slab-for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/vb...Linus Torvalds1-2/+3
2022-04-15mm, kfence: support kmem_dump_obj() for KFENCE objectsMarco Elver1-1/+1
2022-04-06mm/slub, kunit: Make slub_kunit unaffected by user specified flagsHyeonggon Yoo1-2/+3
2022-03-22mm: introduce kmem_cache_alloc_lruMuchun Song1-4/+21
2022-01-18Merge tag 'slab-for-5.17-part2' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-6/+0
2022-01-15Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-5/+0
2022-01-15mm: slab: make slab iterator functions staticMuchun Song1-5/+0
2022-01-06mm: Remove slab from struct pageMatthew Wilcox (Oracle)1-6/+0
2022-01-06mm/slob: Remove unnecessary page_mapcount_reset() function callHyeonggon Yoo1-2/+2
2022-01-06mm/slub: Define struct slab fields for CONFIG_SLUB_CPU_PARTIAL only when enabledVlastimil Babka1-0/+2
2022-01-06mm/slub: Simplify struct slab slabs field definitionVlastimil Babka1-4/+0
2022-01-06mm/sl*b: Differentiate struct slab fields by sl*b implementationsVlastimil Babka1-10/+38
2022-01-06mm/memcg: Convert slab objcgs from struct page to struct slabVlastimil Babka1-23/+50
2022-01-06mm: Convert struct page to struct slab in functions used by other subsystemsVlastimil Babka1-2/+2
2022-01-06mm: Convert check_heap_object() to use struct slabMatthew Wilcox (Oracle)1-0/+11
2022-01-06mm: Use struct slab in kmem_obj_info()Matthew Wilcox (Oracle)1-2/+2
2022-01-06mm: Convert virt_to_cache() to use struct slabMatthew Wilcox (Oracle)1-4/+4
2022-01-06mm: Convert [un]account_slab_page() to struct slabMatthew Wilcox (Oracle)1-9/+8
2022-01-06mm: Split slab into its own typeMatthew Wilcox (Oracle)1-0/+167
2021-11-20mm: kmemleak: slob: respect SLAB_NOLEAKTRACE flagRustam Kovhaev1-1/+1
2021-07-30mm/memcg: fix NULL pointer dereference in memcg_slab_free_hook()Wang Hai1-1/+1
2021-07-15mm: move helper to check slub_debug_enabledMarco Elver1-4/+11
2021-07-04Merge branch 'core-rcu-2021.07.04' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-0/+1
2021-06-29mm: memcg/slab: properly set up gfp flags for objcg pointer arrayWaiman Long1-1/+0
2021-06-29mm/memcg: move mod_objcg_state() to memcontrol.cWaiman Long1-14/+2
2021-06-29mm: slub: move sysfs slab alloc/free interfaces to debugfsFaiyaz Mohammed1-0/+6
2021-06-29mm/slub, kunit: add a KUnit test for SLUB debugging functionalityOliver Glitta1-0/+1
2021-05-10mm/slub: Add Support for free path information of an objectManinder Singh1-0/+1
2021-04-30kasan, mm: integrate slab init_on_alloc with HW_TAGSAndrey Konovalov1-4/+13
2021-04-28Merge tag 'core-rcu-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-0/+2
2021-04-08init_on_alloc: Optimize static branchesKees Cook1-2/+4
2021-03-08mm: Don't build mm_dump_obj() on CONFIG_PRINTK=n kernelsPaul E. McKenney1-0/+2
2021-02-24mm: memcg/slab: pre-allocate obj_cgroups for slab caches with SLAB_ACCOUNTRoman Gushchin1-4/+10
2021-02-24mm/sl?b.c: remove ctor argument from kmem_cache_flagsNikolay Borisov1-4/+2
2021-01-22mm: Add mem_dump_obj() to print source of memory blockPaul E. McKenney1-0/+12
2020-12-15Merge tag 'net-next-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-29/+9
2020-12-15mm: extract might_alloc() debug checkDaniel Vetter1-4/+1
2020-12-15mm: memcontrol: remove unused mod_memcg_obj_state()Muchun Song1-2/+2
2020-12-11Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-16/+24
2020-12-06mm: memcg/slab: fix obj_cgroup_charge() return value handlingRoman Gushchin1-16/+24
2020-12-02mm: memcontrol/slab: Use helpers to access slab page's memcg_dataRoman Gushchin1-27/+8
2020-12-02mm: memcontrol: Use helpers to read page's memcg dataRoman Gushchin1-5/+4
2020-10-18mm: kmem: move memcg_kmem_bypass() calls to get_mem/obj_cgroup_from_current()Roman Gushchin1-3/+0
2020-10-16mm/slab.h: remove duplicate includeYueHaibing1-1/+0
2020-10-13mm: memcg/slab: uncharge during kmem_cache_free_bulk()Bharata B Rao1-15/+27
2020-08-07mm: slab: rename (un)charge_slab_page() to (un)account_slab_page()Roman Gushchin1-4/+4
2020-08-07mm: memcg/slab: remove unused argument by charge_slab_page()Roman Gushchin1-2/+1
2020-08-07mm: memcg/slab: use a single set of kmem_caches for all allocationsRoman Gushchin1-152/+42
2020-08-07mm: memcg/slab: deprecate slab_root_cachesRoman Gushchin1-17/+0
2020-08-07mm: memcg/slab: remove memcg_kmem_get_cache()Roman Gushchin1-2/+9
2020-08-07mm: memcg/slab: simplify memcg cache creationRoman Gushchin1-0/+2
2020-08-07mm: memcg/slab: use a single set of kmem_caches for all accounted allocationsRoman Gushchin1-101/+45
2020-08-07mm: memcg/slab: charge individual slab objects instead of pagesRoman Gushchin1-96/+78
2020-08-07mm: memcg/slab: save obj_cgroup for non-root slab objectsRoman Gushchin1-6/+54
2020-08-07mm: memcg/slab: allocate obj_cgroups for non-root slab pagesRoman Gushchin1-0/+52
2020-08-07mm: memcontrol: decouple reference counting from page accountingJohannes Weiner1-2/+0
2020-08-07mm: memcg: convert vmstat slab counters to bytesRoman Gushchin1-7/+8
2020-08-07mm, slab/slub: improve error reporting and overhead of cache_from_obj()Vlastimil Babka1-0/+45
2020-08-07mm, slab/slub: move and improve cache_from_obj()Vlastimil Babka1-23/+0
2020-08-07mm, slab: check GFP_SLAB_BUG_MASK before alloc_pages in kmalloc_orderLong Li1-0/+1
2020-06-26mm, slab: fix sign conversion problem in memcg_uncharge_slab()Waiman Long1-2/+2
2020-04-02mm: kmem: rename (__)memcg_kmem_(un)charge_memcg() to __memcg_kmem_(un)charge()Roman Gushchin1-2/+2
2020-04-02mm: memcg/slab: cache page number in memcg_(un)charge_slab()Roman Gushchin1-10/+12
2020-04-02mm: kmem: switch to nr_pages in (__)memcg_kmem_charge_memcg()Roman Gushchin1-1/+1
2020-04-02mm: kmem: cleanup memcg_kmem_uncharge_memcg() argumentsRoman Gushchin1-1/+1
2020-04-02mm: kmem: cleanup (__)memcg_kmem_charge_memcg() argumentsRoman Gushchin1-1/+1
2019-12-01mm: clean up and clarify lruvec lookup procedureJohannes Weiner1-2/+2
2019-12-01mm, slab: make kmalloc_info[] contain all types of namesPengfei Li1-1/+1
2019-11-06mm: slab: make page_cgroup_ino() to recognize non-compound slab pages properlyRoman Gushchin1-2/+2
2019-09-24mm, slab: move memcg_cache_params structure to mm/slab.hWaiman Long1-0/+63
2019-09-24mm, slab: extend slab/shrink to shrink all memcg cachesWaiman Long1-0/+1
2019-07-12mm: security: introduce init_on_alloc=1 and init_on_free=1 boot optionsAlexander Potapenko1-0/+20
2019-07-12mm: memcg/slab: reparent memcg kmem_caches on cgroup removalRoman Gushchin1-9/+32
2019-07-12mm: memcg/slab: stop setting page->mem_cgroup pointer for slab pagesRoman Gushchin1-13/+61
2019-07-12mm: memcg/slab: rework non-root kmem_cache lifecycle managementRoman Gushchin1-32/+12
2019-07-12mm: memcg/slab: unify SLAB and SLUB page accountingRoman Gushchin1-0/+25
2019-07-12mm: memcg/slab: generalize postponed non-root kmem_cache deactivationRoman Gushchin1-2/+1
2019-07-12mm: memcg/slab: rename slab delayed deactivation functions and fieldsRoman Gushchin1-1/+1
2019-07-12mm: memcg/slab: postpone kmem_cache memcg pointer initialization to memcg_lin...Roman Gushchin1-2/+3
2019-07-12mm/slab: sanity-check page type when looking up cacheKees Cook1-4/+13
2019-07-12mm/slab: validate cache membership under freelist hardeningKees Cook1-8/+6
2019-03-29mm: add support for kmem caches in DMA32 zoneNicolas Boichat1-1/+2
2019-03-05memcg: localize memcg_kmem_enabled() checkShakeel Butt1-4/+0
2019-02-21kmemleak: account for tagged pointers when calculating pointer rangeAndrey Konovalov1-0/+1
2019-02-21kasan, kmemleak: pass tagged pointers to kmemleakAndrey Konovalov1-4/+2
2018-12-28kasan, mm: change hooks signaturesAndrey Konovalov1-1/+1
2018-08-17mm: introduce CONFIG_MEMCG_KMEM as combination of CONFIG_MEMCG && !CONFIG_SLOBKirill Tkhai1-3/+3
2018-04-05slab, slub: skip unnecessary kasan_cache_shutdown()Shakeel Butt1-0/+1
2018-04-05slab: make usercopy region 32-bitAlexey Dobriyan1-2/+2
2018-04-05slab: make kmem_cache_flags accept 32-bit object sizeAlexey Dobriyan1-2/+2
2018-04-05slab: make kmem_cache_create() work with 32-bit sizesAlexey Dobriyan1-3/+3
2018-04-05slab: make create_boot_cache() work with 32-bit sizesAlexey Dobriyan1-2/+2
2018-04-05slab: make create_kmalloc_cache() work with 32-bit sizesAlexey Dobriyan1-4/+4
2018-02-03Merge tag 'usercopy-v4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-2/+6
2018-01-31mm/slab_common.c: make calculate_alignment() staticByongho Lee1-3/+0
2018-01-15usercopy: Mark kmalloc caches as usercopy cachesDavid Windsor1-1/+2
2018-01-15usercopy: Prepare for usercopy whitelistingDavid Windsor1-1/+4
2017-11-15kmemcheck: stop using GFP_NOTRACK and SLAB_NOTRACKLevin, Alexander (Sasha Levin)1-3/+2
2017-11-15kmemcheck: remove annotationsLevin, Alexander (Sasha Levin)1-2/+0
2017-11-15slab, slub, slob: add slab_flags_tAlexey Dobriyan1-13/+13
2017-11-15mm: oom: show unreclaimable slab info when unreclaimable slabs > user memoryYang Shi1-0/+8
2017-11-07Merge branch 'linus' into locking/core, to resolve conflictsIngo Molnar1-0/+1
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-10-24locking/barriers: Convert users of lockless_dereference() to READ_ONCE()Will Deacon1-1/+1
2017-08-10locking/lockdep: Rework FS_RECLAIM annotationPeter Zijlstra1-1/+5
2017-07-06mm: memcontrol: account slab stats per lruvecJohannes Weiner1-17/+1
2017-07-06mm: memcontrol: use generic mod_memcg_page_state for kmem pagesJohannes Weiner1-8/+8
2017-07-06mm: memcontrol: use the node-native slab memory countersJohannes Weiner1-2/+2
2017-04-18mm: Rename SLAB_DESTROY_BY_RCU to SLAB_TYPESAFE_BY_RCUPaul E. McKenney1-2/+2
2017-02-22slab: remove synchronous synchronize_sched() from memcg cache deactivation pathTejun Heo1-0/+2
2017-02-22slab: introduce __kmemcg_cache_deactivate()Tejun Heo1-1/+2
2017-02-22slab: implement slab_root_caches listTejun Heo1-0/+15
2017-02-22slab: link memcg kmem_caches on their associated memory cgroupTejun Heo1-0/+3
2017-02-22slab: reorganize memcg_cache_paramsTejun Heo1-3/+3
2017-02-22Revert "slub: move synchronize_sched out of slab_mutex on shrink"Tejun Heo1-1/+1
2017-02-22mm, slab: rename kmalloc-node cache to kmalloc-<size>Vlastimil Babka1-0/+6
2016-12-12mm, slab: maintain total slab count instead of active countDavid Rientjes1-2/+2
2016-12-12mm, slab: faster active and free statsGreg Thelen1-1/+2
2016-12-12mm/slab_common.c: check kmem_create_cache flags are commonThomas Garnier1-0/+15
2016-12-12slub: move synchronize_sched out of slab_mutex on shrinkVladimir Davydov1-1/+1
2016-10-27mm/slab: improve performance of gathering slabinfo statsAruna Ramakrishna1-0/+1
2016-07-28mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUBAlexander Potapenko1-0/+2
2016-07-26mm: memcontrol: cleanup kmem charge functionsVladimir Davydov1-4/+12
2016-07-26mm: reorganize SLAB freelist randomizationThomas Garnier1-0/+14
2016-05-20mm: kasan: initial memory quarantine implementationAlexander Potapenko1-0/+2
2016-03-25mm, kasan: add GFP flags to KASAN APIAlexander Potapenko1-1/+1
2016-03-17mm: memcontrol: report slab usage in cgroup2 memory.statVladimir Davydov1-2/+28
2016-03-15slub: convert SLAB_DEBUG_FREE to SLAB_CONSISTENCY_CHECKSLaura Abbott1-2/+3
2016-03-15mm: fix some spellingJesper Dangaard Brouer1-1/+1
2016-03-15mm: fault-inject take over bootstrap kmem_cache checkJesper Dangaard Brouer1-1/+1
2016-03-15mm/slab: move SLUB alloc hooks to common mm/slab.hJesper Dangaard Brouer1-0/+62
2016-02-18mm: slab: free kmem_cache_node after destroy sysfs fileDmitry Safonov1-0/+1
2016-01-20mm: memcontrol: move kmem accounting code to CONFIG_MEMCGJohannes Weiner1-3/+3
2016-01-14slab: add SLAB_ACCOUNT flagVladimir Davydov1-2/+3
2015-11-22slab/slub: adjust kmem_cache_alloc_bulk APIJesper Dangaard Brouer1-1/+1
2015-11-05memcg: unify slab and other kmem pages chargingVladimir Davydov1-17/+7
2015-11-05mm/slab_common.c: clear pointers to per memcg caches on destroyVladimir Davydov1-6/+0
2015-09-04mm/slab.h: fix argument order in cache_from_obj's error messageDaniel Borkmann1-1/+1
2015-09-04slab: infrastructure for bulk object allocation and freeingChristoph Lameter1-0/+9
2015-06-24slab: correct size_index table before replacing the bootstrap kmem_cache_nodeDaniel Sanders1-0/+1
2015-02-12slub: make dead caches discard free slabs immediatelyVladimir Davydov1-1/+1
2015-02-12slab: link memcg caches of the same kind into a listVladimir Davydov1-0/+17
2015-02-12slab: embed memcg_cache_params to kmem_cacheVladimir Davydov1-25/+23
2015-02-10memcg: zap __memcg_{charge,uncharge}_slabVladimir Davydov1-2/+2
2014-12-10memcg: use generic slab iterators for showing slabinfoVladimir Davydov1-0/+1
2014-12-10slab: replace smp_read_barrier_depends() with lockless_dereference()Pranith Kumar1-3/+3
2014-12-10slab: print slabinfo header in seq showVladimir Davydov1-0/+1
2014-10-09mm/slab: use percpu allocator for cpu cacheJoonsoo Kim1-1/+0
2014-10-09mm/slab: support slab mergeJoonsoo Kim1-1/+1
2014-10-09mm/slab_common: commonize slab merge logicJoonsoo Kim1-0/+15
2014-10-09slab: fix for_each_kmem_cache_node()Mikulas Patocka1-2/+2