NetBSD Problem Report #57443
From www@netbsd.org Sat May 27 18:04:34 2023
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id A17991A9239
for <gnats-bugs@gnats.NetBSD.org>; Sat, 27 May 2023 18:04:34 +0000 (UTC)
Message-Id: <20230527180433.4AEB31A9241@mollari.NetBSD.org>
Date: Sat, 27 May 2023 18:04:33 +0000 (UTC)
From: bmelo@protonmail.com
Reply-To: bmelo@protonmail.com
To: gnats-bugs@NetBSD.org
Subject: NetBSD reboots when plugging USB headset
X-Send-Pr-Version: www-1.0
>Number: 57443
>Category: kern
>Synopsis: NetBSD reboots when plugging USB headset
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 27 18:05:00 +0000 2023
>Last-Modified: Wed Sep 06 18:50:01 +0000 2023
>Originator: Bruno
>Release: 10.0_BETA
>Organization:
>Environment:
NetBSD 10.0_BETA GENERIC amd64
>Description:
NetBSD 10 crashes and reboots when I add my USB headset and try to play something to it. Probably caused by the latest commits in uaudio, commits not in 9.3 (works fine).
>How-To-Repeat:
Just plug the USB headset and play some audio to uaudio0
>Fix:
>Audit-Trail:
From: Taylor R Campbell <riastradh@NetBSD.org>
To: bmelo@protonmail.com
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
Date: Sat, 27 May 2023 18:50:35 +0000
When it reboots:
1. Does it save a core dump? Can you get dmesg or stack trace out of
the core dump?
# dmesg -N /var/crash/netbsd.<n> -M /var/crash/netbsd.<n>.core
# crash -N /var/crash/netbsd.<n> -M /var/crash/netbsd.<n>.core
2. If not, can you try just running dmesg and see if it gets the crash
from the previous boot?
From: Bruno Melo <bmelo@protonmail.com>
To: Taylor R Campbell <riastradh@NetBSD.org>
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
Date: Sat, 27 May 2023 19:15:29 +0000
There is no dump, but I can see the error in previous boot. It's the same a=
s kern/57255
uaudio0: pintr error: IOERROR
panic: kernel diagnostic assertion "xfer =3D=3D SIMPLEQ_FIRST(&pipe->up_que=
ue)" failed: file "/usr/src/sys/dev/usb/usbdi.c", line 1142
Sent from ProtonMail, Swiss-based encrypted email.
------- Original Message -------
Em s=C3=A1bado, 27 de maio de 2023 =C3=A0s 3:50 PM, Taylor R Campbell <rias=
tradh@NetBSD.org> escreveu:
> When it reboots:
>=20
> 1. Does it save a core dump? Can you get dmesg or stack trace out of
> the core dump?
>=20
> # dmesg -N /var/crash/netbsd.<n> -M /var/crash/netbsd.<n>.core
>=20
> # crash -N /var/crash/netbsd.<n> -M /var/crash/netbsd.<n>.core
>=20
>=20
> 2. If not, can you try just running dmesg and see if it gets the crash
> from the previous boot?
From: mlelstv@serpens.de (Michael van Elst)
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
Date: Sun, 28 May 2023 06:31:40 -0000 (UTC)
bmelo@protonmail.com (Bruno Melo) writes:
>The following reply was made to PR kern/57443; it has been noted by GNATS.
>From: Bruno Melo <bmelo@protonmail.com>
>To: Taylor R Campbell <riastradh@NetBSD.org>
>Cc: gnats-bugs@NetBSD.org
>Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
>Date: Sat, 27 May 2023 19:15:29 +0000
> There is no dump, but I can see the error in previous boot. It's the same a=
> s kern/57255
>
> uaudio0: pintr error: IOERROR
> panic: kernel diagnostic assertion "xfer =3D=3D SIMPLEQ_FIRST(&pipe->up_que=
> ue)" failed: file "/usr/src/sys/dev/usb/usbdi.c", line 1142
>
That looks like a known xhci bug.
Can you try:
http://ftp.netbsd.org/pub/NetBSD/misc/mlelstv/xhci.diff
if that makes a difference ?
From: Bruno Melo <bmelo@protonmail.com>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
Date: Mon, 29 May 2023 00:31:08 +0000
Hi Michael,
I confirm this patch works too!
Can you commit and pull to 10 please?
Thanks so much. Now only 2 bugs remaining to make NetBSD work softly on my =
PC.
Sent from ProtonMail, Swiss-based encrypted email.
------- Original Message -------
Em domingo, 28 de maio de 2023 =C3=A0s 3:35 AM, mlelstv@serpens.de <mlelstv=
@serpens.de> escreveu:
> The following reply was made to PR kern/57443; it has been noted by GNATS=
.
>=20
> From: mlelstv@serpens.de (Michael van Elst)
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
> Date: Sun, 28 May 2023 06:31:40 -0000 (UTC)
>=20
> bmelo@protonmail.com (Bruno Melo) writes:
>=20
> > The following reply was made to PR kern/57443; it has been noted by GNA=
TS.
>=20
> > From: Bruno Melo bmelo@protonmail.com
>=20
> > To: Taylor R Campbell riastradh@NetBSD.org
>=20
> > Cc: gnats-bugs@NetBSD.org
>=20
> > Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
>=20
> > Date: Sat, 27 May 2023 19:15:29 +0000
>=20
> > There is no dump, but I can see the error in previous boot. It's the sa=
me a=3D
>=20
> > s kern/57255
>=20
> > uaudio0: pintr error: IOERROR
>=20
> > panic: kernel diagnostic assertion "xfer =3D3D=3D3D SIMPLEQ_FIRST(&pipe=
->up_que=3D
>=20
> > ue)" failed: file "/usr/src/sys/dev/usb/usbdi.c", line 1142
>=20
>=20
> That looks like a known xhci bug.
>=20
> Can you try:
>=20
> http://ftp.netbsd.org/pub/NetBSD/misc/mlelstv/xhci.diff
>=20
> if that makes a difference ?
From: Bruno Melo <bmelo@protonmail.com>
To: gnats-bugs@netbsd.org, Michael van Elst <mlelstv@serpens.de>
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
Date: Mon, 12 Jun 2023 17:46:23 +0000
I confirm the patch works and I must to say the bug is present in previous =
releases too (8 and 9) and the patch is useful for 10 only.
Thanks.
Sent from ProtonMail, Swiss-based encrypted email.
------- Original Message -------
Em domingo, 28 de maio de 2023 =C3=A0s 9:31 PM, Bruno Melo <bmelo@protonmai=
l.com> escreveu:
> Hi Michael,
>=20
> I confirm this patch works too!
>=20
> Can you commit and pull to 10 please?
>=20
> Thanks so much. Now only 2 bugs remaining to make NetBSD work softly on m=
y PC.
>=20
>=20
>=20
> Sent from ProtonMail, Swiss-based encrypted email.
>=20
>=20
>=20
>=20
> ------- Original Message -------
> Em domingo, 28 de maio de 2023 =C3=A0s 3:35 AM, mlelstv@serpens.de mlelst=
v@serpens.de escreveu:
>=20
>=20
>=20
> > The following reply was made to PR kern/57443; it has been noted by GNA=
TS.
> >=20
> > From: mlelstv@serpens.de (Michael van Elst)
> > To: gnats-bugs@netbsd.org
> > Cc:
> > Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
> > Date: Sun, 28 May 2023 06:31:40 -0000 (UTC)
> >=20
> > bmelo@protonmail.com (Bruno Melo) writes:
> >=20
> > > The following reply was made to PR kern/57443; it has been noted by G=
NATS.
> >=20
> > > From: Bruno Melo bmelo@protonmail.com
> >=20
> > > To: Taylor R Campbell riastradh@NetBSD.org
> >=20
> > > Cc: gnats-bugs@NetBSD.org
> >=20
> > > Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
> >=20
> > > Date: Sat, 27 May 2023 19:15:29 +0000
> >=20
> > > There is no dump, but I can see the error in previous boot. It's the =
same a=3D
> >=20
> > > s kern/57255
> >=20
> > > uaudio0: pintr error: IOERROR
> >=20
> > > panic: kernel diagnostic assertion "xfer =3D3D=3D3D SIMPLEQ_FIRST(&pi=
pe->up_que=3D
> >=20
> > > ue)" failed: file "/usr/src/sys/dev/usb/usbdi.c", line 1142
> >=20
> > That looks like a known xhci bug.
> >=20
> > Can you try:
> >=20
> > http://ftp.netbsd.org/pub/NetBSD/misc/mlelstv/xhci.diff
> >=20
> > if that makes a difference ?
From: Bruno Melo <bmelo@protonmail.com>
To: gnats-bugs@netbsd.org, Michael van Elst <mlelstv@serpens.de>
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
Date: Mon, 03 Jul 2023 01:07:38 +0000
Hi Michael,
May this patch be pulled to 10?
Sent from ProtonMail, Swiss-based encrypted email.
------- Original Message -------
Em segunda-feira, 12 de junho de 2023 =C3=A0s 14:46, Bruno Melo <bmelo@prot=
onmail.com> escreveu:
> I confirm the patch works and I must to say the bug is present in previou=
s releases too (8 and 9) and the patch is useful for 10 only.
>=20
> Thanks.
>=20
> Sent from ProtonMail, Swiss-based encrypted email.
>=20
>=20
>=20
>=20
> ------- Original Message -------
> Em domingo, 28 de maio de 2023 =C3=A0s 9:31 PM, Bruno Melo bmelo@protonma=
il.com escreveu:
>=20
>=20
>=20
> > Hi Michael,
> >=20
> > I confirm this patch works too!
> >=20
> > Can you commit and pull to 10 please?
> >=20
> > Thanks so much. Now only 2 bugs remaining to make NetBSD work softly on=
my PC.
> >=20
> > Sent from ProtonMail, Swiss-based encrypted email.
> >=20
> > ------- Original Message -------
> > Em domingo, 28 de maio de 2023 =C3=A0s 3:35 AM, mlelstv@serpens.de mlel=
stv@serpens.de escreveu:
> >=20
> > > The following reply was made to PR kern/57443; it has been noted by G=
NATS.
> > >=20
> > > From: mlelstv@serpens.de (Michael van Elst)
> > > To: gnats-bugs@netbsd.org
> > > Cc:
> > > Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
> > > Date: Sun, 28 May 2023 06:31:40 -0000 (UTC)
> > >=20
> > > bmelo@protonmail.com (Bruno Melo) writes:
> > >=20
> > > > The following reply was made to PR kern/57443; it has been noted by=
GNATS.
> > >=20
> > > > From: Bruno Melo bmelo@protonmail.com
> > >=20
> > > > To: Taylor R Campbell riastradh@NetBSD.org
> > >=20
> > > > Cc: gnats-bugs@NetBSD.org
> > >=20
> > > > Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
> > >=20
> > > > Date: Sat, 27 May 2023 19:15:29 +0000
> > >=20
> > > > There is no dump, but I can see the error in previous boot. It's th=
e same a=3D
> > >=20
> > > > s kern/57255
> > >=20
> > > > uaudio0: pintr error: IOERROR
> > >=20
> > > > panic: kernel diagnostic assertion "xfer =3D3D=3D3D SIMPLEQ_FIRST(&=
pipe->up_que=3D
> > >=20
> > > > ue)" failed: file "/usr/src/sys/dev/usb/usbdi.c", line 1142
> > >=20
> > > That looks like a known xhci bug.
> > >=20
> > > Can you try:
> > >=20
> > > http://ftp.netbsd.org/pub/NetBSD/misc/mlelstv/xhci.diff
> > >=20
> > > if that makes a difference ?
From: Bruno Melo <bmelo@protonmail.com>
To: gnats-bugs@netbsd.org, Michael van Elst <mlelstv@serpens.de>
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
Date: Wed, 06 Sep 2023 18:49:01 +0000
Any update?
Sent from ProtonMail, Swiss-based encrypted email.
------- Original Message -------
Em domingo, 2 de julho de 2023 =C3=A0s 22:07, Bruno Melo <bmelo@protonmail.=
com> escreveu:
> Hi Michael,
>=20
> May this patch be pulled to 10?
>=20
>=20
>=20
> Sent from ProtonMail, Swiss-based encrypted email.
>=20
>=20
>=20
>=20
> ------- Original Message -------
> Em segunda-feira, 12 de junho de 2023 =C3=A0s 14:46, Bruno Melo bmelo@pro=
tonmail.com escreveu:
>=20
>=20
>=20
> > I confirm the patch works and I must to say the bug is present in previ=
ous releases too (8 and 9) and the patch is useful for 10 only.
> >=20
> > Thanks.
> >=20
> > Sent from ProtonMail, Swiss-based encrypted email.
> >=20
> > ------- Original Message -------
> > Em domingo, 28 de maio de 2023 =C3=A0s 9:31 PM, Bruno Melo bmelo@proton=
mail.com escreveu:
> >=20
> > > Hi Michael,
> > >=20
> > > I confirm this patch works too!
> > >=20
> > > Can you commit and pull to 10 please?
> > >=20
> > > Thanks so much. Now only 2 bugs remaining to make NetBSD work softly =
on my PC.
> > >=20
> > > Sent from ProtonMail, Swiss-based encrypted email.
> > >=20
> > > ------- Original Message -------
> > > Em domingo, 28 de maio de 2023 =C3=A0s 3:35 AM, mlelstv@serpens.de ml=
elstv@serpens.de escreveu:
> > >=20
> > > > The following reply was made to PR kern/57443; it has been noted by=
GNATS.
> > > >=20
> > > > From: mlelstv@serpens.de (Michael van Elst)
> > > > To: gnats-bugs@netbsd.org
> > > > Cc:
> > > > Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
> > > > Date: Sun, 28 May 2023 06:31:40 -0000 (UTC)
> > > >=20
> > > > bmelo@protonmail.com (Bruno Melo) writes:
> > > >=20
> > > > > The following reply was made to PR kern/57443; it has been noted =
by GNATS.
> > > >=20
> > > > > From: Bruno Melo bmelo@protonmail.com
> > > >=20
> > > > > To: Taylor R Campbell riastradh@NetBSD.org
> > > >=20
> > > > > Cc: gnats-bugs@NetBSD.org
> > > >=20
> > > > > Subject: Re: kern/57443: NetBSD reboots when plugging USB headset
> > > >=20
> > > > > Date: Sat, 27 May 2023 19:15:29 +0000
> > > >=20
> > > > > There is no dump, but I can see the error in previous boot. It's =
the same a=3D
> > > >=20
> > > > > s kern/57255
> > > >=20
> > > > > uaudio0: pintr error: IOERROR
> > > >=20
> > > > > panic: kernel diagnostic assertion "xfer =3D3D=3D3D SIMPLEQ_FIRST=
(&pipe->up_que=3D
> > > >=20
> > > > > ue)" failed: file "/usr/src/sys/dev/usb/usbdi.c", line 1142
> > > >=20
> > > > That looks like a known xhci bug.
> > > >=20
> > > > Can you try:
> > > >=20
> > > > http://ftp.netbsd.org/pub/NetBSD/misc/mlelstv/xhci.diff
> > > >=20
> > > > if that makes a difference ?
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.