--- a/mm/page_alloc.c~kasan-mm-untag-page-address-in-free_reserved_area +++ a/mm/page_alloc.c @@ -7671,6 +7671,11 @@ unsigned long free_reserved_area(void *s * alias for the memset(). */ direct_map_addr = page_address(page); + /* + * Perform a kasan-unchecked memset() since this memory + * has not been initialized. + */ + direct_map_addr = kasan_reset_tag(direct_map_addr); if ((unsigned int)poison <= 0xFF) memset(direct_map_addr, poison, PAGE_SIZE);