------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: CPU: 3 PID: 8189 at lib/refcount.c:28 refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28
Modules linked in:
CPU: 3 PID: 8189 Comm: syz-executor.1 Not tainted 6.9.0-rc3-syzkaller-00399-g72374d71c315 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28
Code: ff 89 de e8 a8 74 0e fd 84 db 0f 85 66 ff ff ff e8 1b 7a 0e fd c6 05 aa 65 09 0b 01 90 48 c7 c7 a0 eb 6e 8b e8 97 e8 d0 fc 90 <0f> 0b 90 90 e9 43 ff ff ff e8 f8 79 0e fd 0f b6 1d 85 65 09 0b 31
RSP: 0018:ffffc900008f8bf8 EFLAGS: 00010086
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81503349
RDX: ffff888044c60000 RSI: ffffffff81503356 RDI: 0000000000000001
RBP: ffff88803d00ecc8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000002 R12: dffffc0000000000
R13: ffff88803d00ecc8 R14: ffff88802d2bdc00 R15: 0000000000000000
FS: 00007faf551436c0(0000) GS:ffff88806b500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007faf545a8000 CR3: 000000001bab2000 CR4: 0000000000350ef0
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+0x1f4/0x250 net/9p/client.c:401
req_done+0x1e7/0x2f0 net/9p/trans_virtio.c:147
vring_interrupt drivers/virtio/virtio_ring.c:2595 [inline]
vring_interrupt+0x31b/0x400 drivers/virtio/virtio_ring.c:2570
__handle_irq_event_percpu+0x229/0x7c0 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:161 [inline]
handle_irq arch/x86/kernel/irq.c:238 [inline]
__common_interrupt+0xde/0x250 arch/x86/kernel/irq.c:257
common_interrupt+0x52/0xd0 arch/x86/kernel/irq.c:247
asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693
RIP: 0010:__do_softirq+0x1dc/0x922 kernel/softirq.c:540
Code: 89 44 24 18 44 88 74 24 3b 48 c7 c7 80 4f 0b 8b e8 59 4c fc ff 65 66 c7 05 27 75 25 75 00 00 e8 5a 7b b6 f6 fb bb ff ff ff ff <49> c7 c6 c0 a0 40 8d 41 0f bc dc 83 c3 01 0f 85 a7 00 00 00 e9 b4
RSP: 0018:ffffc900008f8f30 EFLAGS: 00000202
RAX: 00000000000004d6 RBX: 00000000ffffffff RCX: 1ffffffff27bac45
RDX: 0000000000000000 RSI: ffffffff8b0cae00 RDI: ffffffff8b6f4e60
RBP: 00000001000008d4 R08: 0000000000000001 R09: fffffbfff27ba431
R10: ffffffff93dd218f R11: 0000000000000001 R12: 0000000000000280
R13: 000000000000000a R14: 0000000000000001 R15: 0000000000000000
invoke_softirq kernel/softirq.c:428 [inline]
__irq_exit_rcu kernel/softirq.c:633 [inline]
irq_exit_rcu+0xb9/0x120 kernel/softirq.c:645
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:csd_lock_wait kernel/smp.c:311 [inline]
RIP: 0010:smp_call_function_many_cond+0x4ec/0x1420 kernel/smp.c:855
Code: 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 f4 4c 89 f5 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 5b 07 0c 00 f3 90 41 0f b6 04 24 <40> 38 c5 7c 08 84 c0 0f 85 f7 0c 00 00 8b 43 08 31 ff 83 e0 01 41
RSP: 0018:ffffc9000347f5f0 EFLAGS: 00000283
RAX: 0000000000000000 RBX: ffff88806b246720 RCX: ffffc900239ab000
RDX: 0000000000040000 RSI: ffffffff8181bbc5 RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffffed100d648ce5
R13: 0000000000000001 R14: ffff88806b246728 R15: ffff88806b53fc00
on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1023
__purge_vmap_area_lazy+0x4f5/0xc10 mm/vmalloc.c:2245
_vm_unmap_aliases+0x29c/0xbd0 mm/vmalloc.c:2843
change_page_attr_set_clr+0x24c/0x490 arch/x86/mm/pat/set_memory.c:1842
change_page_attr_clear arch/x86/mm/pat/set_memory.c:1890 [inline]
set_memory_ro+0x7c/0xb0 arch/x86/mm/pat/set_memory.c:2076
bpf_prog_lock_ro include/linux/filter.h:895 [inline]
bpf_prog_select_runtime+0x4fb/0x640 kernel/bpf/core.c:2406
bpf_prog_load+0xf0f/0x2660 kernel/bpf/syscall.c:2899
__sys_bpf+0x9b4/0x4b40 kernel/bpf/syscall.c:5660
__do_sys_bpf kernel/bpf/syscall.c:5767 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5765 [inline]
__x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:5765
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7faf5447de69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007faf551430c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007faf545abf80 RCX: 00007faf5447de69
RDX: 0000000000000090 RSI: 0000000020000880 RDI: 0000000000000005
RBP: 00007faf544ca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007faf545abf80 R15: 00007ffcb68eeb38
----------------
Code disassembly (best guess):
0: 89 44 24 18 mov %eax,0x18(%rsp)
4: 44 88 74 24 3b mov %r14b,0x3b(%rsp)
9: 48 c7 c7 80 4f 0b 8b mov $0xffffffff8b0b4f80,%rdi
10: e8 59 4c fc ff call 0xfffc4c6e
15: 65 66 c7 05 27 75 25 movw $0x0,%gs:0x75257527(%rip) # 0x75257546
1c: 75 00 00
1f: e8 5a 7b b6 f6 call 0xf6b67b7e
24: fb sti
25: bb ff ff ff ff mov $0xffffffff,%ebx
* 2a: 49 c7 c6 c0 a0 40 8d mov $0xffffffff8d40a0c0,%r14 <-- trapping instruction
31: 41 0f bc dc bsf %r12d,%ebx
35: 83 c3 01 add $0x1,%ebx
38: 0f 85 a7 00 00 00 jne 0xe5
3e: e9 .byte 0xe9
3f: b4 .byte 0xb4