BUG at fs/jfs/jfs_logmgr.c:2298 assert(bp->l_flag & lbmRELEASE) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_logmgr.c:2298! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 15 Comm: ksoftirqd/0 Not tainted 6.2.0-next-20230301-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 RIP: 0010:lbmIODone+0x111a/0x11d0 fs/jfs/jfs_logmgr.c:2298 Code: fe e9 97 f3 ff ff e8 85 91 92 fe 48 c7 c1 c0 90 89 8a ba fa 08 00 00 48 c7 c6 00 8f 89 8a 48 c7 c7 40 8f 89 8a e8 56 55 76 fe <0f> 0b e8 df fc e4 fe e9 09 f2 ff ff e8 55 91 92 fe 48 c7 c1 00 91 RSP: 0018:ffffc90000147c80 EFLAGS: 00010086 RAX: 000000000000003f RBX: ffff8880207f5200 RCX: 0000000000000100 RDX: 0000000000000000 RSI: ffffffff8169185c RDI: 0000000000000005 RBP: 0000000000000020 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000101 R11: 0000000000000001 R12: 0000000000000246 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b33524000 CR3: 0000000030ab8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bio_endio+0x651/0x810 block/bio.c:1607 req_bio_endio block/blk-mq.c:795 [inline] blk_update_request+0x3a4/0x1430 block/blk-mq.c:927 blk_mq_end_request+0x4f/0x80 block/blk-mq.c:1054 lo_complete_rq+0x1c6/0x280 drivers/block/loop.c:370 blk_complete_reqs+0xad/0xe0 block/blk-mq.c:1132 __do_softirq+0x2e3/0xae3 kernel/softirq.c:571 run_ksoftirqd kernel/softirq.c:934 [inline] run_ksoftirqd+0x31/0x60 kernel/softirq.c:926 smpboot_thread_fn+0x659/0xa30 kernel/smpboot.c:164 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:lbmIODone+0x111a/0x11d0 fs/jfs/jfs_logmgr.c:2298 Code: fe e9 97 f3 ff ff e8 85 91 92 fe 48 c7 c1 c0 90 89 8a ba fa 08 00 00 48 c7 c6 00 8f 89 8a 48 c7 c7 40 8f 89 8a e8 56 55 76 fe <0f> 0b e8 df fc e4 fe e9 09 f2 ff ff e8 55 91 92 fe 48 c7 c1 00 91 RSP: 0018:ffffc90000147c80 EFLAGS: 00010086 RAX: 000000000000003f RBX: ffff8880207f5200 RCX: 0000000000000100 RDX: 0000000000000000 RSI: ffffffff8169185c RDI: 0000000000000005 RBP: 0000000000000020 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000101 R11: 0000000000000001 R12: 0000000000000246 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b33524000 CR3: 0000000030ab8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400