__x64_sys_mkdir+0xf3/0x140
do_syscall_64+0xbf/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
------------[ cut here ]------------
percpu ref (css_release) <= 0 (-1) after switching to atomic
WARNING: lib/percpu-refcount.c:197 at percpu_ref_switch_to_atomic_rcu+0x3cc/0x480, CPU#1: systemd/1
Modules linked in:
CPU: 1 UID: 0 PID: 1 Comm: systemd 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:ffff88806cf08e20 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8139de70
RDX: ffff8880094f8000 RSI: ffffffff8139de7e RDI: 0000000000000001
RBP: 7fffffffffffffff R08: 0000000000000001 R09: ffffed100d9e4801
R10: 0000000000000000 R11: 0000000000000001 R12: ffff888009977b80
R13: ffff888009977ba0 R14: 0000000000000002 R15: 0000000000000003
FS: 00007f674f85f900(0000) GS:ffff8880e56dd000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000558b35aff7e8 CR3: 000000000c600000 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:unwind_get_return_address+0x79/0xa0
Code: 36 48 8b 7b 58 e8 67 cd 0d 00 85 c0 74 cf 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03 80 3c 02 00 75 1c 48 8b 43 58 5b <5d> e9 c1 85 88 03 e8 ac 75 7a 00 eb a0 48 89 ef e8 d2 75 7a 00 eb
RSP: 0018:ffff888009547978 EFLAGS: 00000246
RAX: ffffffff81afc49f RBX: ffffffff816087b0 RCX: ffff8880095478dc
RDX: 1ffff110012a8f3c RSI: ffffffff85c1c760 RDI: ffffffff81afc49f
RBP: ffff8880095479e0 R08: ffffffff86896a50 R09: ffff8880095479c8
R10: 000000000003be53 R11: 0000000000024c4a R12: ffff888009547a50
R13: 0000000000000000 R14: ffff8880094f8000 R15: ffffea0000f9ce00
arch_stack_walk+0x9c/0xf0
stack_trace_save+0x8e/0xc0
kasan_save_stack+0x24/0x50
kasan_save_track+0x14/0x30
__kasan_save_free_info+0x3a/0x60
__kasan_slab_free+0x3f/0x50
kfree+0x281/0x550
free_pipe_info+0x299/0x350
pipe_release+0x2be/0x320
__fput+0x401/0xb50
fput_close_sync+0x10f/0x240
__x64_sys_close+0x8f/0x120
do_syscall_64+0xbf/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f675002d6eb
Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 a3 56 f9 ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 e1 56 f9 ff 8b 44
RSP: 002b:00007ffefbfddce0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 00007f674f85f6c8 RCX: 00007f675002d6eb
RDX: 000000000000000f RSI: 0000000000000007 RDI: 0000000000000018
RBP: 0000000000000018 R08: 0000000000000000 R09: 0000558b35affa60
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002
R13: 00007ffefbfddda0 R14: 0000000000000001 R15: 0000000000000001
irq event stamp: 5973734
hardirqs last enabled at (5973744): [] __up_console_sem+0x78/0x80
hardirqs last disabled at (5973753): [] __up_console_sem+0x5d/0x80
softirqs last enabled at (5972416): [] handle_softirqs+0x50c/0x770
softirqs last disabled at (5972771): [] __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 ffff888009977b80 pointer offset 0 size 64
percpu_ref_switch_to_atomic_rcu: percpu_ref_switch_to_atomic_rcu(): percpu_ref underflow slab kmalloc-64 start ffff88803bd60380 pointer offset 0 size 64
----------------
Code disassembly (best guess):
0: 36 48 8b 7b 58 mov %ss:0x58(%rbx),%rdi
5: e8 67 cd 0d 00 callq 0xdcd71
a: 85 c0 test %eax,%eax
c: 74 cf je 0xffffffdd
e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
15: fc ff df
18: 48 89 ea mov %rbp,%rdx
1b: 48 c1 ea 03 shr $0x3,%rdx
1f: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
23: 75 1c jne 0x41
25: 48 8b 43 58 mov 0x58(%rbx),%rax
29: 5b pop %rbx
* 2a: 5d pop %rbp <-- trapping instruction
2b: e9 c1 85 88 03 jmpq 0x38885f1
30: e8 ac 75 7a 00 callq 0x7a75e1
35: eb a0 jmp 0xffffffd7
37: 48 89 ef mov %rbp,%rdi
3a: e8 d2 75 7a 00 callq 0x7a7611
3f: eb .byte 0xeb