[GIT PULL] slab fix for 6.0-rc7

From: Vlastimil Babka
Date: Thu Sep 22 2022 - 16:13:59 EST


Linus,

please pull the latest slab changes from

git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git tags/slab-for-6.0-rc7

======================================

- Fix a possible use-after-free in SLUB's kmem_cache removal, introduced in
this cycle, by Feng Tang.

- WQ_MEM_RECLAIM dependency fix for the workqueue-based cpu slab flushing
introduced in 5.15, by Maurizio Lombardi.

- Add missing KASAN hooks in two kmalloc entry paths, by Peter Collingbourne.

- A BUG_ON() removal in SLUB's kmem_cache creation when allocation fails (too
small to possibly happen in practice, syzbot used fault injection), by Chao
Yu.

Thanks,
Vlastimil
----------------------------------------------------------------
Chao Yu (1):
mm/slub: fix to return errno if kmalloc() fails

Feng Tang (1):
mm/slab_common: fix possible double free of kmem_cache

Maurizio Lombardi (1):
mm: slub: fix flush_cpu_slab()/__free_slab() invocations in task context.

Peter Collingbourne (1):
kasan: call kasan_malloc() from __kmalloc_*track_caller()

mm/slab_common.c | 5 ++++-
mm/slub.c | 18 ++++++++++++++++--
2 files changed, 20 insertions(+), 3 deletions(-)