Re: [syzbot] [mm?] [f2fs?] [exfat?] memory leak in __kfree_rcu_sheaf

From: David Timber

Date: Sun May 03 2026 - 02:05:39 EST


#syz testdiff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index c4c225e09dc4..fd2499fe156b 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -5388,7 +5388,10 @@ static int f2fs_fill_super(struct super_block *sb, struct fs_context *fc)

static int f2fs_get_tree(struct fs_context *fc)
{
- return get_tree_bdev(fc, f2fs_fill_super);
+ if (true)
+ return -ENOMEM;
+ else
+ return get_tree_bdev(fc, f2fs_fill_super);
}

static int f2fs_reconfigure(struct fs_context *fc)