Skip to contentSkip to conversation

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

PATCH Aditya Dutt 2 participants 2 messages Jul 2, 2025 – Jul 3, 2025 JFS filesystem

lore
Share & tools
lore
#0 lore raw

#syz test git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.15.y

fs/jfs/jfs_dtree.c +2 -0
index 27ca98614b0b..cb57d4f1161f 100644
@@ -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
syzbot Tested-by
#1 lore raw

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

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

Hello,

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

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.