Re: 5.2-RELEASE panic in turnstile_wait

From: Don Lewis <truckman_at_FreeBSD.org>
Date: Wed, 28 Jan 2004 23:14:34 -0800 (PST)
On 29 Jan, Erik Moe wrote:
> My loader.conf looks like this...
> 
> hw.pci.allow_unsupported_io_range="1"
> hw.ata.atapi_dma="1"
> 
> hw.snd.pcm0.vchans=4
> hw.snd.maxautovchans=4

There is a potential buffer overflow in the vchan code that can bzero()
unrelated objects in the kernel heap, like the mutex that you found, and
cause hard to track down system panics.  The buffer overflow can be
triggered by certain combinations of sound hardware and software.

The 5.2-RELEASE errata list contains the following note:

(9 Jan 2004) The use of multiple vchans (virtual audio channels with
dynamic mixing in software) in the pcm(4) driver has been known to cause
some instability.


I finally came up with a fix for this problem that worked and checked it
into the -CURRENT source within the last 24 hours.  I'd recommend either
disabling vchans or upgrading to -CURRENT, though you might be able to
retrofit the contents of src/sys/dev/sound/pcm/ and rebuild your kernel.
Received on Wed Jan 28 2004 - 22:14:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:40 UTC