BUG at fs/jfs/jfs_logmgr.c:2312 assert(bp->l_flag & lbmRELEASE)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_logmgr.c:2312!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 13 Comm: ksoftirqd/0 Not tainted 5.12.0-rc3-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:2312
Code: a3 b5 ea f8 eb d3 e8 bc 22 a7 f8 48 c7 c1 c0 7a a4 89 ba 08 09 00 00 48 c7 c6 00 79 a4 89 48 c7 c7 40 79 a4 89 e8 ac d8 f8 ff <0f> 0b e8 96 22 a7 f8 48 c7 c1 00 7b a4 89 ba 09 09 00 00 48 c7 c6
RSP: 0018:ffffc90000d27c48 EFLAGS: 00010086
RAX: 000000000000003f RBX: ffff8880183a8e00 RCX: 0000000000000000
RDX: ffff8880115b8000 RSI: ffffffff815c4985 RDI: fffff520001a4f7b
RBP: 0000000000000020 R08: 000000000000003f R09: 0000000000000000
R10: ffffffff815bd71e 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: 000000c01735f000 CR3: 000000006b33c000 CR4: 0000000000350ef0
Call Trace:
bio_endio+0x3f4/0x800 block/bio.c:1436
req_bio_endio block/blk-core.c:265 [inline]
blk_update_request+0x68b/0x1480 block/blk-core.c:1456
blk_mq_end_request+0x4c/0x510 block/blk-mq.c:564
lo_complete_rq+0x20d/0x2d0 drivers/block/loop.c:497
blk_complete_reqs+0x9d/0xd0 block/blk-mq.c:576
__do_softirq+0x29b/0x9f6 kernel/softirq.c:345
run_ksoftirqd kernel/softirq.c:652 [inline]
run_ksoftirqd+0x2d/0x60 kernel/softirq.c:644
smpboot_thread_fn+0x655/0x9e0 kernel/smpboot.c:165
kthread+0x3b1/0x4a0 kernel/kthread.c:292
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
Modules linked in:
---[ end trace 868cc82069d7c4a8 ]---
RIP: 0010:lbmIODone.cold+0xc9/0x116 fs/jfs/jfs_logmgr.c:2312
Code: a3 b5 ea f8 eb d3 e8 bc 22 a7 f8 48 c7 c1 c0 7a a4 89 ba 08 09 00 00 48 c7 c6 00 79 a4 89 48 c7 c7 40 79 a4 89 e8 ac d8 f8 ff <0f> 0b e8 96 22 a7 f8 48 c7 c1 00 7b a4 89 ba 09 09 00 00 48 c7 c6
RSP: 0018:ffffc90000d27c48 EFLAGS: 00010086
RAX: 000000000000003f RBX: ffff8880183a8e00 RCX: 0000000000000000
RDX: ffff8880115b8000 RSI: ffffffff815c4985 RDI: fffff520001a4f7b
RBP: 0000000000000020 R08: 000000000000003f R09: 0000000000000000
R10: ffffffff815bd71e 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: 000000c01735f000 CR3: 000000006b33c000 CR4: 0000000000350ef0