Page MenuHomeFreeBSD

sound: Add missing CHN_[UN]LOCKs in sndstat
ClosedPublic

Authored by christos on Jul 6 2024, 3:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 1:24 AM
Unknown Object (File)
Sep 23 2024, 6:25 PM
Unknown Object (File)
Sep 20 2024, 4:00 PM
Unknown Object (File)
Sep 20 2024, 10:32 AM
Unknown Object (File)
Sep 19 2024, 10:27 PM
Unknown Object (File)
Sep 19 2024, 8:15 AM
Unknown Object (File)
Sep 15 2024, 9:11 AM
Unknown Object (File)
Sep 11 2024, 3:22 AM
Subscribers

Details

Summary

For sndstat_build_sound4_nvlist(), if we have INVARIANTS or
SND_DIAGNOSTIC enabled, we will hit an lock assertion panic when we call
CHN_GETVOLUME(). Also lock the channel in the sndstat_prepare_pcm() loop
for good measure.

Fixes: bbca3a75bb41 ("sound: Include sound(4) channel information in sndstat nvlist")
Sponsored by: The FreeBSD Foundation
MFC after: 2 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable