================================================================== BUG: KCSAN: data-race in __percpu_ref_switch_mode / percpu_ref_switch_to_atomic_rcu write to 0xffff88811da96090 of 8 bytes by interrupt on cpu 0: percpu_ref_call_confirm_rcu lib/percpu-refcount.c:156 [inline] percpu_ref_switch_to_atomic_rcu+0x188/0x360 lib/percpu-refcount.c:205 rcu_do_batch kernel/rcu/tree.c:2550 [inline] rcu_core+0xb95/0xd50 kernel/rcu/tree.c:2785 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2798 __do_softirq+0x12c/0x26e kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x9a/0xb0 kernel/softirq.c:636 sysvec_apic_timer_interrupt+0x69/0x80 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 console_unlock+0x8e8/0xb30 kernel/printk/printk.c:2646 vcs_open+0x84/0x90 drivers/tty/vt/vc_screen.c:759 chrdev_open+0x39c/0x420 fs/char_dev.c:414 do_dentry_open+0x529/0x850 fs/open.c:826 vfs_open+0x43/0x50 fs/open.c:949 do_open fs/namei.c:3374 [inline] path_openat+0x1787/0x1f20 fs/namei.c:3507 do_filp_open+0xe9/0x200 fs/namei.c:3534 do_sys_openat2+0xa3/0x250 fs/open.c:1204 do_sys_open fs/open.c:1220 [inline] __do_sys_openat fs/open.c:1236 [inline] __se_sys_openat fs/open.c:1231 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1231 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff88811da96090 of 8 bytes by task 8726 on cpu 1: __percpu_ref_switch_mode+0xe6/0x3b0 lib/percpu-refcount.c:275 percpu_ref_resurrect+0xc2/0x110 lib/percpu-refcount.c:473 io_refs_resurrect fs/io_uring.c:1116 [inline] __io_uring_register fs/io_uring.c:10116 [inline] __do_sys_io_uring_register+0xd27/0x1ea0 fs/io_uring.c:10248 __se_sys_io_uring_register fs/io_uring.c:10228 [inline] __x64_sys_io_uring_register+0x4f/0x60 fs/io_uring.c:10228 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0xffffffff818aca20 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 8726 Comm: syz-executor.3 Not tainted 5.14.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================