Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115855603
D39614.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
455 B
Referenced Files
None
Subscribers
None
D39614.diff
View Options
diff --git a/sys/net/if.c b/sys/net/if.c
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -2183,6 +2183,14 @@
if (ifp->if_link_state == link_state)
return;
+ /*
+ * if_detach_internal() drains the taskqueue_swi from the
+ * events from this ifnet. Maintain the invariant by
+ * refusing any changes after the interface was unlinked.
+ */
+ if (ifp->if_flags & IFF_DYING)
+ return;
+
ifp->if_link_state = link_state;
/* XXXGL: reference ifp? */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 30, 3:02 PM (14 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17843724
Default Alt Text
D39614.diff (455 B)
Attached To
Mode
D39614: ifnet: fix use-after-free by ignoring post-detach ifp link events.
Attached
Detach File
Event Timeline
Log In to Comment