------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 3 PID: 835 at lib/refcount.c:28 refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28 Modules linked in: CPU: 3 UID: 0 PID: 835 Comm: kworker/3:2 Not tainted 6.13.0-rc3-syzkaller-00136-g8faabc041a00 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: 0x0 (events_power_efficient) RIP: 0010:refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28 Code: ff 89 de e8 e8 0f fa fc 84 db 0f 85 66 ff ff ff e8 fb 0d fa fc c6 05 8a dc a7 0b 01 90 48 c7 c7 a0 98 d1 8b e8 77 47 ba fc 90 <0f> 0b 90 90 e9 43 ff ff ff e8 d8 0d fa fc 0f b6 1d 65 dc a7 0b 31 RSP: 0018:ffffc90000708be8 EFLAGS: 00010082 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff815a5079 RDX: ffff888024bb4880 RSI: ffffffff815a5086 RDI: 0000000000000001 RBP: ffff88805036e008 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88805036e008 R13: ffff88802238f000 R14: 0000000000000015 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88806a900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8b46ffdf98 CR3: 0000000050368000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_sub_and_test include/linux/refcount.h:275 [inline] __refcount_dec_and_test include/linux/refcount.h:307 [inline] refcount_dec_and_test include/linux/refcount.h:325 [inline] p9_req_put+0x1ec/0x250 net/9p/client.c:404 req_done+0x1e7/0x2f0 net/9p/trans_virtio.c:147 vring_interrupt drivers/virtio/virtio_ring.c:2715 [inline] vring_interrupt+0x31b/0x400 drivers/virtio/virtio_ring.c:2690 __handle_irq_event_percpu+0x229/0x7d0 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:210 handle_edge_irq+0x263/0xd10 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:173 [inline] handle_irq arch/x86/kernel/irq.c:247 [inline] call_irq_handler arch/x86/kernel/irq.c:259 [inline] __common_interrupt+0xdf/0x250 arch/x86/kernel/irq.c:285 common_interrupt+0x61/0xe0 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 RIP: 0010:handle_softirqs+0x1da/0x8f0 kernel/softirq.c:547 Code: 89 44 24 18 48 89 6c 24 10 48 c7 c7 60 76 6b 8b e8 7b 62 cd 09 65 66 c7 05 99 8b a7 7e 00 00 e8 8c 69 45 00 fb bb ff ff ff ff <49> c7 c6 c0 b0 e0 8d 41 0f bc dc 83 c3 01 0f 85 a4 00 00 00 e9 b1 RSP: 0018:ffffc90000708f28 EFLAGS: 00000206 RAX: 00000000000067ca RBX: 00000000ffffffff RCX: 1ffffffff20bde31 RDX: 0000000000000000 RSI: ffffffff8b6cd860 RDI: ffffffff8bd1eba0 RBP: ffff888024bb4880 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff905f33d7 R11: 0000000000000000 R12: 0000000000000100 R13: 000000000000000a R14: 0000000000000001 R15: 0000000000000000 __do_softirq kernel/softirq.c:595 [inline] invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:finish_task_switch.isra.0+0x220/0xcc0 kernel/sched/core.c:5243 Code: a9 0a 00 00 44 8b 0d 53 9a f6 0e 45 85 c9 0f 85 c0 01 00 00 48 89 df e8 ae f8 ff ff e8 69 ea 38 00 fb 65 48 8b 1d 40 0c 9b 7e <48> 8d bb f8 15 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 RSP: 0018:ffffc90004b9fc00 EFLAGS: 00000202 RAX: 00000000000067c7 RBX: ffff888024bb4880 RCX: 1ffffffff20bde31 RDX: 0000000000000000 RSI: ffffffff8b6cd860 RDI: ffffffff8bd1eba0 RBP: ffffc90004b9fc48 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff905f33d7 R11: 0000000000000000 R12: ffff88806a93f9e0 R13: ffff888029384880 R14: 0000000000000000 R15: ffff88806a93ebc0 context_switch kernel/sched/core.c:5372 [inline] __schedule+0xe60/0x5ad0 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6848 worker_thread+0x2de/0xf00 kernel/workqueue.c:3406 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 ---------------- Code disassembly (best guess): 0: 89 44 24 18 mov %eax,0x18(%rsp) 4: 48 89 6c 24 10 mov %rbp,0x10(%rsp) 9: 48 c7 c7 60 76 6b 8b mov $0xffffffff8b6b7660,%rdi 10: e8 7b 62 cd 09 call 0x9cd6290 15: 65 66 c7 05 99 8b a7 movw $0x0,%gs:0x7ea78b99(%rip) # 0x7ea78bb8 1c: 7e 00 00 1f: e8 8c 69 45 00 call 0x4569b0 24: fb sti 25: bb ff ff ff ff mov $0xffffffff,%ebx * 2a: 49 c7 c6 c0 b0 e0 8d mov $0xffffffff8de0b0c0,%r14 <-- trapping instruction 31: 41 0f bc dc bsf %r12d,%ebx 35: 83 c3 01 add $0x1,%ebx 38: 0f 85 a4 00 00 00 jne 0xe2 3e: e9 .byte 0xe9 3f: b1 .byte 0xb1