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)



reed%reedmedia.net@localhost ("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 
>cropped)

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

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;
        ETHER_LOCK(ec);
	...
done:
	ETHER_UNLOCK(ec);
	...
}

The done: label should be moved below ETHER_UNLOCK.

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index