Test: [v5.15] INFO: task hung in jfs_commit_inode

Aditya Dutt posted 1 patch 3 months, 1 week ago
Test: [v5.15] INFO: task hung in jfs_commit_inode
Posted by Aditya Dutt 3 months, 1 week ago
#syz test git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.15.y

diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c
index 27ca98614b0b..cb57d4f1161f 100644
--- a/fs/jfs/jfs_dtree.c
+++ b/fs/jfs/jfs_dtree.c
@@ -835,6 +835,8 @@ int dtInsert(tid_t tid, struct inode *ip,
 	 * the full page.
 	 */
 	DT_GETSEARCH(ip, btstack->top, bn, mp, p, index);
+	if (p->header.freelist == 0)
+		return -EINVAL;
 
 	/*
 	 *	insert entry for new key
Re: [v5.15] INFO: task hung in jfs_commit_inode
Posted by syzbot 3 months ago
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-by: syzbot+30b3e48dc48dd2ad45b6@syzkaller.appspotmail.com
Tested-by: syzbot+30b3e48dc48dd2ad45b6@syzkaller.appspotmail.com

Tested on:

commit:         3dea0e7f Linux 5.15.186
git tree:       git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11f8748c580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=73ea0defdc12fa57
dashboard link: https://syzkaller.appspot.com/bug?extid=30b3e48dc48dd2ad45b6
compiler:       Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7
patch:          https://syzkaller.appspot.com/x/patch.diff?x=12c2d3d4580000

Note: testing is done by a robot and is best-effort only.