[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241126172834.78149-1-leocstone@gmail.com>
Date: Tue, 26 Nov 2024 09:28:34 -0800
From: Leo Stone <leocstone@...il.com>
To: syzbot+82064afd8bd59070fc22@...kaller.appspotmail.com
Cc: chao@...nel.org,
jaegeuk@...nel.org,
linux-f2fs-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com,
yuchao0@...wei.com
Subject: Re: [syzbot] [f2fs?] WARNING in f2fs_rename2
This looks like the same image with a deleted inode as in:
https://syzkaller.appspot.com/bug?extid=b01a36acd7007e273a83
#syz test
---
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c
index 1ed86df343a5..65f1dc32f173 100644
--- a/fs/f2fs/inode.c
+++ b/fs/f2fs/inode.c
@@ -372,6 +372,12 @@ static bool sanity_check_inode(struct inode *inode, struct page *node_page)
return false;
}
+ if (inode->i_nlink == 0) {
+ f2fs_warn(sbi, "%s: inode (ino=%lx) has a link count of 0",
+ __func__, inode->i_ino);
+ return false;
+ }
+
return true;
}
Powered by blists - more mailing lists