On Fri, Sep 1, 2023 at 3:06 PM 'Kuan-Ying Lee (李冠穎)' via kasan-dev <kasan-dev@xxxxxxxxxxxxxxxx> wrote: > > > @@ -452,6 +455,7 @@ depot_stack_handle_t __stack_depot_save(unsigned > > long *entries, > > /* Fast path: look the stack trace up without full locking. */ > > found = find_stack(*bucket, entries, nr_entries, hash); > > if (found) { > > + refcount_inc(&found->count); > > read_unlock_irqrestore(&pool_rwlock, flags); > > goto exit; > > } > > Hi Andrey, > > There are two find_stack() function calls in __stack_depot_save(). > > Maybe we need to add refcount_inc() for both two find_stack()? Indeed, good catch! Will fix in v2. Thanks!