------------[ cut here ]------------ percpu_ref_kill_and_confirm called more than once on io_ring_ctx_ref_free! WARNING: CPU: 1 PID: 16229 at lib/percpu-refcount.c:382 percpu_ref_kill_and_confirm+0x126/0x180 lib/percpu-refcount.c:382 Modules linked in: CPU: 1 PID: 16229 Comm: syz-executor.2 Not tainted 5.10.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:percpu_ref_kill_and_confirm+0x126/0x180 lib/percpu-refcount.c:382 Code: 5d 08 48 8d 7b 08 48 89 fa 48 c1 ea 03 80 3c 02 00 75 5d 48 8b 53 08 48 c7 c6 00 5d 9d 89 48 c7 c7 60 5c 9d 89 e8 8c f5 f6 04 <0f> 0b 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03 80 3c 02 RSP: 0018:ffffc90009d7fbb8 EFLAGS: 00010082 RAX: 0000000000000000 RBX: ffff88801496f680 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff81592ba5 RDI: fffff520013aff69 RBP: ffff888069445000 R08: 0000000000000001 R09: ffff8880b9f2015b R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000216 R13: 0000000000000000 R14: 0000000000000000 R15: ffff88802e792178 FS: 0000000000000000(0000) GS:ffff8880b9f00000(0063) knlGS:00000000f55c7b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000008160c90 CR3: 0000000020333000 CR4: 00000000001526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: percpu_ref_kill include/linux/percpu-refcount.h:149 [inline] io_ring_ctx_wait_and_kill+0x2b/0x450 fs/io_uring.c:8382 io_uring_release+0x3e/0x50 fs/io_uring.c:8420 __fput+0x285/0x920 fs/file_table.c:281 task_work_run+0xdd/0x190 kernel/task_work.c:168 get_signal+0xd90/0x1fb0 kernel/signal.c:2596 arch_do_signal_or_restart+0x2a8/0x1eb0 arch/x86/kernel/signal.c:811 handle_signal_work kernel/entry/common.c:147 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x124/0x200 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:302 __do_fast_syscall_32+0x62/0x80 arch/x86/entry/common.c:138 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:160 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7fcd549 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f55c707c EFLAGS: 00000286 ORIG_RAX: 00000000000001a9 RAX: fffffffffffffff4 RBX: 0000000000000087 RCX: 00000000200002c0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000020000100 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000