================================================================== BUG: KCSAN: data-race in io_sq_thread / percpu_ref_kill_and_confirm write to 0xffff888028dd1000 of 8 bytes by task 7052 on cpu 0: percpu_ref_kill_and_confirm+0x75/0x190 lib/percpu-refcount.c:386 percpu_ref_kill include/linux/percpu-refcount.h:149 [inline] io_ring_ctx_wait_and_kill+0x31/0x370 fs/io_uring.c:8382 io_uring_release+0x3e/0x50 fs/io_uring.c:8420 __fput+0x24b/0x4e0 fs/file_table.c:280 ____fput+0x11/0x20 fs/file_table.c:313 task_work_run+0x8e/0x110 kernel/task_work.c:168 exit_task_work include/linux/task_work.h:30 [inline] do_exit+0x43d/0x1630 kernel/exit.c:823 do_group_exit+0xc8/0x170 kernel/exit.c:920 get_signal+0xf9b/0x1510 kernel/signal.c:2792 arch_do_signal_or_restart+0x2a/0x270 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+0x109/0x1a0 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff888028dd1000 of 8 bytes by task 7053 on cpu 1: percpu_ref_is_dying include/linux/percpu-refcount.h:352 [inline] __io_sq_thread fs/io_uring.c:6701 [inline] io_sq_thread+0x50f/0xcd0 fs/io_uring.c:6794 kthread+0x1fd/0x220 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 7053 Comm: io_uring-sq Not tainted 5.10.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================