------------[ cut here ]------------
percpu ref (free_ioctx_reqs) <= 0 (0) after switching to atomic
WARNING: lib/percpu-refcount.c:197 at percpu_ref_switch_to_atomic_rcu+0x3cc/0x480, CPU#0: syz-executor.3/4110
Modules linked in:
CPU: 0 UID: 0 PID: 4110 Comm: syz-executor.3 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
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
RSP: 0018:ffff88806ce08e20 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8139de70
RDX: ffff88803df61b80 RSI: ffffffff8139de7e RDI: 0000000000000001
RBP: 8000000000000000 R08: 0000000000000001 R09: ffffed100d9c4801
R10: 0000000000000000 R11: 0000000000000001 R12: ffff88800e39f000
R13: ffff88800e39f020 R14: 0000000000000002 R15: 0000000000000003
FS: 0000000000000000(0000) GS:ffff8880e55dd000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6cd459e040 CR3: 000000003c458000 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:exit_mmap+0x40a/0xaa0
Code: 00 00 00 48 89 44 24 68 48 89 44 24 70 48 c7 04 24 00 00 00 00 e8 16 f7 d3 ff 48 8d 7d 20 48 89 f8 48 c1 e8 03 42 80 3c 28 00 <0f> 85 f4 05 00 00 4c 8b 7d 20 31 ff 41 81 e7 00 00 10 00 4c 89 fe
RSP: 0018:ffff88803e38fa00 EFLAGS: 00000246
RAX: 1ffff11001b73d44 RBX: 0000000000000014 RCX: ffffffff84b42256
RDX: ffff88803df61b80 RSI: ffffffff819ff06a RDI: ffff88800db9ea20
RBP: ffff88800db9ea00 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88800efeaa00
R13: dffffc0000000000 R14: ffff88803e38fa60 R15: 0000000000000000
mmput+0xd5/0x390
do_exit+0x79d/0x2970
do_group_exit+0xd3/0x2a0
get_signal+0x2315/0x2340
arch_do_signal_or_restart+0x80/0x790
exit_to_user_mode_loop+0x8b/0x110
do_syscall_64+0x2f7/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd10cce4b19
Code: Unable to access opcode bytes at 0x7fd10cce4aef.
RSP: 002b:00007fd10a25a218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007fd10cdf7f68 RCX: 00007fd10cce4b19
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fd10cdf7f68
RBP: 00007fd10cdf7f60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd10cdf7f6c
R13: 00007ffc261b2e1f R14: 00007fd10a25a300 R15: 0000000000022000
irq event stamp: 4068
hardirqs last enabled at (4076): [] __up_console_sem+0x78/0x80
hardirqs last disabled at (4085): [] __up_console_sem+0x5d/0x80
softirqs last enabled at (3068): [] handle_softirqs+0x50c/0x770
softirqs last disabled at (3225): [] __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 ffff88800e39f000 pointer offset 0 size 64
----------------
Code disassembly (best guess):
0: 00 00 add %al,(%rax)
2: 00 48 89 add %cl,-0x77(%rax)
5: 44 24 68 rex.R and $0x68,%al
8: 48 89 44 24 70 mov %rax,0x70(%rsp)
d: 48 c7 04 24 00 00 00 movq $0x0,(%rsp)
14: 00
15: e8 16 f7 d3 ff callq 0xffd3f730
1a: 48 8d 7d 20 lea 0x20(%rbp),%rdi
1e: 48 89 f8 mov %rdi,%rax
21: 48 c1 e8 03 shr $0x3,%rax
25: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1)
* 2a: 0f 85 f4 05 00 00 jne 0x624 <-- trapping instruction
30: 4c 8b 7d 20 mov 0x20(%rbp),%r15
34: 31 ff xor %edi,%edi
36: 41 81 e7 00 00 10 00 and $0x100000,%r15d
3d: 4c 89 fe mov %r15,%rsi