NetBSD Problem Report #58019

From www@netbsd.org  Sat Mar  9 19:36:15 2024
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 A21FE1A923C
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  9 Mar 2024 19:36:15 +0000 (UTC)
Message-Id: <20240309193614.1BD7F1A923F@mollari.NetBSD.org>
Date: Sat,  9 Mar 2024 19:36:14 +0000 (UTC)
From: netbsd@acc.zubko.cc
Reply-To: netbsd@acc.zubko.cc
To: gnats-bugs@NetBSD.org
Subject: xhci causing occasional kernel panic/reboot (kassert failing)
X-Send-Pr-Version: www-1.0

>Number:         58019
>Category:       kern
>Synopsis:       xhci causing occasional kernel panic/reboot (kassert failing)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 09 19:40:00 +0000 2024
>Last-Modified:  Sat Mar 09 22:45:01 +0000 2024
>Originator:     vazub
>Release:        10.99.10
>Organization:
>Environment:
NetBSD zeronet.fritz.box 10.99.10 NetBSD 10.99.10 (DEBUG) #1: Fri Mar  8 08:18:21 CET 2024  vazub@zeronet.fritz.box:/home/vazub/obj/sys/arch/amd64/compile/DEBUG amd64
>Description:
Built amd64 custom kernel with debug options enabled, based off the recent current commit https://github.com/NetBSD/src/commit/7dff59c837a6f54d67df414ee1934babf21ac4e1

Was running Firefox under X (wsfb, Xfce4) with some heavy load - multiple tabs open, YouTube playing music, opening MSTeams in another tab etc. At some point the system froze and after a while restarted, producing a crash dump on next login and printing the following error:

"Mar 9 17:36:37 zeronet savecore: reboot after panic: [ 11224.427449] panic: kernel diagnostic assertion "xs->xs_xr[dci] == NULL" failed: file "/home/vazub/src/sys/dev/usb/xhci.c", line 2090"

Also, a crash dump is present and I can provide it to the person looking into the matter, but I am not sure how to attach it to this report - it is 260MB large blob.
>How-To-Repeat:
The panic occurred seemingly randomly, without any clear trigger I could assume as being the cause, aside of having system struggle under heavy load and becoming sluggish when trying to open new Firefox tabs (MSTeams).
>Fix:
-

>Audit-Trail:
From: "<name>" <netbsd@acc.zubko.cc>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/58019: xhci causing occasional kernel panic/reboot (kassert failing)
Date: Sat, 09 Mar 2024 20:56:42 +0100

 Here is the backtrace of the dump, for initial reference.

 zeronet$ doas crash -M netbsd.0.core                                             
 Crash version 10.99.10, image version 10.99.10.
 System panicked: kernel diagnostic assertion "xs->xs_xr[dci] == NULL" failed: file "/home/vazub/src/sys/dev/usb/xhci.c", line 2090 
 Backtrace from time of crash is available.
 crash> bt
 __kernel_end() at 0
 kern_reboot() at kern_reboot+0x87
 vpanic() at vpanic+0x182
 kern_assert() at __x86_indirect_thunk_rax
 xhci_open() at xhci_open+0x272
 usbd_setup_pipe_flags() at usbd_setup_pipe_flags+0xed
 usbd_open_pipe_ival() at usbd_open_pipe_ival+0xb9
 uaudio_chan_open() at uaudio_chan_open+0xa8
 uaudio_trigger_input() at uaudio_trigger_input+0x8a
 audio_rmixer_input() at audio_rmixer_input+0x95
 audio_rmixer_start() at audio_rmixer_start+0x44
 audio_open.constprop.0() at audio_open.constprop.0+0x478
 audioopen() at audioopen+0x22a
 cdev_open() at cdev_open+0x133
 spec_open() at spec_open+0x237
 VOP_OPEN() at VOP_OPEN+0x3e
 vn_open() at vn_open+0x35c
 do_open() at do_open+0xc3
 do_sys_openat() at do_sys_openat+0x74
 sys_open() at sys_open+0x24
 syscall() at syscall+0x1f2
 --- syscall (number 5) ---
 syscall+0x1f2:

NetBSD Home
NetBSD PR Database Search

(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-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.