From: Greg KH <gregkh@linuxfoundation.org>
To: David Guillen Fandos <david@davidgf.net>
Cc: linux-usb@vger.kernel.org
Subject: Re: System crash/lockup after plugging CDC ACM device
Date: Wed, 15 Jul 2020 12:50:34 +0200 [thread overview]
Message-ID: <20200715105034.GB2880893@kroah.com> (raw)
In-Reply-To: <867592c41350b09a0cb67e9a3924f8a2f758d79a.camel@davidgf.net>
On Wed, Jul 15, 2020 at 12:31:42PM +0200, David Guillen Fandos wrote:
> On Wed, 2020-07-15 at 11:30 +0200, Greg KH wrote:
> > On Wed, Jul 15, 2020 at 10:58:03AM +0200, David Guillen Fandos wrote:
> > > Hello linux-usb,
> > >
> > > I think I might have found a kernel bug related to the USB
> > > subsystem
> > > (cdc_acm perhaps).
> > >
> > > Context: I was playing around with a device I'm creating,
> > > essentially a
> > > USB quad modem device that exposes four modems to the host system.
> > > This
> > > device is still a prototype so there's a few bugs here and there,
> > > most
> > > likely in the USB descriptors and control requests.
> > >
> > > What happens: After plugging the device the system starts spitting
> > > warnings and BUGs and it locks up. Most of the time some CPUs get
> > > into
> > > some spinloop and never comes back (you can see it being detected
> > > by
> > > the watchdog after a few seconds). Generally after that the USB
> > > devices
> > > stop working completely and at some point the machine freezes
> > > completely. In a couple of ocasions I managed to see a bug in dmesg
> > > saying "unable to handle page fault for address XXX" and
> > > "Supervisor
> > > read access in kernel mode" "error code (0x0000) not present page".
> > > I
> > > could not get a trace for that one since the kernel died completely
> > > and
> > > my log files were truncated/lost.
> > >
> > > Since it is happening to my two machines (both Intel but rather
> > > different controllers, Sunrise Point-LP USB 3.0 vs 8 Series/C220)
> > > and
> > > with different kernel versions I suspect this might be a bug in the
> > > kernel.
> > >
> > > I have 4 logs that I collected, they are sort of long-ish, not sure
> > > how
> > > to best send them to the list.
> >
> > Send the crashes with the callback list, that should be quite small,
> > right? We don't need the full log.
> >
> > The first crash is the most important, the others can be from the
> > first
> > one and are not reliable.
> >
> > thanks,
> >
> > greg k-h
>
> Ok then, here comes one of the logs, I selected some bits only
>
> [ 147.302016] WARNING: CPU: 3 PID: 134 at kernel/workqueue.c:1473
> __queue_work+0x364/0x410
> [...]
> [ 147.302322] Call Trace:
> [ 147.302329] <IRQ>
> [ 147.302342] queue_work_on+0x36/0x40
> [ 147.302353] __usb_hcd_giveback_urb+0x9c/0x110
> [ 147.302362] usb_giveback_urb_bh+0xa0/0xf0
> [ 147.302372] tasklet_action_common.constprop.0+0x66/0x100
> [ 147.302382] __do_softirq+0xe9/0x2dc
> [ 147.302391] irq_exit+0xcf/0x110
> [ 147.302397] do_IRQ+0x55/0xe0
> [ 147.302408] common_interrupt+0xf/0xf
> [ 147.302413] </IRQ>
> [...]
> [ 184.771172] watchdog: BUG: soft lockup - CPU#3 stuck for 23s!
> [kworker/3:2:134]
That was the first message?
Ok, we need some more logs, how about the 30 lines right before the
above?
And what kernel version are you using?
thanks,
greg k-h
next prev parent reply other threads:[~2020-07-15 10:50 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-15 8:58 System crash/lockup after plugging CDC ACM device David Guillen Fandos
2020-07-15 9:30 ` Greg KH
2020-07-15 10:31 ` David Guillen Fandos
2020-07-15 10:50 ` Greg KH [this message]
2020-07-15 10:57 ` David Guillen Fandos
2020-07-15 11:12 ` Greg KH
2020-07-15 11:20 ` David Guillen Fandos
2020-07-15 12:24 ` Greg KH
2020-07-15 17:03 ` David Guillen Fandos
2020-07-15 20:39 ` Daniele Palmas
2020-07-16 14:30 ` David Guillen Fandos
2020-07-19 23:36 ` David Guillen Fandos
2020-07-20 1:21 ` Alan Stern
2020-07-20 16:55 ` Dan Williams
2020-07-20 20:39 ` David Guillen Fandos
2020-07-21 8:26 ` Greg KH
2020-07-22 14:41 ` David Guillen Fandos
2020-07-22 14:57 ` Dan Williams
2020-07-21 8:01 ` Oliver Neukum
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=20200715105034.GB2880893@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=david@davidgf.net \
--cc=linux-usb@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).