Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162871635
D36496.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
666 B
Referenced Files
None
Subscribers
None
D36496.diff
View Options
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -3439,7 +3439,19 @@
} else {
NG_QUEUE_UNLOCK(&node->nd_input_queue);
NGI_GET_NODE(item, node); /* zaps stored node */
- ng_apply_item(node, item, rw);
+
+ if ((item->el_flags & NGQF_TYPE) == NGQF_MESG) {
+ /*
+ * NGQF_MESG items should never be processed in
+ * NET_EPOCH context. So, temporary exit from EPOCH.
+ */
+ NET_EPOCH_EXIT(et);
+ ng_apply_item(node, item, rw);
+ NET_EPOCH_ENTER(et);
+ } else {
+ ng_apply_item(node, item, rw);
+ }
+
NG_NODE_UNREF(node);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 18, 8:33 PM (2 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35206612
Default Alt Text
D36496.diff (666 B)
Attached To
Mode
D36496: netgraph(4): Don't process NGQF_MESG items in NET_EPOCH context.
Attached
Detach File
Event Timeline
Log In to Comment