------------[ cut here ]------------ percpu_ref_kill_and_confirm called more than once on io_ring_ctx_ref_free! WARNING: CPU: 0 PID: 10328 at lib/percpu-refcount.c:382 percpu_ref_kill_and_confirm+0x169/0x1d0 lib/percpu-refcount.c:382 Modules linked in: CPU: 0 PID: 10328 Comm: syz-executor.0 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+0x169/0x1d0 lib/percpu-refcount.c:382 Code: 5d 08 48 8d 7b 08 48 89 fa 48 c1 ea 03 80 3c 02 00 75 68 48 8b 53 08 48 c7 c6 80 25 bf 89 48 c7 c7 a0 24 bf 89 e8 85 98 09 05 <0f> 0b 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03 80 3c 02 RSP: 0018:ffffc9000b7d7a88 EFLAGS: 00010082 RAX: 0000000000000000 RBX: ffff888018d07780 RCX: 0000000000000000 RDX: ffff88803c4b0000 RSI: ffffffff815b8f65 RDI: fffff520016faf43 RBP: ffff88802ff2d000 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815b73bb R11: 0000000000000000 R12: 0000000000000293 R13: 0000000000000000 R14: 0000000000000002 R15: ffff888030ef8758 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000401f10 CR3: 000000000b48e000 CR4: 00000000001506f0 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:8649 io_uring_release+0x3e/0x50 fs/io_uring.c:8687 __fput+0x283/0x920 fs/file_table.c:280 task_work_run+0xdd/0x190 kernel/task_work.c:140 exit_task_work include/linux/task_work.h:30 [inline] do_exit+0xb89/0x2a00 kernel/exit.c:823 do_group_exit+0x125/0x310 kernel/exit.c:920 get_signal+0x3e9/0x2160 kernel/signal.c:2770 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 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e149 Code: Unable to access opcode bytes at RIP 0x45e11f. RSP: 002b:00007fbc51b41be8 EFLAGS: 00000206 ORIG_RAX: 00000000000001a9 RAX: fffffffffffffff4 RBX: 00000000200002c0 RCX: 000000000045e149 RDX: 0000000020ee8000 RSI: 00000000200002c0 RDI: 0000000000000087 RBP: 000000000119bfd8 R08: 0000000020000100 R09: 0000000020000100 R10: 0000000020000040 R11: 0000000000000206 R12: 0000000020ee8000 R13: 0000000020ee7000 R14: 0000000020000100 R15: 0000000020000040