--- a/mm/vmalloc.c~mm-vmalloc-fix-kasan-shadow-poisoning-size +++ a/mm/vmalloc.c @@ -2272,7 +2272,7 @@ static void __vunmap(const void *addr, i debug_check_no_locks_freed(area->addr, get_vm_area_size(area)); debug_check_no_obj_freed(area->addr, get_vm_area_size(area)); - kasan_poison_vmalloc(area->addr, area->size); + kasan_poison_vmalloc(area->addr, get_vm_area_size(area)); vm_remove_mappings(area, deallocate_pages);