Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163372712
D17617.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
476 B
Referenced Files
None
Subscribers
None
D17617.diff
View Options
Index: sys/net/if_vlan.c
===================================================================
--- sys/net/if_vlan.c
+++ sys/net/if_vlan.c
@@ -570,10 +570,17 @@
VLAN_XLOCK_ASSERT();
+ if (ifp->if_flags & IFF_DYING)
+ return (ENXIO);
+
/* Find the parent. */
sc = ifp->if_softc;
ifp_p = PARENT(sc);
+ /* check if parent is freed */
+ if (ifp_p == NULL)
+ return (ENXIO);
+
CURVNET_SET_QUIET(ifp_p->if_vnet);
/* First, remove any existing filter entries. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 23, 3:05 PM (2 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35406016
Default Alt Text
D17617.diff (476 B)
Attached To
Mode
D17617: Fix for use-after-free in if_vlan.c
Attached
Detach File
Event Timeline
Log In to Comment