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! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 PID: 5750 Comm: syz-executor.1 Not tainted 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:txEnd+0x583/0x5a0 fs/jfs/jfs_txnmgr.c:528 Code: e9 59 fb ff ff e8 6d 9b 82 fe 48 c7 c1 80 1e 6b 8b ba 10 02 00 00 48 c7 c6 00 19 6b 8b 48 c7 c7 40 19 6b 8b e8 de 0d 63 fe 90 <0f> 0b 48 89 ef e8 93 08 df fe e9 40 fd ff ff e8 59 08 df fe e9 2e RSP: 0018:ffffc9000431fab8 EFLAGS: 00010282 RAX: 0000000000000036 RBX: ffffc900025f1110 RCX: ffffffff816fb179 RDX: 0000000000000000 RSI: ffffffff81704076 RDI: 0000000000000005 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000003 R12: 0000000000000000 R13: 0000000000000001 R14: ffffffff8e156420 R15: ffffc900025f1112 FS: 00007f357cf116c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f357cf11d58 CR3: 000000001d2ca000 CR4: 0000000000350ef0 Call Trace: add_missing_indices fs/jfs/jfs_dtree.c:2663 [inline] jfs_readdir+0x2952/0x4310 fs/jfs/jfs_dtree.c:3009 wrap_directory_iterator+0xa8/0xe0 fs/readdir.c:67 iterate_dir+0x541/0xb60 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+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f357c27dda9 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:00007f357cf110c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004e RAX: ffffffffffffffda RBX: 00007f357c3ac050 RCX: 00007f357c27dda9 RDX: 0000000000001000 RSI: 0000000020006600 RDI: 0000000000000005 RBP: 00007f357c2ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f357c3ac050 R15: 00007ffdb213a388 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:txEnd+0x583/0x5a0 fs/jfs/jfs_txnmgr.c:528 Code: e9 59 fb ff ff e8 6d 9b 82 fe 48 c7 c1 80 1e 6b 8b ba 10 02 00 00 48 c7 c6 00 19 6b 8b 48 c7 c7 40 19 6b 8b e8 de 0d 63 fe 90 <0f> 0b 48 89 ef e8 93 08 df fe e9 40 fd ff ff e8 59 08 df fe e9 2e RSP: 0018:ffffc9000431fab8 EFLAGS: 00010282 RAX: 0000000000000036 RBX: ffffc900025f1110 RCX: ffffffff816fb179 RDX: 0000000000000000 RSI: ffffffff81704076 RDI: 0000000000000005 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000003 R12: 0000000000000000 R13: 0000000000000001 R14: ffffffff8e156420 R15: ffffc900025f1112 FS: 00007f357cf116c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f357cf11d58 CR3: 000000001d2ca000 CR4: 0000000000350ef0