Current-Users archive

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

Re: kernel panic in NetBSD-9.1-amd64-install.img (exiting unheld spin mutex) ("Jeremy C. Reed") writes:

>panic: lock error: Mutex error: mutex_vector_exit,742: exiting unheld 
>spin mutex: lock 0xffff8699588015c0 cpu 0 lwp 0xff... (my photo was 

>athn_ioctl() at netbsd:athn_ioctl+0x18b
>if_mcast_op() at netbsd:if_mcast_op+0x4b

Seems to be obvious in sys/dev/ic/athn.c:

Static void
athn_set_multi(struct athn_softc *sc)
	if ((ifp->if_flags & (IFF_ALLMULTI | IFF_PROMISC)) != 0) {
                lo = hi = 0xffffffff;
                goto done;
        lo = hi = 0;

The done: label should be moved below ETHER_UNLOCK.

                                Michael van Elst
                                "A potential Snark may lurk in every tree."

Home | Main Index | Thread Index | Old Index