BUG at fs/jfs/jfs_txnmgr.c:662 assert(last) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_txnmgr.c:662! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 6012 Comm: syz.3.20 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 RIP: 0010:txLock+0x1ce2/0x20b0 fs/jfs/jfs_txnmgr.c:662 Code: fe e9 29 f8 ff ff e8 8d e7 7f fe 48 c7 c7 00 2a 04 8b 48 c7 c6 f9 25 04 8b ba 96 02 00 00 48 c7 c1 00 2b 04 8b e8 1e 48 75 07 <0f> 0b e8 67 e7 7f fe 48 c7 c7 c0 2b 04 8b e8 0b 48 75 07 48 c7 c7 RSP: 0018:ffffc90003a16880 EFLAGS: 00010246 RAX: 000000000000002b RBX: ffffc9000287a000 RCX: 418a4bf2a4a93d00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90003a169c8 R08: ffffc90003a16587 R09: 1ffff92000742cb0 R10: dffffc0000000000 R11: fffff52000742cb1 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 1ffff9200050f400 FS: 000055555f49e500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000031196a3b5000 CR3: 000000005dc70000 CR4: 00000000003506f0 Call Trace: diWrite+0x43f/0x1f20 fs/jfs/jfs_imap.c:654 txCommit+0x86a/0x5290 fs/jfs/jfs_txnmgr.c:1256 jfs_commit_inode+0x2f0/0x520 fs/jfs/inode.c:114 extAlloc+0xc12/0xf90 fs/jfs/jfs_extent.c:172 jfs_get_block+0x359/0xad0 fs/jfs/inode.c:254 __block_write_begin_int+0x57f/0x1af0 fs/buffer.c:2124 __block_write_begin fs/buffer.c:2173 [inline] block_write_begin+0x9a/0x1e0 fs/buffer.c:2234 jfs_write_begin+0x35/0x70 fs/jfs/inode.c:305 generic_perform_write+0x2fe/0x5c0 mm/filemap.c:4036 generic_file_write_iter+0xaf/0x2e0 mm/filemap.c:4157 __kernel_write_iter+0x28c/0x690 fs/read_write.c:517 dump_emit_page fs/coredump.c:957 [inline] dump_user_range+0x420/0x860 fs/coredump.c:984 elf_core_dump+0x31d0/0x3770 fs/binfmt_elf.c:2184 do_coredump+0x17cc/0x24d0 fs/coredump.c:833 get_signal+0x1133/0x13f0 kernel/signal.c:2888 arch_do_signal_or_restart+0xc2/0x800 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 irqentry_exit_to_user_mode+0x9/0x30 kernel/entry/common.c:315 exc_page_fault+0x8c/0x100 arch/x86/mm/fault.c:1519 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:608 RIP: 0033:0x7ff216d9ce61 Code: 00 00 00 00 0f 1f 44 00 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 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:fffffffffffffe70 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007ff217015fa0 RCX: 00007ff216d9ce59 RDX: 0000000000000000 RSI: fffffffffffffe70 RDI: 0000000000008000 RBP: 00007ff216e32d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007ff217015fac R14: 00007ff217015fa0 R15: 00007ff217015fa0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:txLock+0x1ce2/0x20b0 fs/jfs/jfs_txnmgr.c:662 Code: fe e9 29 f8 ff ff e8 8d e7 7f fe 48 c7 c7 00 2a 04 8b 48 c7 c6 f9 25 04 8b ba 96 02 00 00 48 c7 c1 00 2b 04 8b e8 1e 48 75 07 <0f> 0b e8 67 e7 7f fe 48 c7 c7 c0 2b 04 8b e8 0b 48 75 07 48 c7 c7 RSP: 0018:ffffc90003a16880 EFLAGS: 00010246 RAX: 000000000000002b RBX: ffffc9000287a000 RCX: 418a4bf2a4a93d00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90003a169c8 R08: ffffc90003a16587 R09: 1ffff92000742cb0 R10: dffffc0000000000 R11: fffff52000742cb1 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 1ffff9200050f400 FS: 000055555f49e500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f613897a000 CR3: 000000005dc70000 CR4: 00000000003506f0