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.18-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab

Pull slab fix from Vlastimil Babka:

- Fix for potential infinite loop in kmalloc_nolock() when debugging
is enabled for the cache (Vlastimil Babka)

* tag 'slab-for-6.18-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab:
slab: prevent infinite loop in kmalloc_nolock() with debugging

+5 -1
+5 -1
mm/slub.c
··· 4666 4666 if (kmem_cache_debug(s)) { 4667 4667 freelist = alloc_single_from_new_slab(s, slab, orig_size, gfpflags); 4668 4668 4669 - if (unlikely(!freelist)) 4669 + if (unlikely(!freelist)) { 4670 + /* This could cause an endless loop. Fail instead. */ 4671 + if (!allow_spin) 4672 + return NULL; 4670 4673 goto new_objects; 4674 + } 4671 4675 4672 4676 if (s->flags & SLAB_STORE_USER) 4673 4677 set_track(s, freelist, TRACK_ALLOC, addr,