diff --git a/mm/slab.c b/mm/slab.c index 78eb8c5bf4e4ca126dbba917904216ab27fdf72f..c84458281a8866b7ab880609bead7ccc0be79a83 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -4408,6 +4408,8 @@ void __check_heap_object(const void *ptr, unsigned long n, struct page *page, unsigned int objnr; unsigned long offset; + ptr = kasan_reset_tag(ptr); + /* Find and validate object. */ cachep = page->slab_cache; objnr = obj_to_index(cachep, page, (void *)ptr);