Article View: muc.lists.freebsd.multimedia
Article #23[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 08:47
Date: Fri, 16 Oct 2026 08:47
37 lines
3738 bytes
3738 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299418 --- Comment #6 from Jason A. Harmening <jah@FreeBSD.org> --- I managed to repro this locally: --The panic can be fixed "well enough" by taking the approach I described earlier: unconditionally call pcm_register() even if an earlier step fails, but still ultimately return an error and use pcm_unregister() to clean up. --The chn_init() failure is a latent ordering issue that's existed in the driver since I wrote it ~17yrs ago. The parent (bridge) driver calls device_probe_and_attach() on the PCM child before the common attach routine marks the driver ready for DMA programming. cx88_audio_configure() then fails during the initial CHANNEL_SETBLOCKSIZE() call issued during chn_init()->chn_reset() as Mark described above, simply because the driver isn't ready yet. Before the SA patch this failure was harmless in practice; the block size would be left at 0 and chn_resizebuf() would always end up getting called again before any audio capture, at which point the driver would be ready and the DMA programming would proceed. Now that blocksize == 0 is treated as a failure, an error gets bubbled up through chn_init(). Moving the PCM child probing later fixes the failure and should be harmless. I'll roll these changes into an update in the next day or two. -- 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-DZg0nvB8VG@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 08:47:33 +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-DZg0nvB8VG@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="5083"; 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=1792140453; 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=4KY6z/f1tBOC9prfI3eje6zugOS/bbI6uwOWyGNT7eE=; b=Q3VhTuxPI40+QUucWCk8TK6TI4wMeety2rZwxoQMGCgx0mG+14vc4OkxOfWcw+5T0p2ZSR AtCbqMzEP14EsDozlDeNn9YBUBsFsZUZobhAZK29K/+3E3XMs+axWCnMqssvJB1TFbBK3C ibxQ+4tiEptzKxJUhPUxZel5GA2m7mPnOBr6bcdeqUQEpEFmMvt9y6hcCYa0cnDc5RBPyP gIOeFd+hBwoc8SXDRcQrM9Esn5zEFQSMCZSsrXKHlaxEzrXHt2P5EQMS3X9MhJZO8/6fF6 1IWnfZF77BO8OWXipSG+te2cgmt/x4uCqe7z/Fc7g22eiyZUd0ar2xSlMcwJtQ== 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