------------[ cut here ]------------ WARNING: CPU: 0 PID: 15118 at kernel/events/core.c:3752 ctx_sched_in+0x12e/0x3ee kernel/events/core.c:3752 Modules linked in: CPU: 0 PID: 15118 Comm: syz-executor.0 Not tainted 5.12.0-rc8-syzkaller-00011-g18a3c5f7abfd #0 Hardware name: riscv-virtio,qemu (DT) epc : ctx_sched_in+0x12e/0x3ee kernel/events/core.c:3752 ra : ctx_sched_in+0x12e/0x3ee kernel/events/core.c:3752 epc : ffffffe00027a674 ra : ffffffe00027a674 sp : ffffffe023c47a50 gp : ffffffe0045883c0 tp : ffffffe00d73df00 t0 : 0000000000000000 t1 : 0000000000000001 t2 : 00000000000f4240 s0 : ffffffe023c47ac0 s1 : ffffffe005970c00 a0 : ffffffe066d5c118 a1 : 00000000000f0000 a2 : 0000000000000002 a3 : ffffffe00027a674 a4 : ffffffe00d73ef00 a5 : 0000000040000002 a6 : 0000000000f00000 a7 : ffffffe000281354 s2 : 0000000000000007 s3 : ffffffe005970d40 s4 : ffffffe00d73df00 s5 : 0000000000000002 s6 : ffffffe00458c0d0 s7 : ffffffe066d5bf70 s8 : 0000000000000007 s9 : ffffffe066d5c118 s10: ffffffe005970c00 s11: ffffffe005970c08 t3 : afa56c1c32c79200 t4 : ffffffc4044ef7b2 t5 : ffffffc4044ef7ba t6 : 0000000000040000 status: 0000000000000100 badaddr: 0000000000000000 cause: 0000000000000003 Call Trace: [] ctx_sched_in+0x12e/0x3ee kernel/events/core.c:3752 [] perf_event_sched_in+0x38/0x74 kernel/events/core.c:2680 [] perf_event_context_sched_in kernel/events/core.c:3817 [inline] [] __perf_event_task_sched_in+0x4ea/0x680 kernel/events/core.c:3860 [] perf_event_task_sched_in include/linux/perf_event.h:1210 [inline] [] finish_task_switch.isra.0+0x284/0x318 kernel/sched/core.c:4189 [] context_switch kernel/sched/core.c:4325 [inline] [] __schedule+0x484/0xe8c kernel/sched/core.c:5073 [] preempt_schedule_common+0x4e/0xde kernel/sched/core.c:5233 [] preempt_schedule+0x34/0x36 kernel/sched/core.c:5258 [] __raw_spin_unlock include/linux/spinlock_api_smp.h:152 [inline] [] _raw_spin_unlock+0x60/0x6a kernel/locking/spinlock.c:183 [] spin_unlock include/linux/spinlock.h:394 [inline] [] xa_store+0x42/0x54 lib/xarray.c:1576 [] io_uring_add_task_file+0x110/0x256 fs/io_uring.c:8875 [] io_uring_install_fd fs/io_uring.c:9448 [inline] [] io_uring_create fs/io_uring.c:9595 [inline] [] io_uring_setup+0xada/0x1c10 fs/io_uring.c:9632 [] __do_sys_io_uring_setup fs/io_uring.c:9638 [inline] [] sys_io_uring_setup+0x22/0x2e fs/io_uring.c:9635 [] ret_from_syscall+0x0/0x2 irq event stamp: 324 hardirqs last enabled at (323): [] __slab_alloc.constprop.0+0xb0/0xce mm/slub.c:2791 hardirqs last disabled at (324): [] __schedule+0x50c/0xe8c kernel/sched/core.c:4972 softirqs last enabled at (296): [] __do_softirq+0x5e0/0x8c4 kernel/softirq.c:372 softirqs last disabled at (287): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (287): [] invoke_softirq kernel/softirq.c:228 [inline] softirqs last disabled at (287): [] __irq_exit_rcu kernel/softirq.c:422 [inline] softirqs last disabled at (287): [] irq_exit+0x1a0/0x1b6 kernel/softirq.c:446 ---[ end trace 94daa522d6aac77c ]---