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: 5327 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 a7 e4 76 fe 48 c7 c7 60 bf a4 8b 48 c7 c6 59 bb a4 8b ba 96 02 00 00 48 c7 c1 60 c0 a4 8b e8 18 63 de fd 90 <0f> 0b e8 80 e4 76 fe 48 c7 c7 20 c1 a4 8b e8 04 63 de fd 48 c7 c7 RSP: 0018:ffffc9000d375f80 EFLAGS: 00010246 RAX: 000000000000002b RBX: 0000000000000000 RCX: 3026d9755855d400 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000d3760a8 R08: ffffc9000d375ca7 R09: 1ffff92001a6eb94 R10: dffffc0000000000 R11: fffff52001a6eb95 R12: 1ffff920002a7a00 R13: ffffc9000153d000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f05f3fff6c0(0000) GS:ffff88808d72d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f05f3fde9a0 CR3: 0000000042913000 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+0x8a/0x120 fs/buffer.c:2256 jfs_write_begin+0x35/0x80 fs/jfs/inode.c:306 generic_perform_write+0x2c5/0x900 mm/filemap.c:4255 generic_file_write_iter+0x117/0x550 mm/filemap.c:4398 __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+0x116c/0x1900 fs/coredump.c:1049 vfs_coredump+0x1db5/0x2a60 fs/coredump.c:1170 get_signal+0x1108/0x1340 kernel/signal.c:3019 arch_do_signal_or_restart+0xa0/0x790 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop+0x72/0x130 kernel/entry/common.c:40 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x2bd/0xfa0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x200000000500 Code: 7a 43 36 e1 9a bb ff 6a 95 a4 27 0f ec 28 3d e7 19 97 41 de e5 42 a5 b4 76 fa 6e 27 f7 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 20 00 00 e3 00 00 00 00 00 00 00 80 18 00 00 00 20 RSP: 002b:00007f05f3ffef80 EFLAGS: 00000393 ORIG_RAX: 0000000000000000 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 00000033656c6966 R15: 2f30656c00000008 Modules linked in: ---[ end trace 0000000000000000 ]---