BUG at fs/jfs/jfs_logmgr.c:2313 assert(bp->l_flag & lbmRELEASE) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_logmgr.c:2313! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 13 Comm: ksoftirqd/0 Not tainted 5.17.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:lbmIODone.cold+0xc9/0x116 fs/jfs/jfs_logmgr.c:2313 Code: 8f 7a ae f8 eb d3 e8 38 44 67 f8 48 c7 c1 60 65 e7 89 ba 09 09 00 00 48 c7 c6 a0 63 e7 89 48 c7 c7 e0 63 e7 89 e8 d4 1f f8 ff <0f> 0b e8 12 44 67 f8 48 c7 c1 a0 65 e7 89 ba 0a 09 00 00 48 c7 c6 RSP: 0018:ffffc90000d27c78 EFLAGS: 00010082 RAX: 000000000000003f RBX: ffff888147305a00 RCX: 0000000000000000 RDX: ffff888011918000 RSI: ffffffff815f9f48 RDI: fffff520001a4f81 RBP: 0000000000000020 R08: 000000000000003f R09: 0000000000000000 R10: ffffffff815f3cae R11: 0000000000000000 R12: 0000000000000246 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6a5fc473a5 CR3: 0000000025c42000 CR4: 0000000000350ef0 Call Trace: bio_endio+0x5ec/0x770 block/bio.c:1514 req_bio_endio block/blk-mq.c:685 [inline] blk_update_request+0x401/0x1070 block/blk-mq.c:807 blk_mq_end_request+0x55/0x5f0 block/blk-mq.c:928 lo_complete_rq+0x1c2/0x280 drivers/block/loop.c:369 blk_complete_reqs+0xad/0xe0 block/blk-mq.c:999 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 run_ksoftirqd kernel/softirq.c:921 [inline] run_ksoftirqd+0x2d/0x60 kernel/softirq.c:913 smpboot_thread_fn+0x645/0x9c0 kernel/smpboot.c:164 kthread+0x2e9/0x3a0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:lbmIODone.cold+0xc9/0x116 fs/jfs/jfs_logmgr.c:2313 Code: 8f 7a ae f8 eb d3 e8 38 44 67 f8 48 c7 c1 60 65 e7 89 ba 09 09 00 00 48 c7 c6 a0 63 e7 89 48 c7 c7 e0 63 e7 89 e8 d4 1f f8 ff <0f> 0b e8 12 44 67 f8 48 c7 c1 a0 65 e7 89 ba 0a 09 00 00 48 c7 c6 RSP: 0018:ffffc90000d27c78 EFLAGS: 00010082 RAX: 000000000000003f RBX: ffff888147305a00 RCX: 0000000000000000 RDX: ffff888011918000 RSI: ffffffff815f9f48 RDI: fffff520001a4f81 RBP: 0000000000000020 R08: 000000000000003f R09: 0000000000000000 R10: ffffffff815f3cae R11: 0000000000000000 R12: 0000000000000246 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6a5fc473a5 CR3: 0000000025c42000 CR4: 0000000000350ef0