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/> References: <bug-244247-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244247 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 =3D (priv_p)ifp->if_softc; struct ifmedia *ifm =3D &priv->media; --> if (ifm->ifm_cur->ifm_media =3D=3D (IFM_ETHER | IFM_AUTO) && (priv->link_status & IFM_ACTIVE)) ifmr->ifm_active =3D IFM_ETHER | IFM_1000_T | IFM_FDX; else ifmr->ifm_active =3D ifm->ifm_cur->ifm_media; ifmr->ifm_status =3D 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 INVARIANT= S? This will catch several types of errors before they might happen. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244247-227-L9uPXZrQKC>