From: Takashi Iwai <tiwai@suse.de>
To: Dmitry Vyukov <dvyukov@google.com>
Cc: alsa-devel@alsa-project.org, "Jaroslav Kysela" <perex@perex.cz>,
syzbot <syzbot+387f48da65cb522abfe8@syzkaller.appspotmail.com>,
"Frédéric Weisbecker" <fweisbec@gmail.com>,
syzkaller-bugs@googlegroups.com, "Ingo Molnar" <mingo@kernel.org>,
"Thomas Gleixner" <tglx@linutronix.de>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: INFO: rcu detected stall in memcpy
Date: Thu, 04 Jan 2018 15:17:23 +0100 [thread overview]
Message-ID: <s5hh8s1bte4.wl-tiwai@suse.de> (raw)
In-Reply-To: <CACT4Y+Zqm=kYx5weFtDROs1u8vNqW8oy-Dt05tsq1xZ=KLUFUw@mail.gmail.com>
On Thu, 04 Jan 2018 15:01:06 +0100,
Dmitry Vyukov wrote:
>
> On Thu, Jan 4, 2018 at 1:57 PM, Takashi Iwai <tiwai@suse.de> wrote:
> > On Thu, 04 Jan 2018 13:08:45 +0100,
> > Dmitry Vyukov wrote:
> >>
> >> On Thu, Jan 4, 2018 at 1:03 PM, syzbot
> >> <syzbot+387f48da65cb522abfe8@syzkaller.appspotmail.com> wrote:
> >> > Hello,
> >> >
> >> > syzkaller hit the following crash on
> >> > 30a7acd573899fd8b8ac39236eff6468b195ac7d
> >> > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master
> >> > compiler: gcc (GCC) 7.1.1 20170620
> >> > .config is attached
> >> > Raw console output is attached.
> >> > Unfortunately, I don't have any reproducer for this bug yet.
> >> >
> >> >
> >> > IMPORTANT: if you fix the bug, please add the following tag to the commit:
> >> > Reported-by: syzbot+387f48da65cb522abfe8@syzkaller.appspotmail.com
> >> > It will help syzbot understand when the bug is fixed. See footer for
> >> > details.
> >> > If you forward the report, please keep this part and the footer.
> >>
> >> This looks ALSA-related. +ALSA maintainers.
> >
> > Not sure exactly what triggers it. It's the simple memcpy(), and I
> > don't know where RCU is involved in that code path.
> >
> > BTW, other two suspicious RCU usage reports are actually stopped at
> > the second WARN_ON() after the RCU message, and the second WARN_ON()
> > is independent from RCU; it's the known spurious WARN_ON() and was
> > already removed in the sound git tree.
>
>
> Hi Takashi,
>
> Another similar one just popped up:
>
> https://groups.google.com/forum/#!topic/syzkaller-bugs/X3d6-PIrJM0
>
> This looks like mulaw_decode enters an infinite loop, or at least
> doing very large amount of computations without a resched, e.g.
> (uint64_t)-1 number of iterations of something along these lines.
OK, that makes sense.
My rough guess is that it's the misconfigured aloop device by
concurrent setup. The aloop device allows to restrict the parameters
of the other side of the connection, and something bad may happen
there if both sides are updated concurrently.
We've seen segfault by memset() at loopback_preapre() in
sound/drivers/aloop.c by syzbot+3902b5220e8ca27889ca, too, which
indicates also the wrongly setup parameters that overflows the
allocated buffer.
thanks,
Takashi
next prev parent reply other threads:[~2018-01-04 14:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <001a113f711a23fe310561f21d1a@google.com>
2018-01-04 12:08 ` Dmitry Vyukov
2018-01-04 12:57 ` Takashi Iwai
2018-01-04 14:01 ` Dmitry Vyukov
2018-01-04 14:17 ` Takashi Iwai [this message]
2018-01-04 17:03 ` Takashi Iwai
2018-01-07 11:30 ` Dmitry Vyukov
2018-01-08 13:15 ` Takashi Iwai
2018-02-14 15:05 ` Dmitry Vyukov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hh8s1bte4.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=dvyukov@google.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=perex@perex.cz \
--cc=syzbot+387f48da65cb522abfe8@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®