BUG at fs/jfs/jfs_logmgr.c:2303 assert(bp->l_flag & lbmRELEASE)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_logmgr.c:2303!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 PID: 28 Comm: kworker/u8:2 Not tainted 6.9.0-rc2-next-20240405-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: loop1 loop_workfn
RIP: 0010:lbmIODone+0x16fa/0x1750 fs/jfs/jfs_logmgr.c:2303
Code: 57 08 90 0f 0b e8 26 37 6c fe 48 c7 c7 40 a0 02 8c 48 c7 c6 40 9b 02 8c ba ff 08 00 00 48 c7 c1 a0 a9 02 8c e8 77 54 57 08 90 <0f> 0b e8 ff 36 6c fe 48 c7 c7 40 a0 02 8c 48 c7 c6 40 9b 02 8c ba
RSP: 0000:ffffc90000a08c80 EFLAGS: 00010046
RAX: 000000000000003f RBX: 0000000000000020 RCX: 39800dd209477100
RDX: 0000000000000102 RSI: 0000000000000102 RDI: 0000000000000000
RBP: ffff888067663608 R08: ffffffff81762ecc R09: 1ffff92000141130
R10: dffffc0000000000 R11: fffff52000141131 R12: dffffc0000000000
R13: ffff888067663600 R14: ffff888028d7aa78 R15: 0000000000000246
FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb1394a3000 CR3: 0000000023404000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
req_bio_endio block/blk-mq.c:787 [inline]
blk_update_request+0x545/0x1020 block/blk-mq.c:932
blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1055
blk_complete_reqs block/blk-mq.c:1130 [inline]
blk_done_softirq+0x100/0x150 block/blk-mq.c:1135
__do_softirq+0x2c6/0x980 kernel/softirq.c:554
invoke_softirq kernel/softirq.c:428 [inline]
__irq_exit_rcu+0xf2/0x1c0 kernel/softirq.c:633
irq_exit_rcu+0x9/0x30 kernel/softirq.c:645
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1043
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:raise_softirq+0x154/0x1b0 kernel/softirq.c:690
Code: 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 15 c7 a0 00 f6 44 24 21 02 75 4b 41 f7 c7 00 02 00 00 74 01 fb 48 c7 04 24 0e 36 e0 45 <4b> c7 04 2c 00 00 00 00 66 43 c7 44 2c 09 00 00 43 c6 44 2c 0b 00
RSP: 0000:ffffc90000a47800 EFLAGS: 00000206
RAX: 39800dd209477100 RBX: 1ffff92000148f04 RCX: ffffffff817277aa
RDX: dffffc0000000000 RSI: ffffffff8bcad640 RDI: ffffffff8c1f9f60
RBP: ffffc90000a478a8 R08: ffffffff92f73617 R09: 1ffffffff25ee6c2
R10: dffffc0000000000 R11: fffffbfff25ee6c3 R12: dffffc0000000000
R13: 1ffff92000148f00 R14: ffffc90000a47820 R15: 0000000000000246
blk_mq_raise_softirq block/blk-mq.c:1192 [inline]
blk_mq_complete_request_remote+0x546/0x740 block/blk-mq.c:1216
blk_mq_complete_request+0x19/0xa0 block/blk-mq.c:1232
loop_handle_cmd drivers/block/loop.c:1924 [inline]
loop_process_work+0x1970/0x1e60 drivers/block/loop.c:1942
process_one_work kernel/workqueue.c:3218 [inline]
process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3299
worker_thread+0x86d/0xd70 kernel/workqueue.c:3380
kthread+0x2f0/0x390 kernel/kthread.c:388
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:lbmIODone+0x16fa/0x1750 fs/jfs/jfs_logmgr.c:2303
Code: 57 08 90 0f 0b e8 26 37 6c fe 48 c7 c7 40 a0 02 8c 48 c7 c6 40 9b 02 8c ba ff 08 00 00 48 c7 c1 a0 a9 02 8c e8 77 54 57 08 90 <0f> 0b e8 ff 36 6c fe 48 c7 c7 40 a0 02 8c 48 c7 c6 40 9b 02 8c ba
RSP: 0000:ffffc90000a08c80 EFLAGS: 00010046
RAX: 000000000000003f RBX: 0000000000000020 RCX: 39800dd209477100
RDX: 0000000000000102 RSI: 0000000000000102 RDI: 0000000000000000
RBP: ffff888067663608 R08: ffffffff81762ecc R09: 1ffff92000141130
R10: dffffc0000000000 R11: fffff52000141131 R12: dffffc0000000000
R13: ffff888067663600 R14: ffff888028d7aa78 R15: 0000000000000246
FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb1394a3000 CR3: 0000000023404000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 24 20 and $0x20,%al
2: 42 80 3c 23 00 cmpb $0x0,(%rbx,%r12,1)
7: 74 08 je 0x11
9: 4c 89 f7 mov %r14,%rdi
c: e8 15 c7 a0 00 call 0xa0c726
11: f6 44 24 21 02 testb $0x2,0x21(%rsp)
16: 75 4b jne 0x63
18: 41 f7 c7 00 02 00 00 test $0x200,%r15d
1f: 74 01 je 0x22
21: fb sti
22: 48 c7 04 24 0e 36 e0 movq $0x45e0360e,(%rsp)
29: 45
* 2a: 4b c7 04 2c 00 00 00 movq $0x0,(%r12,%r13,1) <-- trapping instruction
31: 00
32: 66 43 c7 44 2c 09 00 movw $0x0,0x9(%r12,%r13,1)
39: 00
3a: 43 c6 44 2c 0b 00 movb $0x0,0xb(%r12,%r13,1)