On Fri, Feb 09, 2024 at 03:52:19PM +0300, Dmitry Antipov wrote: > In 'fasync_remove_entry()', prefer 'kfree_rcu()' over 'call_rcu()' with dummy > 'fasync_free_rcu()' callback. This is mostly intended in attempt to fix weird > https://syzkaller.appspot.com/bug?id=6a64ad907e361e49e92d1c4c114128a1bda2ed7f, > where kmemleak may consider 'fa' as unreferenced during RCU grace period. See > https://lore.kernel.org/stable/20230930174657.800551-1-joel@xxxxxxxxxxxxxxxxx > as well. Comments are highly appreciated. > > Signed-off-by: Dmitry Antipov <dmantipov@xxxxxxxxx> > --- Yeah, according to commit ae65a5211d90 ("mm/slab: document kfree() as allowed for kmem_cache_alloc() objects") this is now guaranteed to work for kmem_cache_alloc() objects since slab is gone. So independent of syzbot this seems like a decent enough cleanup.