Thread View: muc.lists.freebsd.multimedia
1 messages
1 total messages
Started by bugzilla-noreply
Fri, 16 Oct 2026 09:00
[Bug 299418] After the FreeBSD-SA-26:71.sound update loading the multimedia/cx88 driver causes a kernel panic
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads