------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 0 PID: 4085 at lib/refcount.c:28 refcount_warn_saturate+0xaa/0xf0 lib/refcount.c:28 Modules linked in: CPU: 0 PID: 4085 Comm: syz-executor.4 Not tainted 6.2.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 RIP: 0010:refcount_warn_saturate+0xaa/0xf0 lib/refcount.c:28 Code: 05 06 de 3e 02 01 e8 07 e7 f7 00 0f 0b c3 80 3d f6 dd 3e 02 00 75 95 48 c7 c7 48 c0 68 83 c6 05 e6 dd 3e 02 01 e8 e8 e6 f7 00 <0f> 0b c3 80 3d d5 dd 3e 02 00 0f 85 72 ff ff ff 48 c7 c7 a0 c0 68 RSP: 0018:ffffc90000003eb8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff88811420bc00 RCX: 0000000000000000 RDX: 0000000000000101 RSI: ffffc90000003d68 RDI: 00000000ffffffff RBP: ffff888175120800 R08: 0000000000000000 R09: ffffffff83ab1b40 R10: ffffc90000003d60 R11: ffffffff83b91b88 R12: ffff888109af5040 R13: 0000000000000000 R14: ffffffff81267f73 R15: 0000000000000000 FS: 00007fc9e089f6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200000c0 CR3: 0000000148d08000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_sub_and_test include/linux/refcount.h:283 [inline] __refcount_dec_and_test include/linux/refcount.h:315 [inline] refcount_dec_and_test include/linux/refcount.h:333 [inline] xp_put_pool+0x38/0xc0 net/xdp/xsk_buff_pool.c:279 xsk_destruct+0x1d/0x40 net/xdp/xsk.c:1391 __sk_destruct+0x22/0x270 net/core/sock.c:2135 rcu_do_batch kernel/rcu/tree.c:2246 [inline] rcu_core+0x31d/0x900 kernel/rcu/tree.c:2506 __do_softirq+0x122/0x3a4 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0xa2/0x100 kernel/softirq.c:650 sysvec_apic_timer_interrupt+0xa2/0xd0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:lock_release+0x17e/0x300 kernel/locking/lockdep.c:5692 Code: 0f c1 05 5d f3 dd 7e 83 f8 01 0f 85 29 01 00 00 9c 58 f6 c4 02 0f 85 14 01 00 00 41 f7 c5 00 02 00 00 74 01 fb 48 8b 44 24 10 <65> 48 2b 04 25 28 00 00 00 0f 85 67 01 00 00 48 83 c4 18 5d 41 5c RSP: 0018:ffffc90000f17d58 EFLAGS: 00000206 RAX: c02fa5f8e5470000 RBX: ffff888113d55000 RCX: ffffc90000f17d64 RDX: 0000000000000001 RSI: ffffffff8353c925 RDI: ffffffff83573b59 RBP: ffffffff83b947a0 R08: 0000000000000000 R09: 0000000000000001 R10: ffff888109af59c8 R11: 0000000000000000 R12: ffffffff81452711 R13: 0000000000000246 R14: ffff888109af5040 R15: 0000000000000002 rcu_lock_release include/linux/rcupdate.h:330 [inline] rcu_read_unlock include/linux/rcupdate.h:797 [inline] percpu_ref_tryget_many include/linux/percpu-refcount.h:250 [inline] percpu_ref_tryget include/linux/percpu-refcount.h:266 [inline] obj_cgroup_tryget include/linux/memcontrol.h:778 [inline] __get_obj_cgroup_from_memcg+0x6e/0xe0 mm/memcontrol.c:3004 get_obj_cgroup_from_current+0xb2/0x130 mm/memcontrol.c:3024 memcg_slab_pre_alloc_hook mm/slab.h:495 [inline] slab_pre_alloc_hook mm/slab.h:725 [inline] slab_alloc_node mm/slub.c:3434 [inline] slab_alloc mm/slub.c:3460 [inline] __kmem_cache_alloc_lru mm/slub.c:3467 [inline] kmem_cache_alloc_lru+0x8e/0x570 mm/slub.c:3483 __d_alloc+0x24/0x220 fs/dcache.c:1769 d_alloc_pseudo+0x9/0x20 fs/dcache.c:1899 alloc_file_pseudo+0x68/0x110 fs/file_table.c:265 sock_alloc_file+0x38/0xa0 net/socket.c:464 __sys_socketpair+0x14b/0x260 net/socket.c:1750 __do_sys_socketpair net/socket.c:1779 [inline] __se_sys_socketpair net/socket.c:1776 [inline] __x64_sys_socketpair+0x16/0x20 net/socket.c:1776 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc9dfa7cb29 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:00007fc9e089f0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000035 RAX: ffffffffffffffda RBX: 00007fc9dfb9bf80 RCX: 00007fc9dfa7cb29 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000001 RBP: 00007fc9dfac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000240 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc9dfb9bf80 R15: 00007ffeac2db8d8 ---------------- Code disassembly (best guess): 0: 0f c1 05 5d f3 dd 7e xadd %eax,0x7eddf35d(%rip) # 0x7eddf364 7: 83 f8 01 cmp $0x1,%eax a: 0f 85 29 01 00 00 jne 0x139 10: 9c pushf 11: 58 pop %rax 12: f6 c4 02 test $0x2,%ah 15: 0f 85 14 01 00 00 jne 0x12f 1b: 41 f7 c5 00 02 00 00 test $0x200,%r13d 22: 74 01 je 0x25 24: fb sti 25: 48 8b 44 24 10 mov 0x10(%rsp),%rax * 2a: 65 48 2b 04 25 28 00 sub %gs:0x28,%rax <-- trapping instruction 31: 00 00 33: 0f 85 67 01 00 00 jne 0x1a0 39: 48 83 c4 18 add $0x18,%rsp 3d: 5d pop %rbp 3e: 41 5c pop %r12