From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16754C433B4 for ; Fri, 16 Apr 2021 06:35:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E3AC26117A for ; Fri, 16 Apr 2021 06:35:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239089AbhDPGfg (ORCPT ); Fri, 16 Apr 2021 02:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233959AbhDPGff (ORCPT ); Fri, 16 Apr 2021 02:35:35 -0400 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33BC1C061574 for ; Thu, 15 Apr 2021 23:35:11 -0700 (PDT) Received: by mail-qt1-x82c.google.com with SMTP id d6so1820989qtx.13 for ; Thu, 15 Apr 2021 23:35:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wzYhl/kLkuf2zoQjIh+L1Ak/Vs4OYCeoB4+BeUIpZMg=; b=qqDG00BKayubR3jZRy9vUxctP7f1/6Xs7Mwn4Moa8MAym9s/UNJEKSo66v40rBPeUN qITQPjAFEySnqz1RKICORLFChzXx2UTf04WtilTLxtr2vzjkB9GDKNLUdicMSKF6zno6 OJka/p6I/0ihC0PgqoNKeCLBr50Yry196xMgvDNTOQ4aKuLABftfK4Y9b4qgW1DTVUNP F1DmLNL9OOF9aVLvOTcUbPMHXpJTj/BZ2jXECiJIVLdKxMV3DZFcQxI+wswhCGiHWYWm QG4a0F/Lpqlv4THHfjYVEhKxJbzq+Fw037SLDUx9KFLuY7FtDJOjCBCG8xt5XxzEuQEB /XlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wzYhl/kLkuf2zoQjIh+L1Ak/Vs4OYCeoB4+BeUIpZMg=; b=i133YndfHkcYjA0i8ozEqZWORmx7ovWU1fEAKWjE/PSqBq4JJgHbfxAVlcnID63EZ/ c0+g+bnnzbF4cK7doxt0SjyUC7Q1ghEUajqdmiDDYLhjCfOjzshaVGiCA5wrcVR/es7W dMuK8QRvRdJ+o+W5R7Ghi1UBoTvM64vw6atgNfV+PD5MpoS6awfQirb8ooSNLFGzyTNY Vw3rorxU+QMu7RKvZQHcR6XnGo4Gl0Q+9ic6qpK+kztojJANSwC/y2jvO/EvuvSkhLZ8 rh2Z8Lclm4KPPLrDHRx6GwMNrS7ehvPxwm+DmjWxasgZ2jAsvy7hOduqHjxdZ5lIEoM2 Fn7A== X-Gm-Message-State: AOAM533NI577Z9ch1CoAYLG97YnI1R0PRvT5BbCXoVcl/6LbY6wHV+4i ldnvRKnxUp7YXnRl5r7lIhKiy4NS7oYnlUJ4g4ysew== X-Google-Smtp-Source: ABdhPJyVx5xNy340fC0rFmYlCpPhUw7Mv8ysgS6HKbvdOl+hgrJk5iuXZPEemctGgyvCc9EsOjXG4Oh7+2H+KJJHuJc= X-Received: by 2002:ac8:768c:: with SMTP id g12mr6482816qtr.67.1618554910039; Thu, 15 Apr 2021 23:35:10 -0700 (PDT) MIME-Version: 1.0 References: <000000000000a5772005c00f8101@google.com> In-Reply-To: <000000000000a5772005c00f8101@google.com> From: Dmitry Vyukov Date: Fri, 16 Apr 2021 08:34:58 +0200 Message-ID: Subject: Re: [syzbot] WARNING in ctx_sched_in To: syzbot , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv Cc: Arnaldo Carvalho de Melo , Alexander Shishkin , andrii@kernel.org, Alexei Starovoitov , bpf , Daniel Borkmann , John Fastabend , Jiri Olsa , Martin KaFai Lau , kpsingh@kernel.org, LKML , Mark Rutland , Ingo Molnar , Namhyung Kim , netdev , Peter Zijlstra , Song Liu , syzkaller-bugs , Yonghong Song Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Fri, Apr 16, 2021 at 6:35 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: 79c338ab riscv: keep interrupts disabled for BREAKPOINT ex.. > git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes > console output: https://syzkaller.appspot.com/x/log.txt?x=10fb93f9d00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=f8af20e245283c9a > dashboard link: https://syzkaller.appspot.com/bug?extid=50d41b514809f6f4f326 > userspace arch: riscv64 > > Unfortunately, I don't have any reproducer for this issue yet. > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+50d41b514809f6f4f326@syzkaller.appspotmail.com +riscv maintainers as this happens only on riscv64 > ------------[ cut here ]------------ > WARNING: CPU: 1 PID: 4475 at kernel/events/core.c:3752 ctx_sched_in+0x12e/0x3ee kernel/events/core.c:3752 > Modules linked in: > CPU: 1 PID: 4475 Comm: syz-executor.1 Not tainted 5.12.0-rc6-syzkaller-00183-g79c338ab575e #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 : ffffffe000279fe8 ra : ffffffe000279fe8 sp : ffffffe009e17680 > gp : ffffffe004588ad0 tp : ffffffe006398000 t0 : 0000000000000000 > t1 : 0000000000000001 t2 : 00000000000f4240 s0 : ffffffe009e176f0 > s1 : ffffffe0077edc00 a0 : ffffffe067d79118 a1 : 00000000000f0000 > a2 : 0000000000000002 a3 : ffffffe000279fe8 a4 : ffffffe006399000 > a5 : 0000000040000000 a6 : 0000000000f00000 a7 : ffffffe000280cc8 > s2 : 0000000000000007 s3 : ffffffe0077edd40 s4 : ffffffe006398000 > s5 : 0000000000000002 s6 : ffffffe00458c0d0 s7 : ffffffe067d78f70 > s8 : 0000000000000007 s9 : ffffffe067d79118 s10: ffffffe0077edc00 > s11: ffffffe0077edc08 t3 : e189d98bb4bfb900 t4 : ffffffc4042c47b2 > t5 : ffffffc4042c47ba 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_notrace+0x9c/0x19a kernel/sched/core.c:5312 > [] rcu_read_unlock_sched_notrace include/linux/rcupdate.h:794 [inline] > [] trace_lock_acquire+0xf0/0x20e include/trace/events/lock.h:13 > [] lock_acquire+0x28/0x5a kernel/locking/lockdep.c:5481 > [] rcu_lock_acquire include/linux/rcupdate.h:267 [inline] > [] rcu_read_lock include/linux/rcupdate.h:656 [inline] > [] percpu_ref_put_many.constprop.0+0x38/0x148 include/linux/percpu-refcount.h:317 > [] percpu_ref_put include/linux/percpu-refcount.h:338 [inline] > [] obj_cgroup_put include/linux/memcontrol.h:713 [inline] > [] memcg_slab_free_hook mm/slab.h:372 [inline] > [] memcg_slab_free_hook mm/slab.h:336 [inline] > [] do_slab_free mm/slub.c:3117 [inline] > [] ___cache_free+0x2bc/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 > > > --- > This report is generated by a bot. It may contain errors. > See https://goo.gl/tpsmEJ for more information about syzbot. > syzbot engineers can be reached at syzkaller@googlegroups.com. > > syzbot will keep track of this issue. See: > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > -- > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/000000000000a5772005c00f8101%40google.com.