tech-kern archive

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

Re: USB-related panic in 8.2_STABLE



> Date: Thu, 27 Apr 2023 21:39:38 +0200
> From: Edgar Fuß <ef%math.uni-bonn.de@localhost>
> 
> > list *(ugen_get_cdesc+0xb1)
> 0xffffffff802f8f2e is in ugen_get_cdesc (/usr/src-8/sys/dev/usb/ugen.c:1376).
> 1371            usb_config_descriptor_t *cdesc, *tdesc, cdescr;
> 1372            int len;
> 1373            usbd_status err;
> 1374    
> 1375            if (index == USB_CURRENT_CONFIG_INDEX) {
> 1376                    tdesc = usbd_get_config_descriptor(sc->sc_udev);
> 1377                    len = UGETW(tdesc->wTotalLength);
> 1378                    if (lenp)
> 1379                            *lenp = len;
> 1380                    cdesc = kmem_alloc(len, KM_SLEEP);

Yes, this was fixed by ugen.c rev. 1.148, which was pulled up to
netbsd-9 but apparently not to netbsd-8.

https://releng.netbsd.org/cgi-bin/req-9.cgi?show=544

The same patch should apply just as well on netbsd-8.


Home | Main Index | Thread Index | Old Index