[Bug 295722] uaudio panics on boot

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 30 May 2026 11:42:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295722

            Bug ID: 295722
           Summary: uaudio panics on boot
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: novel@FreeBSD.org

Updating to 16.0-CURRENT d62e8c5c6fdc9e3b006bf126e1fb863e8bdd6c51 results in
panic on boot:

panic: mutex uaudio mixer lock not owned at
/usr/home/novel/code/freebsd-src/sys/dev/usb/usb_transfer.c:1953

(kgdb) #0  __curthread ()                                                       
    at /usr/home/novel/code/freebsd-src/sys/amd64/include/pcpu_aux.h:57         
        td = <optimized out>                                                    
#1  doadump (textdump=textdump@entry=1)                                         
    at /usr/home/novel/code/freebsd-src/sys/kern/kern_shutdown.c:399            
        error = 0                                                               
        coredump = <optimized out>                                              
#2  0xffffffff80c03bb7 in kern_reboot (howto=260)                               
    at /usr/home/novel/code/freebsd-src/sys/kern/kern_shutdown.c:519            
        once = 0                                                                
        __pc = 0x0                                                              
#3  0xffffffff80c040cd in vpanic (fmt=<optimized out>,                          
    ap=ap@entry=0xfffffe014aea0980)                                             
    at /usr/home/novel/code/freebsd-src/sys/kern/kern_shutdown.c:974            
        buf = "mutex uaudio mixer lock not owned at
/usr/home/novel/code/freebsd-src/sys/dev/usb/usb_transfer.c:1953", '\000'
<repeats 154 times>                                                             
        __pc = 0x0                                                              
        __pc = 0x0                                                              
        __pc = 0x0                                                              
        other_cpus = {__bits = {3839, 0 <repeats 15 times>}}                    
        td = 0xfffff80002e10780                                                 
        bootopt = <unavailable>                                                 
        newpanic = <optimized out>                                              
#4  0xffffffff80c03f13 in panic (fmt=<unavailable>)                             
    at /usr/home/novel/code/freebsd-src/sys/kern/kern_shutdown.c:887            
        ap = {{gp_offset = 32, fp_offset = 48,                                  
            overflow_arg_area = 0xfffffe014aea09b0,                             
            reg_save_area = 0xfffffe014aea0950}}                                
#5  0xffffffff80bdbe69 in __mtx_assert (c=<optimized out>, what=what@entry=4,   
    file=<unavailable>, line=<unavailable>, line@entry=1953)                    
    at /usr/home/novel/code/freebsd-src/sys/kern/kern_mutex.c:1108              
        m = <optimized out>                                                     
        __x = <optimized out>                                                   
#6  0xffffffff809f69db in usbd_transfer_start (xfer=0xfffff80004c6f148)         
    at /usr/home/novel/code/freebsd-src/sys/dev/usb/usb_transfer.c:1953         
No locals.                                                                      
#7  0xffffffff845de46e in uaudio_mixer_ctl_set (sc=0xfffffe01b8e9f000,          
    mc=0xfffff80128cdf800, chan=0 '\000', val=<optimized out>)                  
    at /usr/home/novel/code/freebsd-src/sys/dev/sound/usb/uaudio.c:5399         
No locals.                                                                      
#8  uaudio_mixer_set (sc=0xfffffe01b8e9f000, m=m@entry=0xfffff80128cdf600,      
    type=type@entry=4, left=left@entry=0, right=right@entry=0)                  
    at /usr/home/novel/code/freebsd-src/sys/dev/sound/usb/uaudio.c:5485         
        index = 0                                                               
        mc = <optimized out>                                                    
        chan = 0                                                               
#9  0xffffffff845dd0af in ua_mixer_set (m=0xfffff80128cdf600,                   
    m@entry=<error reading variable: value is not available>, type=4,           
    type@entry=<error reading variable: value is not available>, left=0,        
    left@entry=<error reading variable: value is not available>, right=0,       
    right@entry=<error reading variable: value is not available>)               
    at /usr/home/novel/code/freebsd-src/sys/dev/sound/usb/uaudio_pcm.c:137      
No locals.                                                                      
#10 0xffffffff8096d75a in MIXER_SET (m=0xfffff80128cdf600,                      
    dev=<optimized out>, left=0, right=0) at ./mixer_if.h:75                    
        rc = <optimized out>                                                    
        _m = <optimized out>                                                    
#11 mixer_set (m=m@entry=0xfffff80128cdf600, dev=dev@entry=0,                   
    muted=muted@entry=0, lev=<optimized out>)                                   
    at /usr/home/novel/code/freebsd-src/sys/dev/sound/pcm/mixer.c:269           
        parent = <optimized out>                                                
        child = 16                                                              
        l = 75                                                                  
        r = 75                                                                  
        realdev = <optimized out>                                               
        d = <optimized out>                                                     
        i = 4                                                                   
        tl = 0                                                                  
        tr = 0                                                                  
        dropmtx = <optimized out>                                               
#12 0xffffffff8096de37 in mixer_init (dev=dev@entry=0xfffff80001fe4600,         
    cls=cls@entry=0xffffffff845ea120 <ua_mixer_class>, devinfo=<optimized out>) 
    at /usr/home/novel/code/freebsd-src/sys/dev/sound/pcm/mixer.c:644           
        val = -2048                                                             
        snddev = 0xfffff80039310c00                                             
        name = 0xfffff80001e6fe58 "pcm"                                         
        unit = 2                                                                
        m = 0xfffff80128cdf600                                                  
        i = 0                                                                   
        v = <unavailable>                                                       
        pdev = <optimized out>                                                  
#13 0xffffffff845dd317 in uaudio_attach_sub (dev=0xfffff80001fe4600,            
    dev@entry=<error reading variable: value is not available>,                 
    mixer_class=0xffffffff845ea120 <ua_mixer_class>,                            
    mixer_class@entry=<error reading variable: value is not available>,         
    chan_class=0xffffffff845ea150 <ua_chan_class>,                              
    chan_class@entry=<error reading variable: value is not available>)          
    at /usr/home/novel/code/freebsd-src/sys/dev/sound/usb/uaudio.c:1199         
        status =
"@\020\0259\000\370\377\377\300\214\215\001\000\370\377\377\334\v\352J\001\376\377\377\377\377\377\377\000\000\000\000\330\017\217\001\000\370\377\377\020\000\201\001\000\000\000\000\020\000\000\0000\000\000\000\320\v\352J\001\376\377\377" 
        sc = 0xfffffe01b8e9f000                                                 
        i = <optimized out>                                                     
#14 0xffffffff80c46aa6 in DEVICE_ATTACH (dev=0xfffff80001fe4600)                
    at ./device_if.h:198                                                        
        _m = <optimized out>                                                    
        rc = <optimized out>     

Please let me know if more info is needed.

-- 
You are receiving this mail because:
You are the assignee for the bug.