NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/51965: audio open panics LOCKDEBUG kernel

>Number:         51965
>Category:       kern
>Synopsis:       audio open panics LOCKDEBUG kernel
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 14:10:01 +0000 2017
>Originator:     Michael van Elst
>Release:        NetBSD 7.99.59
System: NetBSD tazz 7.99.59 NetBSD 7.99.59 (TAZZ) #5: Sat Feb 11 21:09:06 CET 2017 mlelstv@gossam:/home/netbsd-current/obj.amd64/home/netbsd-current/src/sys/arch/amd64/compile/TAZZ amd64
Architecture: x86_64
Machine: amd64
opening /dev/audio on a LOCKDEBUG kernel causes an immediate assert_sleepable

audioopen() calls audio_open().

audio_open() calls grow_mixer_states() while holding sc->sc_intr_lock.

grow_mixer_states() tries to kmem_zalloc(..., KM_SLEEP) which triggers
the assertion.

You must not sleep while holding a spin mutex.

Run something that opens /dev/audio under LOCKDEBUG.



Home | Main Index | Thread Index | Old Index