mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 10:01:39 -05:00
Merge tag 'slab-for-6.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab
Pull slab fix from Vlastimil Babka: - A stable fix for a missing tag reset that can happen in kfree_nolock() with KASAN+SLUB_TINY configs (Deepanshu Kartikey) * tag 'slab-for-6.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab: mm/slub: reset KASAN tag in defer_free() before accessing freed memory
This commit is contained in:
@@ -6539,6 +6539,8 @@ static void defer_free(struct kmem_cache *s, void *head)
|
|||||||
|
|
||||||
guard(preempt)();
|
guard(preempt)();
|
||||||
|
|
||||||
|
head = kasan_reset_tag(head);
|
||||||
|
|
||||||
df = this_cpu_ptr(&defer_free_objects);
|
df = this_cpu_ptr(&defer_free_objects);
|
||||||
if (llist_add(head + s->offset, &df->objects))
|
if (llist_add(head + s->offset, &df->objects))
|
||||||
irq_work_queue(&df->work);
|
irq_work_queue(&df->work);
|
||||||
|
|||||||
Reference in New Issue
Block a user