Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp727478pxj; Tue, 18 May 2021 12:45:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbEdzqiWwF3qt2h0eHu4VroTRMbyi3w/2BGmqPkkPEv/SJK2eCXrrvE5NqdRlPG3yvzZyA X-Received: by 2002:a17:906:a017:: with SMTP id p23mr7903154ejy.460.1621367143599; Tue, 18 May 2021 12:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621367143; cv=none; d=google.com; s=arc-20160816; b=MSPvUrsKyqkBLQ+v3rxffHoD00+bBja0g2TqebQZ1/0zVJloCfIVB9JBIHXkohsJf0 MOKhm08OkaQHzLD2pGq49emXB1+ULTMJu/ztK/G7mXSJqEliGnB+i0v2rHpyOfeJ9hq3 uawaj7KTm3hzcpT0G7h1MLHtlqPhOilVXJKfFl1Tma2TPM7LIjD5SoX/b23lkd0AU6bt y8bhjacOGu/gnc7/nDvA4ayhJKUGEVi48cG96yz8cH1Jl3x7j1U0eoXjWMson/b0qTu7 pVxL9SuZrkbdkY2s6SFuZ0NSM8Tkg6BUthIX4G6Bq9+NKK+Nf+42AlZzdWtqzFNVVt/j sGFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rs8wKGuAJirIeR8pB24GlnuxBoLLyGIXXFMHW4+hs1w=; b=qHH1dxBFlfMbRV5dboIuZnpU5puQke2mqnEB7Bf4Id7xX8dUMxZl/8ZazxlYCx10b1 fvBYAsaLrhsbrGnG72JDMiJ4/KMhEJKny4s6lqXTtNg8Ug3Q4hgsHmXb8hGYpyJETQCC //+hv+CJ+xdj6ttwsasMoxB4IrkXr4/T59YU1ESscGCe3TCAWTGc8jJK+PKPK7kLRurg Rfy9qaaCiSBIU1je/EUZn27U68QFdgf/2s1jHfjP5RuGhfLK0mo4PaHBfHBf7yUCeNKE CpVMjm188zBq/ha6IRqTKfUSNzM4zOWLxUhfG+Gj8sSISQgXPeumnAc5u/5HX5osbF0j XAlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cAikG+5a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si4431855edo.215.2021.05.18.12.45.17; Tue, 18 May 2021 12:45:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cAikG+5a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239918AbhEQQjZ (ORCPT + 99 others); Mon, 17 May 2021 12:39:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243276AbhEQQjG (ORCPT ); Mon, 17 May 2021 12:39:06 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FA65C0612FD for ; Mon, 17 May 2021 08:42:53 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id m13so5115462qtk.13 for ; Mon, 17 May 2021 08:42:53 -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=rs8wKGuAJirIeR8pB24GlnuxBoLLyGIXXFMHW4+hs1w=; b=cAikG+5a+4iynx/4oTqeQfZM8HsfstVIlIpcGDnVS+fZKQ4YAVJJ97MSosr425ij9Y ya0pvC4B+sR2TNN0E5G4RKCO4azawWGhbJ1OPpsV4NLVPeXzMv+cTEt6FqiMWKiFzPOQ XWfZ9fq+c9yx432zbo136TkkBpCYU1GZkw0J+5MpWa4OXai1udsUHqtVbkSMkNmWwaHb tbpKFE+Gkqgkf9xBIAIt05teAOFZhwO8x2VgQZ5SH0mM52qD6I8zs0sTnkHy/M9F1YZ2 lw4yRHS4EqEUwyiooEFBCSnXvBDGdAwQWltG5hDGcS0Vkt3ScFvXx0lGzOWkmfGld0BK /blQ== 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=rs8wKGuAJirIeR8pB24GlnuxBoLLyGIXXFMHW4+hs1w=; b=mByFJZWDLabPcQXK9P7rwEYCsWJwExRjZH8LyIxS9oYM6L9M0CpgJOs6ScPXX+roV7 nCvfoqRi2Bd6Kfv2cygmfgIow9eOt48EjtEMYq5h9iSn2DFs8gaOHrVxED2xsqdssej+ GtKRe5umgBbqv/u2uuQfAZshDJZtrIYOU+lpgBvO+8w9wxY0H8c+JeoxFY3+uCing2o6 4GzZKccLCDbdM4Q+QquyiMlWMRqnqGeJI4ku3dhW7vEIQwEpvSV1lAMlQ0vdMZ7gPToW u+9G8Sj3dSwRmLTBnPBsnTj7hfg12fNf4UpkcIkf6kjSfiZj1Oc3c2RBqhUiUP7g5oyV 79VA== X-Gm-Message-State: AOAM530mh2ywf5g9dca+Z2nI/DVJRWDE8gu2SnXZ1pTUAoBMimj3ejEg f+PFj1MxpQAWzVQS+T9hSOJOiN7Wu+AqMgDsgLCsJQ== X-Received: by 2002:ac8:51d6:: with SMTP id d22mr110921qtn.67.1621266172503; Mon, 17 May 2021 08:42:52 -0700 (PDT) MIME-Version: 1.0 References: <000000000000e65b5d05c287fddc@google.com> In-Reply-To: <000000000000e65b5d05c287fddc@google.com> From: Dmitry Vyukov Date: Mon, 17 May 2021 17:42:41 +0200 Message-ID: Subject: Re: [syzbot] WARNING in task_ctx_sched_out To: syzbot , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv Cc: Arnaldo Carvalho de Melo , Alexander Shishkin , Andrii Nakryiko , Alexei Starovoitov , bpf , Daniel Borkmann , John Fastabend , Jiri Olsa , Martin KaFai Lau , KP Singh , 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: linux-kernel@vger.kernel.org On Mon, May 17, 2021 at 5:10 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: 18a3c5f7 Merge tag 'for_linus' of git://git.kernel.org/pub.. > 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=1569c027d00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=b8ac1fe5995f69d7 > dashboard link: https://syzkaller.appspot.com/bug?extid=30189c98403be62bc05a > 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+30189c98403be62bc05a@syzkaller.appspotmail.com Another perf warning on riscv64: WARNING in __perf_install_in_context https://syzkaller.appspot.com/bug?id=ca4bae83abaaa2be86e4dc7925343fae9abb6056 https://groups.google.com/g/syzkaller-bugs/c/sc87fhg7Vhg/m/7_cuuqu9BAAJ > ------------[ cut here ]------------ > WARNING: CPU: 0 PID: 8711 at kernel/events/core.c:2668 task_ctx_sched_out+0x5c/0x60 kernel/events/core.c:2668 > Modules linked in: > CPU: 0 PID: 8711 Comm: syz-executor.0 Not tainted 5.12.0-rc8-syzkaller-00011-g18a3c5f7abfd #0 > Hardware name: riscv-virtio,qemu (DT) > epc : task_ctx_sched_out+0x5c/0x60 kernel/events/core.c:2668 > ra : task_ctx_sched_out+0x5c/0x60 kernel/events/core.c:2668 > epc : ffffffe00027ccf0 ra : ffffffe00027ccf0 sp : ffffffe0067abb80 > gp : ffffffe0045883c0 tp : ffffffe00db797c0 t0 : ffffffc400b23834 > t1 : 0000000000000001 t2 : 00000000000f4240 s0 : ffffffe0067abbb0 > s1 : ffffffe066d59e00 a0 : ffffffe066d59fa8 a1 : 00000000000f0000 > a2 : 0000000000000002 a3 : ffffffe00027ccf0 a4 : ffffffe00db7a7c0 > a5 : 0000000000000000 a6 : 0000000000f00000 a7 : ffffffe00028fc4c > s2 : ffffffe00877e400 s3 : 0000000000000003 s4 : ffffffe00df38800 > s5 : ffffffe00db7ab48 s6 : ffffffe00db7aab8 s7 : ffffffe00877e408 > s8 : 0000000000000000 s9 : 0000000000000025 s10: ffffffe00db797c0 > s11: ffffffe0067abe30 t3 : 1ef9635ec2383300 t4 : ffffffc404c957b2 > t5 : ffffffc404c957ba t6 : 0000000000040000 > status: 0000000000000100 badaddr: 0000000000000000 cause: 0000000000000003 > Call Trace: > [] task_ctx_sched_out+0x5c/0x60 kernel/events/core.c:2668 > [] 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: 3704 > hardirqs last enabled at (3703): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] > hardirqs last enabled at (3703): [] _raw_spin_unlock_irqrestore+0x68/0x98 kernel/locking/spinlock.c:191 > hardirqs last disabled at (3704): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:126 [inline] > hardirqs last disabled at (3704): [] _raw_spin_lock_irq+0x5c/0x5e kernel/locking/spinlock.c:167 > softirqs last enabled at (3672): [] __do_softirq+0x5e0/0x8c4 kernel/softirq.c:372 > softirqs last disabled at (3667): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] > softirqs last disabled at (3667): [] invoke_softirq kernel/softirq.c:228 [inline] > softirqs last disabled at (3667): [] __irq_exit_rcu kernel/softirq.c:422 [inline] > softirqs last disabled at (3667): [] irq_exit+0x1a0/0x1b6 kernel/softirq.c:446 > ---[ end trace 2de0fbf815e6ece8 ]--- > > > --- > 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/000000000000e65b5d05c287fddc%40google.com.