------------[ cut here ]------------ WARNING: CPU: 0 PID: 15512 at kernel/events/core.c:3752 ctx_sched_in+0x12e/0x3ee kernel/events/core.c:3752 Modules linked in: CPU: 0 PID: 15512 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 : ffffffe029b8f630 gp : ffffffe0045883c0 tp : ffffffe008a0af80 t0 : 0000000000000000 t1 : 0000000000000001 t2 : 00000000000f4240 s0 : ffffffe029b8f6a0 s1 : ffffffe026fd1000 a0 : ffffffe066d59fa8 a1 : 00000000000f0000 a2 : 0000000000000002 a3 : ffffffe00027a674 a4 : ffffffe008a0bf80 a5 : 0000000040000000 a6 : 0000000000f00000 a7 : ffffffe000281354 s2 : 0000000000000007 s3 : ffffffe026fd1140 s4 : ffffffe008a0af80 s5 : 0000000000000002 s6 : ffffffe00458c0d0 s7 : ffffffe066d59e00 s8 : 0000000000000007 s9 : ffffffe066d59fa8 s10: ffffffe026fd1000 s11: ffffffe026fd1008 t3 : 74784923d467ff00 t4 : 0000000000000040 t5 : ffffffc40528c400 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 [] put_cpu_partial+0x20a/0x24c mm/slub.c:2429 [] __slab_free+0x2de/0x3fa mm/slub.c:3055 [] do_slab_free mm/slub.c:3149 [inline] [] ___cache_free+0x3c8/0x3dc mm/slub.c:3168 [] qlink_free mm/kasan/quarantine.c:146 [inline] [] qlist_free_all+0x56/0xac mm/kasan/quarantine.c:165 [] kasan_quarantine_reduce+0x14c/0x1c8 mm/kasan/quarantine.c:272 [] __kasan_slab_alloc+0x60/0x62 mm/kasan/common.c:437 [] kasan_slab_alloc include/linux/kasan.h:223 [inline] [] slab_post_alloc_hook mm/slab.h:516 [inline] [] slab_alloc_node mm/slub.c:2907 [inline] [] slab_alloc mm/slub.c:2915 [inline] [] kmem_cache_alloc+0x168/0x3ca mm/slub.c:2920 [] kmem_cache_zalloc include/linux/slab.h:674 [inline] [] taskstats_tgid_alloc kernel/taskstats.c:561 [inline] [] taskstats_exit+0x3ce/0x5fe kernel/taskstats.c:600 [] do_exit+0x3b2/0x1846 kernel/exit.c:810 [] do_group_exit+0xa0/0x198 kernel/exit.c:922 [] get_signal+0x31e/0x14ba kernel/signal.c:2781 [] do_signal arch/riscv/kernel/signal.c:271 [inline] [] do_notify_resume+0xa8/0x930 arch/riscv/kernel/signal.c:317 [] ret_from_exception+0x0/0x14 irq event stamp: 3240 hardirqs last enabled at (3239): [] restore_all+0x12/0x6e hardirqs last disabled at (3240): [] __schedule+0x50c/0xe8c kernel/sched/core.c:4972 softirqs last enabled at (3046): [] __do_softirq+0x5e0/0x8c4 kernel/softirq.c:372 softirqs last disabled at (3039): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (3039): [] invoke_softirq kernel/softirq.c:228 [inline] softirqs last disabled at (3039): [] __irq_exit_rcu kernel/softirq.c:422 [inline] softirqs last disabled at (3039): [] irq_exit+0x1a0/0x1b6 kernel/softirq.c:446 ---[ end trace 05d6faaaac703be4 ]--- ------------[ cut here ]------------ WARNING: CPU: 1 PID: 15512 at kernel/events/core.c:3210 ctx_sched_out+0x312/0x548 kernel/events/core.c:3210 Modules linked in: CPU: 1 PID: 15512 Comm: syz-executor.1 Tainted: G W 5.12.0-rc8-syzkaller-00011-g18a3c5f7abfd #0 Hardware name: riscv-virtio,qemu (DT) epc : ctx_sched_out+0x312/0x548 kernel/events/core.c:3210 ra : ctx_sched_out+0x312/0x548 kernel/events/core.c:3210 epc : ffffffe00027ca5e ra : ffffffe00027ca5e sp : ffffffe029b8fb20 gp : ffffffe0045883c0 tp : ffffffe008a0af80 t0 : ffffffc400adff15 t1 : 000000002dcc4b85 t2 : 0000000000989680 s0 : ffffffe029b8fb80 s1 : ffffffe026fd1000 a0 : ffffffe066d76fa8 a1 : 00000000000f0000 a2 : 0000000000000002 a3 : ffffffe00027ca5e a4 : ffffffe008a0bf80 a5 : 0000000000000000 a6 : 0000000000f00000 a7 : ffffffe029b8f90c s2 : ffffffe066d76e00 s3 : 0000000000000003 s4 : 0000000000000000 s5 : 0000000000000000 s6 : ffffffe026fd1140 s7 : 0000000000000000 s8 : ffffffe007eeba00 s9 : 00000000000ea000 s10: ffffffe008a0af80 s11: ffffffe029b8fe30 t3 : 0000000054d80000 t4 : ffffffc405371f32 t5 : ffffffc405371f37 t6 : 0000000000040000 status: 0000000000000100 badaddr: 0000000000000000 cause: 0000000000000003 Call Trace: [] ctx_sched_out+0x312/0x548 kernel/events/core.c:3210 [] task_ctx_sched_out+0x44/0x60 kernel/events/core.c:2671 [] perf_event_exit_task_context kernel/events/core.c:12483 [inline] [] perf_event_exit_task+0x214/0x708 kernel/events/core.c:12541 [] do_exit+0x77a/0x1846 kernel/exit.c:834 [] do_group_exit+0xa0/0x198 kernel/exit.c:922 [] get_signal+0x31e/0x14ba kernel/signal.c:2781 [] do_signal arch/riscv/kernel/signal.c:271 [inline] [] do_notify_resume+0xa8/0x930 arch/riscv/kernel/signal.c:317 [] ret_from_exception+0x0/0x14 irq event stamp: 3240 hardirqs last enabled at (3239): [] restore_all+0x12/0x6e hardirqs last disabled at (3240): [] __schedule+0x50c/0xe8c kernel/sched/core.c:4972 softirqs last enabled at (3046): [] __do_softirq+0x5e0/0x8c4 kernel/softirq.c:372 softirqs last disabled at (3039): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (3039): [] invoke_softirq kernel/softirq.c:228 [inline] softirqs last disabled at (3039): [] __irq_exit_rcu kernel/softirq.c:422 [inline] softirqs last disabled at (3039): [] irq_exit+0x1a0/0x1b6 kernel/softirq.c:446 ---[ end trace 05d6faaaac703be7 ]---