Article View: muc.lists.freebsd.multimedia
Article #24[Bug 299418] After the FreeBSD-SA-26:71.sound update loading the multimedia/cx88 driver causes a kernel panic
From: bugzilla-noreply
Date: Fri, 16 Oct 2026 09:00
Date: Fri, 16 Oct 2026 09:00
40 lines
3799 bytes
3799 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299418 --- Comment #7 from Christos Margiolis <christos@freebsd.org> --- I haven't looked at the code yet, but there seem to be two errors: 1. pcm_addchan() reports that chn_init() failed, but there is no error message from chn_init() itself. The function prints error messages on every error path, except when chn_reset() fails. Unless the reporter missed that message when attaching the log, then the error most likely comes from a chn_reset() failure in chn_init(), as Mark pointed out already. 2. The panic is actually coming from the make_dev_s() in mixer_init(), which suggests that there is already a /dev/mixer5 existing, which causes make_dev_sv() to panic because we don't call it with MAKEDEV_CHECKNAME. So this probably has to do with a previous /dev/mixer5 not getting cleaned up, but how did we arrive at this state in the first place? Was this during a clean boot or after a few retries to load cx88? > Now that pcm_unregister() is gated on PCM_REGISTERED(), it won't do anything unless pcm_register() has already been called, so if a driver hits an error before calling pcm_register() and tries to clean up using pcm_unregister() it may end up leaking a bunch of resources and potentially running into the mixer reinit panic seen here. That's a fair point, I'll look into it and try to clean this up. Thanks. -- You are receiving this mail because: You are on the CC list for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<bug-299418-12827-xn1WmZZQAk@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<bug-299418-12827@https.bugs.freebsd.org/bugzilla/>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.multimedia Subject: [Bug 299418] After the FreeBSD-SA-26:71.sound update loading the multimedia/cx88 driver causes a kernel panic Date: Fri, 16 Oct 2026 09:00:52 +0000 Organization: Newsgate at muc.de e.V. Sender: owner-freebsd-multimedia@FreeBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <bug-299418-12827-xn1WmZZQAk@https.bugs.freebsd.org/bugzilla/> References: <bug-299418-12827@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="14427"; mail-complaints-to="news-admin@muc.de" X-Original-To: multimedia@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792141252; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hoSTw2OJ2Z+MOcwNezOU6uf0tdjJO2CDPDRRgmQbfgk=; b=LsWL2aacGnKl1gYpMW7p9YJLY8/zh+LXeNat+jdokTrZuTVLneaTBiqE8uGtoO4x+lUBNk tauQqGs2WdO1ZS4zt9nYT7z1/6G38cyzJ+B64UZDjmHpAdY4Y/g//vkbSoIH5GMaDHaLCA Z5Xz9Wb6Ue/tWgsbTILoRv8s5IrmVQgHaQjRCZAkerLLmh20m/tH1ju7N25472q8RG4vFC QA0fdVTW85nwCT1WE6uWMv5F3jAVJP2roSqqDI38k/dLYyc9VS6Yal7wRNSH46k9SSNzAP Y4Il+l8w3Mtp3asmZtbaO7jbxoC0qwAZ8zVm3rdRIkRZ8BXK3qWACoxfAst4Qg== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f In-Reply-To: <bug-299418-12827@https.bugs.freebsd.org/bugzilla/> Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes