Date: Fri, 21 Feb 2020 14:00:19 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 244247] Kernel panic when removing 700 vlans via netgraph Message-ID: <bug-244247-227-L9uPXZrQKC@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-244247-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244247 lutz@donnerhacke.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lutz@donnerhacke.de --- Comment #3 from lutz@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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244247-227-L9uPXZrQKC>
