Re: [syzbot] [jfs] general protection fault in txEnd

Rafael Alejandro Díaz Cruz
2026-03-28T01:49:43Z

#syz test

diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c
index 60c4a0e0fca5..25b303276b82 100644
--- a/fs/jfs/namei.c
+++ b/fs/jfs/namei.c
@@ -97,6 +97,10 @@ 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");
+ return -EROFS;
+ }
mutex_lock_nested(&JFS_IP(dip)->commit_mutex, COMMIT_MUTEX_PARENT);
mutex_lock_nested(&JFS_IP(ip)->commit_mutex, COMMIT_MUTEX_CHILD);

On Fri, Mar 27, 2026 at 6:44 PM Rafael Alejandro Díaz Cruz
<rafad900@gmail.com> wrote:
>
> #syz test
>
> diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c
> index 60c4a0e0fca5..25b303276b82 100644
> --- a/fs/jfs/namei.c
> +++ b/fs/jfs/namei.c
> @@ -97,6 +97,10 @@ 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");
> + return -EROFS;
> + }
> mutex_lock_nested(&JFS_IP(dip)->commit_mutex, COMMIT_MUTEX_PARENT);
> mutex_lock_nested(&JFS_IP(ip)->commit_mutex, COMMIT_MUTEX_CHILD);
>
> On Fri, Mar 27, 2026 at 6:33 PM syzbot <syzbot+1d096d31de6a0491b55e@syzkaller.appspotmail.com> wrote:
>>
>> Hello,
>>
>> syzbot tried to test the proposed patch but the build/boot failed:
>>
>> failed to apply patch:
>> checking file fs/jfs/namei.c
>> patch: **** unexpected end of file in patch
>>
>>
>>
>> Tested on:
>>
>> commit: 26df51ad Merge tag 'drm-fixes-2026-03-28-1' of https:/..
>> 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=11dd6f72580000
>>