Skip to content

Commit 44f9a00

Browse files
committed
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
2 parents e4a3d52 + 53ca00a commit 44f9a00

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mm/slub.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6539,6 +6539,8 @@ static void defer_free(struct kmem_cache *s, void *head)
65396539

65406540
guard(preempt)();
65416541

6542+
head = kasan_reset_tag(head);
6543+
65426544
df = this_cpu_ptr(&defer_free_objects);
65436545
if (llist_add(head + s->offset, &df->objects))
65446546
irq_work_queue(&df->work);

0 commit comments

Comments
 (0)