--- x/mm/kasan/generic.c +++ y/mm/kasan/generic.c @@ -538,7 +538,7 @@ static void __kasan_record_aux_stack(voi return; alloc_meta->aux_stack[1] = alloc_meta->aux_stack[0]; - alloc_meta->aux_stack[0] = kasan_save_stack(0, depot_flags); + alloc_meta->aux_stack[0] = kasan_save_stack(0, 0); } void kasan_record_aux_stack(void *addr)