------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 3 PID: 11453 at lib/refcount.c:28 refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28 Modules linked in: CPU: 3 UID: 0 PID: 11453 Comm: syz-executor Not tainted 6.15.0-rc7-syzkaller-00014-gd608703fcdd9 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28 Code: ff 89 de e8 38 19 ea fc 84 db 0f 85 66 ff ff ff e8 4b 1e ea fc c6 05 1d 75 9c 0b 01 90 48 c7 c7 a0 4e f4 8b e8 a7 ab a9 fc 90 <0f> 0b 90 90 e9 43 ff ff ff e8 28 1e ea fc 0f b6 1d f8 74 9c 0b 31 RSP: 0018:ffffc900006f8d90 EFLAGS: 00010082 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff817ad4f8 RDX: ffff888052070000 RSI: ffffffff817ad505 RDI: 0000000000000001 RBP: ffff88802fac7dc8 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88802fac7dc8 R13: ffff888048536000 R14: 0000000000000015 R15: 1ffff11003f9e00c FS: 0000555571f13500(0000) GS:ffff8880d6cda000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f54a4d18310 CR3: 0000000060ac9000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_sub_and_test include/linux/refcount.h:400 [inline] __refcount_dec_and_test include/linux/refcount.h:432 [inline] refcount_dec_and_test include/linux/refcount.h:450 [inline] p9_req_put+0x1ec/0x250 net/9p/client.c:404 req_done+0x1dc/0x2e0 net/9p/trans_virtio.c:147 vring_interrupt drivers/virtio/virtio_ring.c:2715 [inline] vring_interrupt+0x31e/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:254 [inline] call_irq_handler arch/x86/kernel/irq.c:266 [inline] __common_interrupt+0xe2/0x250 arch/x86/kernel/irq.c:292 common_interrupt+0xba/0xe0 arch/x86/kernel/irq.c:285 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 RIP: 0010:lock_acquire+0x62/0x350 kernel/locking/lockdep.c:5870 Code: 39 0c 12 83 f8 07 0f 87 bc 02 00 00 89 c0 48 0f a3 05 52 07 ed 0e 0f 82 74 02 00 00 8b 35 ea 36 ed 0e 85 f6 0f 85 8d 00 00 00 <48> 8b 44 24 30 65 48 2b 05 29 39 0c 12 0f 85 c7 02 00 00 48 83 c4 RSP: 0018:ffffc9000564fb28 EFLAGS: 00000206 RAX: 0000000000000046 RBX: ffffffff8e3bfc00 RCX: 000000000eb34d96 RDX: 0000000000000000 RSI: ffffffff8dbbf003 RDI: ffffffff8bf4a2a0 RBP: 0000000000000002 R08: ddf083594ff2f65b R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:331 [inline] rcu_read_lock include/linux/rcupdate.h:841 [inline] percpu_ref_put_many include/linux/percpu-refcount.h:330 [inline] percpu_ref_put include/linux/percpu-refcount.h:351 [inline] css_put include/linux/cgroup_refcnt.h:79 [inline] css_put+0x70/0x1b0 include/linux/cgroup_refcnt.h:76 __memcg_slab_post_alloc_hook+0x13c/0x940 mm/memcontrol.c:3061 memcg_slab_post_alloc_hook mm/slub.c:2179 [inline] slab_post_alloc_hook mm/slub.c:4157 [inline] slab_alloc_node mm/slub.c:4196 [inline] kmem_cache_alloc_lru_noprof+0x30f/0x3b0 mm/slub.c:4215 __d_alloc+0x31/0xaa0 fs/dcache.c:1681 d_alloc+0x4a/0x1e0 fs/dcache.c:1760 lookup_one_qstr_excl_raw.part.0+0x96/0x160 fs/namei.c:1685 lookup_one_qstr_excl_raw fs/namei.c:1677 [inline] lookup_one_qstr_excl+0x3e/0x120 fs/namei.c:1711 filename_create+0x1e7/0x4a0 fs/namei.c:4133 do_symlinkat+0xbe/0x310 fs/namei.c:4742 __do_sys_symlinkat fs/namei.c:4765 [inline] __se_sys_symlinkat fs/namei.c:4762 [inline] __x64_sys_symlinkat+0x93/0xc0 fs/namei.c:4762 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f54a4d8dee7 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 0a 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff792f9e48 EFLAGS: 00000202 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f54a4d8dee7 RDX: 00007f54a4e122fd RSI: 00000000ffffff9c RDI: 00007f54a4e10e74 RBP: 00007fff792f9e8c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000014f R13: 00000000000927c0 R14: 0000000000033271 R15: 00007fff792f9ee0 ---------------- Code disassembly (best guess): 0: 39 0c 12 cmp %ecx,(%rdx,%rdx,1) 3: 83 f8 07 cmp $0x7,%eax 6: 0f 87 bc 02 00 00 ja 0x2c8 c: 89 c0 mov %eax,%eax e: 48 0f a3 05 52 07 ed bt %rax,0xeed0752(%rip) # 0xeed0768 15: 0e 16: 0f 82 74 02 00 00 jb 0x290 1c: 8b 35 ea 36 ed 0e mov 0xeed36ea(%rip),%esi # 0xeed370c 22: 85 f6 test %esi,%esi 24: 0f 85 8d 00 00 00 jne 0xb7 * 2a: 48 8b 44 24 30 mov 0x30(%rsp),%rax <-- trapping instruction 2f: 65 48 2b 05 29 39 0c sub %gs:0x120c3929(%rip),%rax # 0x120c3960 36: 12 37: 0f 85 c7 02 00 00 jne 0x304 3d: 48 rex.W 3e: 83 .byte 0x83 3f: c4 .byte 0xc4