Lines Matching refs:slab
35 struct slab *kasan_addr_to_slab(const void *addr) in kasan_addr_to_slab()
145 void __kasan_poison_slab(struct slab *slab) in __kasan_poison_slab() argument
147 struct page *page = slab_page(slab); in __kasan_poison_slab()
440 struct slab *slab; in __kasan_krealloc() local
458 slab = virt_to_slab(object); in __kasan_krealloc()
461 if (unlikely(!slab)) in __kasan_krealloc()
464 poison_kmalloc_redzone(slab->slab_cache, object, size, flags); in __kasan_krealloc()
501 struct slab *slab; in __kasan_mempool_poison_object() local
517 slab = folio_slab(folio); in __kasan_mempool_poison_object()
519 if (check_slab_allocation(slab->slab_cache, ptr, ip)) in __kasan_mempool_poison_object()
522 poison_slab_object(slab->slab_cache, ptr, false, false); in __kasan_mempool_poison_object()
528 struct slab *slab; in __kasan_mempool_unpoison_object() local
531 slab = virt_to_slab(ptr); in __kasan_mempool_unpoison_object()
537 if (unlikely(!slab)) { in __kasan_mempool_unpoison_object()
547 unpoison_slab_object(slab->slab_cache, ptr, flags, false); in __kasan_mempool_unpoison_object()
550 if (is_kmalloc_cache(slab->slab_cache)) in __kasan_mempool_unpoison_object()
551 poison_kmalloc_redzone(slab->slab_cache, ptr, size, flags); in __kasan_mempool_unpoison_object()