aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
AgeCommit message (Expand)AuthorFilesLines
2023-04-27Merge tag 'mm-stable-2023-04-27-15-30' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-5/+4
2023-04-18mm: vmscan: refactor updating current->reclaim_stateYosry Ahmed1-3/+2
2023-04-05mm, treewide: redefine MAX_ORDER sanelyKirill A. Shutemov1-3/+3
2023-04-05mm/slub: fix MAX_ORDER usage in calculate_order()Kirill A. Shutemov1-1/+1
2023-03-13mm: slub: make kobj_type structure constantThomas Weißschuh1-1/+1
2023-02-23Merge tag 'mm-stable-2023-02-20-13-37' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-3/+3
2023-02-21Merge branch 'slab/for-6.3/fixes' into slab/for-linusVlastimil Babka1-5/+6
2023-02-16lib/stackdepot, mm: rename stack_depot_want_early_initAndrey Konovalov1-2/+2
2023-02-08mm, slab/slub: Ensure kmem_cache_alloc_bulk() is available earlyThomas Gleixner1-4/+5
2023-02-06mm/slub: fix memory leak with using debugfs_lookup()Greg Kroah-Hartman1-1/+1
2023-01-18mm: introduce folio_is_pfmemallocSidhartha Kumar1-1/+1
2023-01-13mm/sl{a,u}b: fix wrong usages of folio_page() for getting head pagesSeongJae Park1-1/+1
2022-12-13Merge tag 'mm-stable-2022-12-13' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-6/+1
2022-12-12Merge tag 'linux-kselftest-kunit-next-6.2-rc1' of git://git.kernel.org/pub/sc...Linus Torvalds1-1/+2
2022-12-12Merge tag 'random-6.2-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-1/+1
2022-12-12mm: slub: test: Use the kunit_get_current_test() functionDavid Gow1-1/+2
2022-12-01Merge branch 'slub-tiny-v1r6' into slab/for-nextVlastimil Babka1-134/+288
2022-12-01mm, slub: don't aggressively inline with CONFIG_SLUB_TINYVlastimil Babka1-4/+10
2022-12-01mm, slub: remove percpu slabs with CONFIG_SLUB_TINYVlastimil Babka1-3/+99
2022-12-01mm, slub: split out allocations from pre/post hooksVlastimil Babka1-50/+80
2022-11-27mm, slub: refactor free debug processingVlastimil Babka1-71/+83
2022-11-27mm, slub: lower the default slub_max_order with CONFIG_SLUB_TINYVlastimil Babka1-1/+2
2022-11-27mm, slub: retain no free slabs on partial list with CONFIG_SLUB_TINYVlastimil Babka1-0/+5
2022-11-27mm, slub: disable SYSFS support with CONFIG_SLUB_TINYVlastimil Babka1-6/+6
2022-11-27mm, slab: ignore hardened usercopy parameters when disabledVlastimil Babka1-0/+4
2022-11-21Merge branch 'slab/for-6.2/kmalloc_redzone' into slab/for-nextVlastimil Babka1-10/+54
2022-11-21Merge branch 'slab/for-6.2/fit_rcu_head' into slab/for-nextVlastimil Babka1-11/+15
2022-11-21Merge branch 'slab/for-6.2/slub-sysfs' into slab/for-nextVlastimil Babka1-8/+16
2022-11-21mm/migrate: make isolate_movable_page() skip slab pagesVlastimil Babka1-1/+5
2022-11-21mm/slub, percpu: correct the calculation of early percpu allocation sizeBaoquan He1-1/+2
2022-11-18treewide: use get_random_u32_below() instead of deprecated functionJason A. Donenfeld1-1/+1
2022-11-11mm/slub: extend redzone check to extra allocated kmalloc space than requestedFeng Tang1-5/+45
2022-11-10mm: kasan: Extend kasan_metadata_size() to also cover in-object sizeFeng Tang1-2/+2
2022-11-10mm/slub: only zero requested size of buffer for kzalloc when debug enabledFeng Tang1-3/+7
2022-11-08mm/slub.c: use hotplug_memory_notifier() directlyLiu Shixin1-6/+1
2022-10-24mm/slub: perform free consistency checks before call_rcuVlastimil Babka1-10/+10
2022-10-24mm/slub: remove dead code for debug caches on deactivate_slab()Hyeonggon Yoo1-14/+2
2022-10-24mm: Make failslab writable againAlexander Atanasov1-1/+15
2022-10-24mm: slub: make slab_sysfs_init() a late_initcallRasmus Villemoes1-2/+1
2022-10-24mm: slub: remove dead and buggy code from sysfs_slab_add()Rasmus Villemoes1-5/+0
2022-10-11treewide: use prandom_u32_max() when possible, part 1Jason A. Donenfeld1-1/+1
2022-10-10Merge tag 'mm-stable-2022-10-08' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-0/+41
2022-10-03mm: kmsan: call KMSAN hooks from SLUB codeAlexander Potapenko1-0/+17
2022-09-30Merge branch 'slab/for-6.1/slub_validation_locking' into slab/for-nextVlastimil Babka1-11/+14
2022-09-30mm/slub: fix a slab missed to be freed problemFeng Tang1-11/+14
2022-09-29Merge branch 'slab/for-6.1/slub_debug_waste' into slab/for-nextVlastimil Babka1-37/+117
2022-09-29Merge branch 'slab/for-6.1/trivial' into slab/for-nextVlastimil Babka1-3/+6
2022-09-26mm/slub: clean up create_unique_id()Chao Yu1-3/+6
2022-09-23mm/slub: enable debugging memory wasting of kmallocFeng Tang1-37/+117
2022-09-23Merge branch 'slab/for-6.1/slub_validation_locking' into slab/for-nextVlastimil Babka1-198/+276
2022-09-23Merge branch 'slab/for-6.1/common_kmalloc' into slab/for-nextVlastimil Babka1-225/+13
2022-09-23Merge branch 'slab/for-6.1/trivial' into slab/for-nextVlastimil Babka1-7/+2
2022-09-22mm: slub: fix flush_cpu_slab()/__free_slab() invocations in task context.Maurizio Lombardi1-1/+8
2022-09-17slub: Make PREEMPT_RT support less convolutedThomas Gleixner1-32/+24
2022-09-17mm/slub: simplify __cmpxchg_double_slab() and slab_[un]lock()Vlastimil Babka1-27/+12
2022-09-17mm/slub: convert object_map_lock to non-raw spinlockVlastimil Babka1-30/+6
2022-09-17mm/slub: remove slab_lock() usage for debug operationsVlastimil Babka1-11/+8
2022-09-17mm/slub: restrict sysfs validation to debug caches and make it safeVlastimil Babka1-52/+180
2022-09-16kasan: call kasan_malloc() from __kmalloc_*track_caller()Peter Collingbourne1-0/+4
2022-09-11kfence: add sysfs interface to disable kfence for selected slabs.Imran Khan1-0/+26
2022-09-08mm/slub: fix to return errno if kmalloc() failsChao Yu1-1/+4
2022-09-01mm/slab_common: drop kmem_alloc & avoid dereferencing fields when not usingHyeonggon Yoo1-5/+3
2022-09-01mm/slab_common: unify NUMA and UMA version of tracepointsHyeonggon Yoo1-3/+3
2022-09-01mm/sl[au]b: cleanup kmem_cache_alloc[_node]_trace()Hyeonggon Yoo1-27/+0
2022-09-01mm/sl[au]b: generalize kmalloc subsystemHyeonggon Yoo1-87/+0
2022-08-25mm/slub: move free_debug_processing() furtherVlastimil Babka1-57/+57
2022-08-24mm/sl[au]b: introduce common alloc/free functions without tracepointHyeonggon Yoo1-0/+13
2022-08-24mm/slab: kmalloc: pass requests larger than order-1 page to page allocatorHyeonggon Yoo1-19/+0
2022-08-24mm/slab_common: kmalloc_node: pass large requests to page allocatorHyeonggon Yoo1-1/+1
2022-08-24mm/slub: move kmalloc_large_node() to slab_common.cHyeonggon Yoo1-25/+0
2022-08-24mm/sl[au]b: factor out __do_kmalloc_node()Hyeonggon Yoo1-52/+19
2022-08-24mm/slab_common: cleanup kmalloc_track_caller()Hyeonggon Yoo1-22/+0
2022-08-24mm/slab_common: remove CONFIG_NUMA ifdefs for common kmalloc functionsHyeonggon Yoo1-6/+0
2022-08-23mm/slub: Remove the unneeded result variableye xingchen1-7/+2
2022-07-20mm/sl[au]b: use own bulk free function when bulk alloc failedHyeonggon Yoo1-2/+2
2022-07-04mm: slab: optimize memcg_slab_free_hook()Muchun Song1-44/+22
2022-07-04mm/tracing: add 'accounted' entry into output of allocation tracepointsVasily Averin1-10/+10
2022-07-04mm/slub: Simplify __kmem_cache_alias()Xiongwei Song1-5/+3
2022-06-13mm/slub: add missing TID updates on slab deactivationJann Horn1-0/+2
2022-06-13mm/slub: Move the stackdepot related allocation out of IRQ-off section.Sebastian Andrzej Siewior1-7/+34
2022-05-25Merge tag 'slab-for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/vb...Linus Torvalds1-66/+108
2022-05-23Merge branches 'slab/for-5.19/stackdepot' and 'slab/for-5.19/refactor' into s...Vlastimil Babka1-46/+91
2022-05-02mm/slub: remove unused kmem_cache_order_objects maxMiaohe Lin1-2/+0
2022-04-20mm/slub: remove unneeded return value of slab_pad_checkMiaohe Lin1-7/+5
2022-04-15mm, kfence: support kmem_dump_obj() for KFENCE objectsMarco Elver1-1/+1
2022-04-13mm/slub: remove meaningless node check in ___slab_alloc()JaeSang Yoo1-1/+0
2022-04-13mm/slub: remove duplicate flag in allocate_slab()Jiyoup Kim1-1/+1
2022-04-13mm/slub: remove unused parameter in setup_object*()JaeSang Yoo1-11/+8
2022-04-06mm/slub: sort debugfs output by frequency of stack tracesOliver Glitta1-0/+16
2022-04-06mm/slub: distinguish and print stack traces in debugfs filesOliver Glitta1-2/+26
2022-04-06mm/slub: use stackdepot to save stack trace in objectsOliver Glitta1-31/+40
2022-04-06mm/slub: move struct track init out of set_track()Vlastimil Babka1-17/+15
2022-04-06mm/slub, kunit: Make slub_kunit unaffected by user specified flagsHyeonggon Yoo1-0/+3
2022-03-23Merge tag 'slab-for-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/vb...Linus Torvalds1-78/+52
2022-03-22mm: introduce kmem_cache_alloc_lruMuchun Song1-14/+28
2022-03-21Merge branch 'slab/for-5.18/cleanups' into slab/for-linusVlastimil Babka1-63/+42
2022-03-10mm: slub: Delete useless parameter of alloc_slab_page()Xiongwei Song1-4/+4
2022-03-09mm/slub: remove forced_order parameter in calculate_sizesMiaohe Lin1-7/+4
2022-03-09mm/slub: refactor deactivate_slab()Hyeonggon Yoo1-52/+39
2022-03-09mm/slub: limit number of node partial slabs only in cache creationHyeonggon Yoo1-11/+3
2022-03-07mm/slub: use helper macro __ATTR_XX_MODE for SLAB_ATTR(_RO)Lianjie Zhang1-4/+2
2022-01-06mm/slub: Define struct slab fields for CONFIG_SLUB_CPU_PARTIAL only when enabledVlastimil Babka1-2/+6
2022-01-06mm/kasan: Convert to struct folio and struct slabMatthew Wilcox (Oracle)1-1/+1
2022-01-06mm: Convert struct page to struct slab in functions used by other subsystemsVlastimil Babka1-1/+1
2022-01-06mm/slub: Finish struct page to struct slab conversionVlastimil Babka1-53/+52
2022-01-06mm/slub: Convert most struct page to struct slab by spatchVlastimil Babka1-436/+436
2022-01-06mm/slub: Convert pfmemalloc_match() to take a struct slabMatthew Wilcox (Oracle)1-19/+6
2022-01-06mm/slub: Convert __free_slab() to use struct slabVlastimil Babka1-14/+13
2022-01-06mm/slub: Convert alloc_slab_page() to return a struct slabVlastimil Babka1-10/+16
2022-01-06mm/slub: Convert print_page_info() to print_slab_info()Matthew Wilcox (Oracle)1-6/+7
2022-01-06mm/slub: Convert __slab_lock() and __slab_unlock() to struct slabVlastimil Babka1-7/+11
2022-01-06mm/slub: Convert kfree() to use a struct slabMatthew Wilcox (Oracle)1-13/+16
2022-01-06mm/slub: Convert detached_freelist to use a struct slabMatthew Wilcox (Oracle)1-14/+17
2022-01-06mm: Convert check_heap_object() to use struct slabMatthew Wilcox (Oracle)1-5/+5
2022-01-06mm: Use struct slab in kmem_obj_info()Matthew Wilcox (Oracle)1-6/+7
2022-01-06mm: Convert __ksize() to struct slabMatthew Wilcox (Oracle)1-7/+5
2022-01-06mm: Convert [un]account_slab_page() to struct slabMatthew Wilcox (Oracle)1-2/+2
2022-01-06mm: Split slab into its own typeMatthew Wilcox (Oracle)1-4/+4
2022-01-06mm/slub: Make object_err() staticVlastimil Babka1-15/+15
2021-12-10mm/slub: fix endianness bug for alloc/free_traces attributesGerald Schaefer1-6/+9
2021-11-20mm: emit the "free" trace report before freeing memory in kmem_cache_free()Yunfeng Ye1-1/+1
2021-11-06Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-46/+63
2021-11-06mm: remove HARDENED_USERCOPY_FALLBACKStephen Kitt1-14/+0
2021-11-06mm, slub: use prefetchw instead of prefetchHyeonggon Yoo1-1/+1
2021-11-06mm/slub: increase default cpu partial list sizesVlastimil Babka1-4/+4
2021-11-06mm, slub: change percpu partial accounting from objects to pagesVlastimil Babka1-30/+59
2021-11-06slub: add back check for free nonslab objectsKefeng Wang1-1/+3
2021-11-02Merge tag 'printk-for-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-2/+2
2021-10-27vsprintf: Make %pGp print the hex valueMatthew Wilcox (Oracle)1-2/+2
2021-10-18mm, slub: fix incorrect memcg slab count for bulk freeMiaohe Lin1-1/+3
2021-10-18mm, slub: fix potential use-after-free in slab_debugfs_fopsMiaohe Lin1-2/+4
2021-10-18mm, slub: fix potential memoryleak in kmem_cache_open()Miaohe Lin1-1/+1
2021-10-18mm, slub: fix mismatch between reconstructed freelist depth and cntMiaohe Lin1-2/+9
2021-10-18mm, slub: fix two bugs in slab_debug_trace_open()Miaohe Lin1-1/+7
2021-09-04mm, slub: convert kmem_cpu_slab protection to local_lockVlastimil Babka1-35/+111
2021-09-04mm, slub: use migrate_disable() on PREEMPT_RTVlastimil Babka1-9/+30
2021-09-04mm, slub: protect put_cpu_partial() with disabled irqs instead of cmpxchgVlastimil Babka1-37/+44
2021-09-04mm, slub: make slab_lock() disable irqs with PREEMPT_RTVlastimil Babka1-17/+41
2021-09-04mm: slub: make object_map_lock a raw_spinlock_tSebastian Andrzej Siewior1-3/+3
2021-09-04mm: slub: move flush_cpu_slab() invocations __free_slab() invocations out of ...Sebastian Andrzej Siewior1-16/+78
2021-09-04mm, slab: split out the cpu offline variant of flush_slab()Vlastimil Babka1-2/+10
2021-09-04mm, slub: don't disable irqs in slub_cpu_dead()Vlastimil Babka1-5/+1
2021-09-04mm, slub: only disable irq with spin_lock in __unfreeze_partials()Vlastimil Babka1-8/+4
2021-09-04mm, slub: separate detaching of partial list in unfreeze_partials() from unfr...Vlastimil Babka1-22/+51
2021-09-04mm, slub: detach whole partial list at once in unfreeze_partials()Vlastimil Babka1-3/+7
2021-09-04mm, slub: discard slabs in unfreeze_partials() without irqs disabledVlastimil Babka1-1/+2
2021-09-04mm, slub: move irq control into unfreeze_partials()Vlastimil Babka1-6/+7
2021-09-04mm, slub: call deactivate_slab() without disabling irqsVlastimil Babka1-5/+19
2021-09-04mm, slub: make locking in deactivate_slab() irq-safeVlastimil Babka1-4/+5
2021-09-04mm, slub: move reset of c->page and freelist out of deactivate_slab()Vlastimil Babka1-13/+18
2021-09-04mm, slub: stop disabling irqs around get_partial()Vlastimil Babka1-14/+8
2021-09-04mm, slub: check new pages with restored irqsVlastimil Babka1-5/+3
2021-09-04mm, slub: validate slab from partial list or page allocator before making it ...Vlastimil Babka1-8/+9
2021-09-04mm, slub: restore irqs around calling new_slab()Vlastimil Babka1-6/+2
2021-09-04mm, slub: move disabling irqs closer to get_partial() in ___slab_alloc()Vlastimil Babka1-9/+25
2021-09-04mm, slub: do initial checks in ___slab_alloc() with irqs enabledVlastimil Babka1-9/+45
2021-09-04mm, slub: move disabling/enabling irqs to ___slab_alloc()Vlastimil Babka1-12/+24
2021-09-04mm, slub: simplify kmem_cache_cpu and tid setupVlastimil Babka1-13/+9
2021-09-04mm, slub: restructure new page checks in ___slab_alloc()Vlastimil Babka1-6/+22
2021-09-04mm, slub: return slab page from get_partial() and set c->page afterwardsVlastimil Babka1-10/+11
2021-09-04mm, slub: dissolve new_slab_objects() into ___slab_alloc()Vlastimil Babka1-32/+18
2021-09-04mm, slub: extract get_partial() from new_slab_objects()Vlastimil Babka1-6/+6
2021-09-03mm, slub: remove redundant unfreeze_partials() from put_cpu_partial()Vlastimil Babka1-7/+0
2021-09-03mm, slub: don't disable irq for debug_check_no_locks_freed()Vlastimil Babka1-13/+1
2021-09-03mm, slub: allocate private object map for validate_slab_cache()Vlastimil Babka1-9/+15
2021-09-03mm, slub: allocate private object map for debugfs listingsVlastimil Babka1-15/+29
2021-09-03mm, slub: don't call flush_all() from slab_debug_trace_open()Vlastimil Babka1-3/+0
2021-08-13mm: slub: fix slub_debug disabling for list of slabsVlastimil Babka1-5/+8
2021-08-13slub: fix kmalloc_pagealloc_invalid_free unit testShakeel Butt1-4/+4
2021-08-13kasan, slub: reset tag when printing addressKuan-Ying Lee1-2/+2
2021-07-30slub: fix unreclaimable slab stat for bulk freeShakeel Butt1-10/+12
2021-07-17Revert "mm/slub: use stackdepot to save stack trace in objects"Linus Torvalds1-49/+30
2021-07-15mm: move helper to check slub_debug_enabledMarco Elver1-14/+0
2021-07-08mm/slub: use stackdepot to save stack trace in objectsOliver Glitta1-30/+49
2021-07-04Merge branch 'core-rcu-2021.07.04' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-0/+8
2021-06-29mm/slub: add taint after the errors are printedGeorgi Djakov1-2/+3
2021-06-29mm: slub: move sysfs slab alloc/free interfaces to debugfsFaiyaz Mohammed1-93/+181
2021-06-29slub: force on no_hash_pointers when slub_debug is enabledStephen Boyd1-1/+19
2021-06-29slub: indicate slab_fix() uses printf formatsJoe Perches1-3/+4
2021-06-29slub: actually use 'message' in restore_bytes()Stephen Boyd1-1/+1
2021-06-29slub: restore slub_debug=- behaviorStephen Boyd1-0/+2
2021-06-29slub: remove resiliency_test() functionOliver Glitta1-64/+0
2021-06-29mm/slub, kunit: add a KUnit test for SLUB debugging functionalityOliver Glitta1-3/+43
2021-06-16mm/slub.c: include swab.hAndrew Morton1-0/+1
2021-06-16mm/slub: actually fix freelist pointer vs redzoningKees Cook1-11/+3
2021-06-16mm/slub: fix redzoning for small allocationsKees Cook1-3/+5
2021-06-16mm/slub: clarify verification reportingKees Cook1-7/+7
2021-05-22kasan: slab: always reset the tag in get_freepointer_safe()Alexander Potapenko1-0/+1
2021-05-14mm, slub: move slub_debug static key enabling outside slab_mutexVlastimil Babka1-9/+0
2021-05-10mm/slub: Add Support for free path information of an objectManinder Singh1-0/+7
2021-05-10mm/slub: Fix backtrace of objects to handle redzone adjustmentManinder Singh1-0/+1
2021-05-07mm: fix typos in commentsIngo Molnar1-1/+1
2021-04-30kasan, mm: integrate slab init_on_free with HW_TAGSAndrey Konovalov1-19/+24
2021-04-30kasan, mm: integrate slab init_on_alloc with HW_TAGSAndrey Konovalov1-16/+11
2021-04-30mm/slub.c: trivial typo fixesBhaskar Chowdhury1-4/+4
2021-04-30mm, slub: enable slub_debug static key when creating cache with explicit debu...Vlastimil Babka1-0/+9
2021-04-28Merge tag 'core-rcu-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-0/+2
2021-04-27Merge tag 'printk-for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-6/+7
2021-04-11Merge branch 'for-mingo-rcu' of git://git.kernel.org/pub/scm/linux/kernel/git...Ingo Molnar1-0/+2
2021-03-19mm, slub: don't combine pr_err with INFOYafang Shao1-5/+5