------------[ cut here ]------------ WARNING: CPU: 0 PID: 8156 at kernel/events/core.c:3752 ctx_sched_in+0x12e/0x3ee kernel/events/core.c:3752 Modules linked in: CPU: 0 PID: 8156 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 : ffffffe02652bb50 gp : ffffffe0045883c0 tp : ffffffe00b04af80 t0 : 0000000000000000 t1 : 0000000000000001 t2 : 00000000000f4240 s0 : ffffffe02652bbc0 s1 : ffffffe00b3f0000 a0 : ffffffe066d5c118 a1 : 00000000000f0000 a2 : 0000000000000002 a3 : ffffffe00027a674 a4 : ffffffe00b04bf80 a5 : 0000000040000002 a6 : 0000000000f00000 a7 : ffffffe000281354 s2 : 0000000000000007 s3 : ffffffe00b3f0140 s4 : ffffffe00b04af80 s5 : 0000000000000002 s6 : ffffffe00458c0d0 s7 : ffffffe066d5bf70 s8 : 0000000000000007 s9 : ffffffe066d5c118 s10: ffffffe00b3f0000 s11: ffffffe00b3f0008 t3 : d7047441e65dda00 t4 : ffffffc404297fb2 t5 : ffffffc404297fba 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_irq+0x4a/0x13e kernel/sched/core.c:5530 [] resume_kernel+0x16/0x18 irq event stamp: 1206 hardirqs last enabled at (1205): [] preempt_schedule_irq+0x40/0x13e kernel/sched/core.c:5529 hardirqs last disabled at (1206): [] __schedule+0x50c/0xe8c kernel/sched/core.c:4972 softirqs last enabled at (1126): [] __do_softirq+0x5e0/0x8c4 kernel/softirq.c:372 softirqs last disabled at (1121): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (1121): [] invoke_softirq kernel/softirq.c:228 [inline] softirqs last disabled at (1121): [] __irq_exit_rcu kernel/softirq.c:422 [inline] softirqs last disabled at (1121): [] irq_exit+0x1a0/0x1b6 kernel/softirq.c:446 ---[ end trace 4cfcc6770f7f96ce ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8156 at kernel/events/core.c:247 event_function+0x326/0x336 kernel/events/core.c:247 Modules linked in: CPU: 0 PID: 8156 Comm: syz-executor.0 Tainted: G W 5.12.0-rc8-syzkaller-00011-g18a3c5f7abfd #0 Hardware name: riscv-virtio,qemu (DT) epc : event_function+0x326/0x336 kernel/events/core.c:247 ra : event_function+0x326/0x336 kernel/events/core.c:247 epc : ffffffe00026e27e ra : ffffffe00026e27e sp : ffffffe02652b990 gp : ffffffe0045883c0 tp : ffffffe00b04af80 t0 : ffffffc40496e438 t1 : ffffffffba53d085 t2 : 0000003ffffaa1d7 s0 : ffffffe02652b9f0 s1 : ffffffe066d5bf70 a0 : 0000000000000000 a1 : 00000000000f0000 a2 : ffffffd010ada000 a3 : ffffffe00026e27e a4 : ffffffd010b1a8e8 a5 : 000000000000811d a6 : 0000000000f00000 a7 : ffffffe02652b8e0 s2 : ffffffe00b3f0800 s3 : ffffffe02652bb80 s4 : ffffffe00b3f0000 s5 : ffffffe021598000 s6 : ffffffe066d5bf78 s7 : 0000000000000007 s8 : 0000000000000000 s9 : ffffffe0098f8000 s10: 0000000000000000 s11: ffffffe00458c0d0 t3 : ffffffffd9d00000 t4 : ffffffc401119c70 t5 : ffffffc401119c71 t6 : ffffffe02652baf5 status: 0000000000000100 badaddr: 0000000000000000 cause: 0000000000000003 Call Trace: [] event_function+0x326/0x336 kernel/events/core.c:247 [] remote_function kernel/events/core.c:91 [inline] [] remote_function+0xa8/0xc0 kernel/events/core.c:71 [] generic_exec_single+0x1a6/0x212 kernel/smp.c:293 [] smp_call_function_single+0x134/0x2ba kernel/smp.c:513 [] task_function_call+0x90/0xee kernel/events/core.c:119 [] event_function_call+0xfe/0x200 kernel/events/core.c:287 [] _perf_event_disable+0x6a/0x8c kernel/events/core.c:2436 [] perf_event_for_each_child+0x52/0xb0 kernel/events/core.c:5364 [] _perf_ioctl+0x31e/0x1372 kernel/events/core.c:5580 [] perf_ioctl+0x5a/0x84 kernel/events/core.c:5597 [] vfs_ioctl fs/ioctl.c:48 [inline] [] __do_sys_ioctl fs/ioctl.c:753 [inline] [] sys_ioctl+0x5c2/0xd56 fs/ioctl.c:739 [] ret_from_syscall+0x0/0x2 irq event stamp: 1206 hardirqs last enabled at (1205): [] preempt_schedule_irq+0x40/0x13e kernel/sched/core.c:5529 hardirqs last disabled at (1206): [] __schedule+0x50c/0xe8c kernel/sched/core.c:4972 softirqs last enabled at (1126): [] __do_softirq+0x5e0/0x8c4 kernel/softirq.c:372 softirqs last disabled at (1121): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (1121): [] invoke_softirq kernel/softirq.c:228 [inline] softirqs last disabled at (1121): [] __irq_exit_rcu kernel/softirq.c:422 [inline] softirqs last disabled at (1121): [] irq_exit+0x1a0/0x1b6 kernel/softirq.c:446 ---[ end trace 4cfcc6770f7f96cf ]---