Hi Hong,

On 9/29/25 19:43, HONG, Yun wrote:
> Hi,
> 
> I would like to kindly report a crash I encountered, identified as "WARNING 
> in f2fs_init_xattr_caches". This issue can be reproduced with a Syzlang 
> reproducer on the mainline version downloaded from https://www.kernel.org/
> For your convenience, I have included a sample crash report, the 
> configuration file, and a reproduction program as attachments.

Thank you for the report!

I tried attached repro.syz & config.txt, however, I can not reproduce the bug.

If you can reproduce this bug, could you please help to reproduce w/ debug
patch as below? and dump full log once it reproduces.

From: Chao Yu <[email protected]>
Subject: [PATCH] f2fs: add debug log

---
 fs/f2fs/xattr.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c
index 58632a2b6613..81f591a45b41 100644
--- a/fs/f2fs/xattr.c
+++ b/fs/f2fs/xattr.c
@@ -845,10 +845,18 @@ int f2fs_init_xattr_caches(struct f2fs_sb_info *sbi)
        if (!sbi->inline_xattr_slab)
                return -ENOMEM;

+       printk("%s: slab_name: %s, %u:%u, %p\n", __func__, slab_name,
+                               MAJOR(dev), MINOR(dev), sbi->inline_xattr_slab);
+
        return 0;
 }

 void f2fs_destroy_xattr_caches(struct f2fs_sb_info *sbi)
 {
+       dev_t dev = sbi->sb->s_bdev->bd_dev;
+
+       printk("%s: %u:%u %p\n", __func__, MAJOR(dev), MINOR(dev),
+                                               sbi->inline_xattr_slab);
+
        kmem_cache_destroy(sbi->inline_xattr_slab);
 }
-- 
2.49.0

Thanks,


_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to