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
F93293429: D45898.id140644.diff
Sun, Sep 8, 6:24 PM
F93259313: D45898.id.diff
Sun, Sep 8, 1:02 PM
Unknown Object (File)
Fri, Aug 16, 3:53 AM
Unknown Object (File)
Aug 8 2024, 6:05 PM
Unknown Object (File)
Aug 4 2024, 12:50 AM
Unknown Object (File)
Aug 1 2024, 11:32 PM
Unknown Object (File)
Jul 29 2024, 3:56 AM
Unknown Object (File)
Jul 16 2024, 9:01 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 58537
Build 55425: arc lint + arc unit