[Bug 244247] Kernel panic when removing 700 vlans via netgraph
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Feb 21 14:00:20 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244247
lutz at donnerhacke.de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lutz at donnerhacke.de
--- Comment #3 from lutz at donnerhacke.de ---
static void
ng_eiface_mediastatus(struct ifnet *ifp, struct ifmediareq *ifmr)
{
const priv_p priv = (priv_p)ifp->if_softc;
struct ifmedia *ifm = &priv->media;
--> if (ifm->ifm_cur->ifm_media == (IFM_ETHER | IFM_AUTO) &&
(priv->link_status & IFM_ACTIVE))
ifmr->ifm_active = IFM_ETHER | IFM_1000_T | IFM_FDX;
else
ifmr->ifm_active = ifm->ifm_cur->ifm_media;
ifmr->ifm_status = priv->link_status;
return;
}
May I ask you to compile the test system with NETGRAPH_DEBUG?
This will prevent the netgraph system from freeing all allocated memory.
I just want to make sure, that we do have a problem with the netgraph
framework, not with a race condition within ng_eiface.
If you are on this path, may you please add INVARIANT_SUPPORT and INVARIANTS?
This will catch several types of errors before they might happen.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list