Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'slab-for-6.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab

Pull slab fix from Vlastimil Babka:

- Stable fix adding zero initialization of slab->obj_ext to prevent
crashes with allocation profiling (Suren Baghdasaryan)

* tag 'slab-for-6.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab:
slab: ensure slab->obj_exts is clear in a newly allocated slab page

+10
+10
mm/slub.c
··· 1973 1973 #define OBJCGS_CLEAR_MASK (__GFP_DMA | __GFP_RECLAIMABLE | \ 1974 1974 __GFP_ACCOUNT | __GFP_NOFAIL) 1975 1975 1976 + static inline void init_slab_obj_exts(struct slab *slab) 1977 + { 1978 + slab->obj_exts = 0; 1979 + } 1980 + 1976 1981 int alloc_slab_obj_exts(struct slab *slab, struct kmem_cache *s, 1977 1982 gfp_t gfp, bool new_slab) 1978 1983 { ··· 2062 2057 } 2063 2058 2064 2059 #else /* CONFIG_SLAB_OBJ_EXT */ 2060 + 2061 + static inline void init_slab_obj_exts(struct slab *slab) 2062 + { 2063 + } 2065 2064 2066 2065 static int alloc_slab_obj_exts(struct slab *slab, struct kmem_cache *s, 2067 2066 gfp_t gfp, bool new_slab) ··· 2646 2637 slab->objects = oo_objects(oo); 2647 2638 slab->inuse = 0; 2648 2639 slab->frozen = 0; 2640 + init_slab_obj_exts(slab); 2649 2641 2650 2642 account_slab(slab, oo_order(oo), s, flags); 2651 2643