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 PTI
CPU: 0 UID: 0 PID: 9295 Comm: syz.0.321 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:txLock+0x1b79/0x1cb0
Code: e9 6a f8 ff ff e8 87 86 78 fe 48 c7 c7 e0 ad a4 8b 48 c7 c6 d9 a9 a4 8b ba 96 02 00 00 48 c7 c1 e0 ae a4 8b e8 18 14 e0 fd 90 <0f> 0b e8 60 86 78 fe 48 c7 c7 a0 af a4 8b e8 04 14 e0 fd 48 c7 c7
RSP: 0018:ffffc90005fbeb60 EFLAGS: 00010246
RAX: 000000000000002b RBX: 0000000000000000 RCX: a984378fbda57d00
RDX: ffffc90004c59000 RSI: 000000000000aad6 RDI: 000000000000aad7
RBP: ffffc90005fbec88 R08: ffffc90005fbe887 R09: 1ffff92000bf7d10
R10: dffffc0000000000 R11: fffff52000bf7d11 R12: 1ffff92000581400
R13: ffffc90002c0a000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f1270ef16c0(0000) GS:ffff88818eb3b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000561ce1f537b8 CR3: 00000001197aa000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 diWrite+0x444/0x1f40
 txCommit+0x852/0x5430
 jfs_commit_inode+0x2ef/0x530
 extAlloc+0xc3b/0xfb0
 jfs_get_block+0x346/0xab0
 __block_write_begin_int+0x6b5/0x1900
 block_write_begin+0x8a/0x120
 jfs_write_begin+0x35/0x80
 generic_perform_write+0x2c5/0x900
 generic_file_write_iter+0x117/0x550
 iter_file_splice_write+0x975/0x10e0
 direct_splice_actor+0x101/0x160
 splice_direct_to_actor+0x5a8/0xcc0
 do_splice_direct+0x181/0x270
 do_sendfile+0x4da/0x7e0
 __se_sys_sendfile64+0x13e/0x190
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f126ff8f749
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:00007f1270ef1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f12701e5fa0 RCX: 00007f126ff8f749
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 000000000000000a
RBP: 00007f1270013f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020fffe82 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f12701e6038 R14: 00007f12701e5fa0 R15: 00007ffdda236228
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:txLock+0x1b79/0x1cb0
Code: e9 6a f8 ff ff e8 87 86 78 fe 48 c7 c7 e0 ad a4 8b 48 c7 c6 d9 a9 a4 8b ba 96 02 00 00 48 c7 c1 e0 ae a4 8b e8 18 14 e0 fd 90 <0f> 0b e8 60 86 78 fe 48 c7 c7 a0 af a4 8b e8 04 14 e0 fd 48 c7 c7
RSP: 0018:ffffc90005fbeb60 EFLAGS: 00010246
RAX: 000000000000002b RBX: 0000000000000000 RCX: a984378fbda57d00
RDX: ffffc90004c59000 RSI: 000000000000aad6 RDI: 000000000000aad7
RBP: ffffc90005fbec88 R08: ffffc90005fbe887 R09: 1ffff92000bf7d10
R10: dffffc0000000000 R11: fffff52000bf7d11 R12: 1ffff92000581400
R13: ffffc90002c0a000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f1270ef16c0(0000) GS:ffff8882a9f3b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fad143b6ad8 CR3: 00000001197aa000 CR4: 00000000000006f0
