Re: exclusive sleep mutex mskc0 (network driver) r = 0 (0xc32c3690) locked @ /usr/src/sys/dev/msk/if_msk.c:3589

From: Pyun YongHyeon <pyunyh_at_gmail.com>
Date: Mon, 3 May 2010 12:55:38 -0700
On Mon, May 03, 2010 at 07:01:56AM -0700, Mark Atkinson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I updated to current yesterday and got the following 'witness_warn'
> panic upon executing 'reboot':
> 
> suspending ithread with the following locks held:
> exclusive sleep mutex mskc0 (network driver) r = 0 (0xc32c3690) locked _at_
> /usr/src/sys/dev/msk/if_msk.c:3589
> panic: witness_warn
> cpuid = 0
> KDB: enter: panic
> Physical memory: 495 MB
> Dumping 80 MB: 65 49 33 17 1
> 
> 
>    3579 static void
>    3580 msk_intr(void *xsc)
>    3581 {
>    3582     struct msk_softc *sc;
>    3583     struct msk_if_softc *sc_if0, *sc_if1;
>    3584     struct ifnet *ifp0, *ifp1;
>    3585     uint32_t status;
>    3586     int domore;
>    3587
>    3588     sc = xsc;
>    3589     MSK_LOCK(sc);

It seems msk(4) didn't honor IFF_DRV_RUNNING in status block update
check so it continued to process received packets.
Would you try attached patch?

Received on Mon May 03 2010 - 17:55:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:03 UTC