================================================================== BUG: KCSAN: data-race in io_sq_thread / percpu_ref_kill_and_confirm write to 0xffff88812bfaa800 of 8 bytes by task 29290 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_uring_register fs/io_uring.c:9611 [inline] __do_sys_io_uring_register+0x148/0x2ad0 fs/io_uring.c:9752 __se_sys_io_uring_register fs/io_uring.c:9734 [inline] __x64_sys_io_uring_register+0x4f/0x60 fs/io_uring.c:9734 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88812bfaa800 of 8 bytes by task 29294 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: 29294 Comm: io_uring-sq Not tainted 5.10.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 29294 Comm: io_uring-sq Not tainted 5.10.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x116/0x15d lib/dump_stack.c:118 panic+0x1e7/0x5fa kernel/panic.c:231 kcsan_report+0x67b/0x680 kernel/kcsan/report.c:634 kcsan_setup_watchpoint+0x46a/0x4d0 kernel/kcsan/core.c:568 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 Kernel Offset: disabled Rebooting in 86400 seconds..