Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167497502
D51067.id157672.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
478 B
Referenced Files
None
Subscribers
None
D51067.id157672.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
@@ -1453,6 +1453,11 @@
ifgl->ifgl_group = ifg;
ifgm->ifgm_ifp = ifp;
+ /*
+ * Ensure that all pointed-to objects are visible to readers before the
+ * holding structures are added to the lists under the lock.
+ */
+ atomic_thread_fence_seq_cst();
IF_ADDR_WLOCK(ifp);
CK_STAILQ_INSERT_TAIL(&ifg->ifg_members, ifgm, ifgm_next);
CK_STAILQ_INSERT_TAIL(&ifp->if_groups, ifgl, ifgl_next);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 23, 7:28 AM (13 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37123828
Default Alt Text
D51067.id157672.diff (478 B)
Attached To
Mode
D51067: (draft) if: Ensure additions to groups are visible to readers
Attached
Detach File
Event Timeline
Log In to Comment