Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102075821
D39614.id.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.id.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
Fri, Nov 8, 7:58 AM (10 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14516842
Default Alt Text
D39614.id.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