------------[ cut here ]------------ WARNING: CPU: 0 PID: 10095 at kernel/events/core.c:3752 ctx_sched_in+0x12e/0x3ee kernel/events/core.c:3752 Modules linked in: CPU: 0 PID: 10095 Comm: syz-executor.1 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 : ffffffe00b4af900 gp : ffffffe0045883c0 tp : ffffffe009afdf00 t0 : 0000000000000000 t1 : 0000000000000001 t2 : 0000003fffa4f1d7 s0 : ffffffe00b4af970 s1 : ffffffe00df06400 a0 : ffffffe066d5c118 a1 : 00000000000f0000 a2 : 0000000000000002 a3 : ffffffe00027a674 a4 : ffffffe009afef00 a5 : 0000000040000002 a6 : 0000000000f00000 a7 : ffffffe000281354 s2 : 0000000000000007 s3 : ffffffe00df06540 s4 : ffffffe009afdf00 s5 : 0000000000000002 s6 : ffffffe00458c0d0 s7 : ffffffe066d5bf70 s8 : 0000000000000007 s9 : ffffffe066d5c118 s10: ffffffe00df06400 s11: ffffffe00df06408 t3 : fb9364d60b335600 t4 : 00000000000007d0 t5 : ffffffc402871f29 t6 : 0000000000000007 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 [] schedule+0x64/0x166 kernel/sched/core.c:5152 [] freezable_schedule include/linux/freezer.h:172 [inline] [] futex_wait_queue_me+0x14c/0x23a kernel/futex.c:2606 [] futex_wait+0x122/0x2c2 kernel/futex.c:2708 [] do_futex+0xa0/0xe62 kernel/futex.c:3734 [] __do_sys_futex kernel/futex.c:3797 [inline] [] sys_futex+0x1c2/0x280 kernel/futex.c:3763 [] ret_from_syscall+0x0/0x2 irq event stamp: 102 hardirqs last enabled at (101): [] restore_all+0x12/0x6e hardirqs last disabled at (102): [] __schedule+0x50c/0xe8c kernel/sched/core.c:4972 softirqs last enabled at (50): [] __do_softirq+0x5e0/0x8c4 kernel/softirq.c:372 softirqs last disabled at (33): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (33): [] invoke_softirq kernel/softirq.c:228 [inline] softirqs last disabled at (33): [] __irq_exit_rcu kernel/softirq.c:422 [inline] softirqs last disabled at (33): [] irq_exit+0x1a0/0x1b6 kernel/softirq.c:446 ---[ end trace 9dba00c900055155 ]---