BUG at fs/jfs/jfs_txnmgr.c:662 assert(last) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_txnmgr.c:662! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5346 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:txLock+0x1b79/0x1cb0 fs/jfs/jfs_txnmgr.c:662 Code: e9 6a f8 ff ff e8 47 23 74 fe 48 c7 c7 a0 a4 a5 8b 48 c7 c6 99 a0 a5 8b ba 96 02 00 00 48 c7 c1 c0 a5 a5 8b e8 58 c4 da fd 90 <0f> 0b e8 20 23 74 fe 48 c7 c7 80 a6 a5 8b e8 44 c4 da fd 48 c7 c7 RSP: 0018:ffffc9000ee2de00 EFLAGS: 00010246 RAX: 000000000000002b RBX: 0000000000000000 RCX: 08d21b126d56ad00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000ee2df28 R08: ffffc9000ee2db87 R09: 1ffff92001dc5b70 R10: dffffc0000000000 R11: fffff52001dc5b71 R12: 1ffff920002a3800 R13: ffffc9000151c000 R14: 0000000000000000 R15: 0000000000000000 FS: 00002000000002c0(0000) GS:ffff88808d414000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5b12e482b0 CR3: 000000003fcaf000 CR4: 0000000000352ef0 Call Trace: diWrite+0x444/0x1f40 fs/jfs/jfs_imap.c:654 txCommit+0x852/0x5430 fs/jfs/jfs_txnmgr.c:1256 jfs_commit_inode+0x2ef/0x530 fs/jfs/inode.c:114 extAlloc+0xc3b/0xfb0 fs/jfs/jfs_extent.c:177 jfs_get_block+0x346/0xab0 fs/jfs/inode.c:254 __block_write_begin_int+0x6b5/0x1900 fs/buffer.c:2145 block_write_begin+0x8d/0x120 fs/buffer.c:2256 jfs_write_begin+0x35/0x80 fs/jfs/inode.c:306 generic_perform_write+0x2c5/0x900 mm/filemap.c:4314 generic_file_write_iter+0x117/0x550 mm/filemap.c:4457 __kernel_write_iter+0x428/0x910 fs/read_write.c:619 dump_emit_page fs/coredump.c:1298 [inline] dump_user_range+0x8a0/0xc90 fs/coredump.c:1372 elf_core_dump+0x3369/0x3960 fs/binfmt_elf.c:2111 coredump_write+0x1121/0x18b0 fs/coredump.c:1049 do_coredump fs/coredump.c:1126 [inline] vfs_coredump+0x3321/0x3e60 fs/coredump.c:1200 get_signal+0x1108/0x1340 kernel/signal.c:3019 arch_do_signal_or_restart+0x9a/0x7a0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:41 [inline] exit_to_user_mode_loop kernel/entry/common.c:75 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:270 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:339 [inline] irqentry_exit+0x178/0x670 kernel/entry/common.c:196 exc_general_protection+0x171/0x1f0 arch/x86/kernel/traps.c:913 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:612 RIP: 0033:0x7f176078f7d1 Code: 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 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:00002000000001a0 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f17609e5fa0 RCX: 00007f176078f7c9 RDX: 0000200000000040 RSI: 00002000000001a0 RDI: 0000000000080000 RBP: 00007f1760813f91 R08: 00002000000002c0 R09: 00002000000002c0 R10: 00002000000001c0 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f17609e6038 R14: 00007f17609e5fa0 R15: 00007ffcf6466418 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:txLock+0x1b79/0x1cb0 fs/jfs/jfs_txnmgr.c:662 Code: e9 6a f8 ff ff e8 47 23 74 fe 48 c7 c7 a0 a4 a5 8b 48 c7 c6 99 a0 a5 8b ba 96 02 00 00 48 c7 c1 c0 a5 a5 8b e8 58 c4 da fd 90 <0f> 0b e8 20 23 74 fe 48 c7 c7 80 a6 a5 8b e8 44 c4 da fd 48 c7 c7