On 03/12/2020 02:30, Joseph Qi wrote: > This patch can also fix another BUG I'm looking at: > > [ 61.359713] BUG: KASAN: double-free or invalid-free in io_dismantle_req+0x938/0xf40 > ... > [ 61.409315] refcount_t: underflow; use-after-free. > [ 61.410261] WARNING: CPU: 1 PID: 1022 at lib/refcount.c:28 refcount_warn_saturate+0x266/0x2a0 > ... > > It blames io_put_identity() has been called more than once and then > identity->count is underflow. Joseph, regarding your double-free 1. did you figure out how exactly this happens? 2. is it appears consistently so you can be sure that it's fixed 3. do you have a reproducer? 4. can you paste a full log of this BUG? (not cutting the stacktrace) There are problems left even with this patch applied, but I need to confirm which bug you saw. -- Pavel Begunkov