------------[ cut here ]------------ percpu ref (io_ring_ctx_ref_free) <= 0 (-4294967295) after switching to atomic WARNING: lib/percpu-refcount.c:197 at percpu_ref_switch_to_atomic_rcu+0x3cc/0x480, CPU#0: modprobe/3846 Modules linked in: CPU: 0 UID: 0 PID: 3846 Comm: modprobe Tainted: G W 6.17.0-rc3-next-20250829 #1 PREEMPT(voluntary) Tainted: [W]=WARN Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:percpu_ref_switch_to_atomic_rcu+0x3cc/0x480 wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 Code: 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 80 3c 01 00 0f 85 9e 00 00 00 49 8b 75 e8 48 c7 c7 80 97 e2 84 e8 75 c5 e9 fe 90 <0f> 0b 90 90 e9 2b ff ff ff e8 f6 de 5f ff e9 9e fe ff ff e8 7c df wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 RSP: 0018:ffff88806ce08e20 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8139de70 RDX: ffff888018b40000 RSI: ffffffff8139de7e RDI: 0000000000000001 RBP: 7fffffff00000000 R08: 0000000000000001 R09: ffffed100d9c4801 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88803b0a5600 R13: ffff88803b0a5620 R14: 0000000000000002 R15: 0000000000000003 FS: 0000000000000000(0000) GS:ffff8880e55dd000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4ab63c37f4 CR3: 000000003b993000 CR4: 0000000000350ef0 Call Trace: rcu_core+0x7c8/0x1800 handle_softirqs+0x1b1/0x770 __irq_exit_rcu+0xc4/0x100 irq_exit_rcu+0x9/0x20 sysvec_apic_timer_interrupt+0x70/0x80 asm_sysvec_apic_timer_interrupt+0x1a/0x20 RIP: 0010:__alloc_object+0x7/0x2c0 Code: 48 8b 02 48 c1 e8 02 83 e0 01 e9 f4 c3 0a 03 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 4c 8b 05 51 26 83 06 <41> 55 41 54 55 4d 85 c0 0f 84 12 01 00 00 81 e7 e0 0c 00 01 89 fe RSP: 0018:ffff888009a67ad0 EFLAGS: 00000246 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000002800 RDX: 0000000000000001 RSI: 0000000000000020 RDI: 0000000000002800 RBP: ffff888009a67b80 R08: ffff888008c4b780 R09: 0000000000000000 R10: ffffed100189b4c0 R11: 0000000000000000 R12: ffff88800c4da600 R13: 0000000000000020 R14: 0000000000000001 R15: ffff888008c41780 __create_object+0x1d/0x80 __kmalloc_cache_noprof+0x42a/0x690 kmem_cache_free+0x134/0x540 exit_mmap+0x47f/0xaa0 mmput+0xd5/0x390 do_exit+0x79d/0x2970 do_group_exit+0xd3/0x2a0 __x64_sys_exit_group+0x3e/0x50 x64_sys_call+0x18c5/0x18d0 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7faca7931699 Code: Unable to access opcode bytes at 0x7faca793166f. RSP: 002b:00007ffc6b723d18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007faca7a26610 RCX: 00007faca7931699 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffffffffff80 R09: 0000000000000001 R10: 0000000000000004 R11: 0000000000000246 R12: 00007faca7a26610 R13: 0000000000000001 R14: 00007faca7a26ae8 R15: 0000000000000000 irq event stamp: 6554 hardirqs last enabled at (6564): [] __up_console_sem+0x78/0x80 hardirqs last disabled at (6571): [] __up_console_sem+0x5d/0x80 softirqs last enabled at (5440): [] handle_softirqs+0x50c/0x770 softirqs last disabled at (5871): [] __irq_exit_rcu+0xc4/0x100 ---[ end trace 0000000000000000 ]--- percpu_ref_switch_to_atomic_rcu: percpu_ref_switch_to_atomic_rcu(): percpu_ref underflow slab kmalloc-64 start ffff88803b0a5600 pointer offset 0 size 64 wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 ---------------- Code disassembly (best guess): 0: 48 8b 02 mov (%rdx),%rax 3: 48 c1 e8 02 shr $0x2,%rax 7: 83 e0 01 and $0x1,%eax a: e9 f4 c3 0a 03 jmpq 0x30ac403 f: 0f 1f 40 00 nopl 0x0(%rax) 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 4c 8b 05 51 26 83 06 mov 0x6832651(%rip),%r8 # 0x683267b * 2a: 41 55 push %r13 <-- trapping instruction 2c: 41 54 push %r12 2e: 55 push %rbp 2f: 4d 85 c0 test %r8,%r8 32: 0f 84 12 01 00 00 je 0x14a 38: 81 e7 e0 0c 00 01 and $0x1000ce0,%edi 3e: 89 fe mov %edi,%esi