Message ID | 20210523004156.1-UnZ7NxI%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [01/10] mm/shuffle: fix section mismatch warning | expand |
--- a/mm/slub.c~kasan-slab-always-reset-the-tag-in-get_freepointer_safe +++ a/mm/slub.c @@ -301,6 +301,7 @@ static inline void *get_freepointer_safe if (!debug_pagealloc_enabled_static()) return get_freepointer(s, object); + object = kasan_reset_tag(object); freepointer_addr = (unsigned long)object + s->offset; copy_from_kernel_nofault(&p, (void **)freepointer_addr, sizeof(p)); return freelist_ptr(s, p, freepointer_addr);