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

Pull slab fix from Vlastimil Babka:

- Fix memory leak of objects from remote NUMA node when bulk freeing to
a cache with sheaves (Harry Yoo)

* tag 'slab-for-6.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab:
mm/slub: fix memory leak in free_to_pcs_bulk()

+6 -2
+6 -2
mm/slub.c
··· 6336 6336 6337 6337 if (unlikely(!slab_free_hook(s, p[i], init, false))) { 6338 6338 p[i] = p[--size]; 6339 - if (!size) 6340 - goto flush_remote; 6341 6339 continue; 6342 6340 } 6343 6341 ··· 6349 6351 6350 6352 i++; 6351 6353 } 6354 + 6355 + if (!size) 6356 + goto flush_remote; 6352 6357 6353 6358 next_batch: 6354 6359 if (!local_trylock(&s->cpu_sheaves->lock)) ··· 6406 6405 size -= batch; 6407 6406 goto next_batch; 6408 6407 } 6408 + 6409 + if (remote_nr) 6410 + goto flush_remote; 6409 6411 6410 6412 return; 6411 6413