jfs_dirty_inode called on read-only volume Is remount racy? 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 CPU: 0 PID: 3656 Comm: syz.1.2 Not tainted 5.15.165-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:txEnd+0x552/0x560 fs/jfs/jfs_txnmgr.c:528 Code: fe e9 cd fe ff ff e8 8d 9b 9a fe 48 c7 c7 80 72 c1 8a 48 c7 c6 79 6e c1 8a ba 10 02 00 00 48 c7 c1 c0 72 c1 8a e8 9e 5c 4c 07 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 41 57 41 56 41 55 41 RSP: 0018:ffffc9000116f9f0 EFLAGS: 00010246 RAX: 0000000000000036 RBX: 0000000000000001 RCX: 544929bf61b30c00 RDX: ffffc90003b1d000 RSI: 000000000000777c RDI: 000000000000777d RBP: 1ffff920004cd227 R08: ffffffff816689dc R09: fffff5200022de7d R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 0000000000000001 R14: ffffc90002669138 R15: 0000000000000110 FS: 00007fcba44396c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe2fece5000 CR3: 0000000020226000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: add_missing_indices fs/jfs/jfs_dtree.c:2961 [inline] jfs_readdir+0x2947/0x4650 fs/jfs/jfs_dtree.c:3307 iterate_dir+0x224/0x570 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0x209/0x4f0 fs/readdir.c:354 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fcba5fdde79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcba4439038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007fcba617a058 RCX: 00007fcba5fdde79 RDX: 0000000000001000 RSI: 0000000020000f80 RDI: 0000000000000004 RBP: 00007fcba604b916 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcba617a058 R15: 00007ffced60fd88 Modules linked in: ---[ end trace 8a7b2aa8e35f0345 ]--- RIP: 0010:txEnd+0x552/0x560 fs/jfs/jfs_txnmgr.c:528 Code: fe e9 cd fe ff ff e8 8d 9b 9a fe 48 c7 c7 80 72 c1 8a 48 c7 c6 79 6e c1 8a ba 10 02 00 00 48 c7 c1 c0 72 c1 8a e8 9e 5c 4c 07 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 41 57 41 56 41 55 41 RSP: 0018:ffffc9000116f9f0 EFLAGS: 00010246 RAX: 0000000000000036 RBX: 0000000000000001 RCX: 544929bf61b30c00 RDX: ffffc90003b1d000 RSI: 000000000000777c RDI: 000000000000777d RBP: 1ffff920004cd227 R08: ffffffff816689dc R09: fffff5200022de7d R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 0000000000000001 R14: ffffc90002669138 R15: 0000000000000110 FS: 00007fcba44396c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe2fece5000 CR3: 0000000020226000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400