general protection fault in txEnd
#syz test
From f5d32d2cad197e1cd5e335ec85490bda11aec429 Mon Sep 17 00:00:00 2001
From: rafad900 <[email protected]>
Date: Mon, 30 Mar 2026 13:33:13 -0700
Subject: [PATCH] jfs: prevent null log deference from superblock during
read only mode Clearing the inode pointer is necessary to ensure no memory leaks after txBegin fails to initialize the superblock during read only mode.
Signed-off-by rafad900 <[email protected]>
--- fs/jfs/namei.c | 3 +++ 1 file changed, 3 insertions(+)
fs/jfs/namei.c +3 -0
@@ -99,6 +99,9 @@ static int jfs_create(struct mnt_idmap *idmap, struct inode *dip, tid =txBegin (dip->i_sb,0 );if (tid ==0 ) {jfs_err ("jfs_create: unable to create tblk due to read only filesystem" ); +free_ea_wmap (ip); +clear_nlink (ip); +discard_new_inode (ip);return -EROFS ; }
Signature · 1 line
2.43.0
syzbot
syzbotsyzbot tried to test the proposed patch but the build/boot failed:
Hello,
syzbot tried to test the proposed patch but the build/boot failed:
failed to apply patch:
checking file fs/jfs/namei.c
Hunk #1 FAILED at 99.
1 out of 1 hunk FAILED
Tested on:
commit: d0c3bcd5 Merge tag 'libcrypto-for-linus' of git://git... git tree: upstream kernel config: https://syzkaller.appspot.com/x/.config?x=14b6a9313e132a6b dashboard link: https://syzkaller.appspot.com/bug?extid=1d096d31de6a0491b55e
compiler:
patch: https://syzkaller.appspot.com/x/patch.diff?x=168d01ca580000