BUG at fs/jfs/jfs_txnmgr.c:528 assert(tblk->next == 0)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_txnmgr.c:528!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 PID: 20479 Comm: syz-executor.1 Not tainted 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:txEnd+0x583/0x5a0 fs/jfs/jfs_txnmgr.c:528
Code: e9 59 fb ff ff e8 bd 54 82 fe 48 c7 c1 40 b5 4a 8b ba 10 02 00 00 48 c7 c6 c0 af 4a 8b 48 c7 c7 00 b0 4a 8b e8 de f7 62 fe 90 <0f> 0b 48 89 ef e8 c3 99 dd fe e9 40 fd ff ff e8 89 99 dd fe e9 2e
RSP: 0018:ffffc90003727ab8 EFLAGS: 00010282
RAX: 0000000000000036 RBX: ffffc90002621220 RCX: ffffc90013ae6000
RDX: 0000000000000000 RSI: ffffffff816f0546 RDI: 0000000000000005
RBP: 0000000000000002 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 000000000003f108 R12: 0000000000000000
R13: 000000000000000a R14: ffffffff8dd48b80 R15: ffffc90002621222
FS:  00007fb8e238b6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d62a000 CR3: 0000000067fda000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 add_missing_indices fs/jfs/jfs_dtree.c:2663 [inline]
 jfs_readdir+0x2952/0x4310 fs/jfs/jfs_dtree.c:3009
 wrap_directory_iterator+0xa5/0xe0 fs/readdir.c:67
 iterate_dir+0x292/0x9e0 fs/readdir.c:110
 __do_sys_getdents fs/readdir.c:326 [inline]
 __se_sys_getdents fs/readdir.c:311 [inline]
 __x64_sys_getdents+0x14f/0x2d0 fs/readdir.c:311
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb8e167dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb8e238b0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004e
RAX: ffffffffffffffda RBX: 00007fb8e17ac050 RCX: 00007fb8e167dea9
RDX: 00000000000000b8 RSI: 0000000020001fc0 RDI: 0000000000000005
RBP: 00007fb8e16ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fb8e17ac050 R15: 00007ffe979e4c38
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:txEnd+0x583/0x5a0 fs/jfs/jfs_txnmgr.c:528
Code: e9 59 fb ff ff e8 bd 54 82 fe 48 c7 c1 40 b5 4a 8b ba 10 02 00 00 48 c7 c6 c0 af 4a 8b 48 c7 c7 00 b0 4a 8b e8 de f7 62 fe 90 <0f> 0b 48 89 ef e8 c3 99 dd fe e9 40 fd ff ff e8 89 99 dd fe e9 2e
RSP: 0018:ffffc90003727ab8 EFLAGS: 00010282
RAX: 0000000000000036 RBX: ffffc90002621220 RCX: ffffc90013ae6000
RDX: 0000000000000000 RSI: ffffffff816f0546 RDI: 0000000000000005
RBP: 0000000000000002 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 000000000003f108 R12: 0000000000000000
R13: 000000000000000a R14: ffffffff8dd48b80 R15: ffffc90002621222
FS:  00007fb8e238b6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d62a000 CR3: 0000000067fda000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400