Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156865811
D10025.id26308.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
725 B
Referenced Files
None
Subscribers
None
D10025.id26308.diff
View Options
Index: sys/netpfil/pf/pf_ioctl.c
===================================================================
--- sys/netpfil/pf/pf_ioctl.c
+++ sys/netpfil/pf/pf_ioctl.c
@@ -3788,6 +3788,9 @@
{
int error = 0;
+ /* Unload the root VNET */
+ pf_unload_vnet();
+
pf_end_threads = 1;
while (pf_end_threads < 2) {
wakeup_one(pf_purge_thread);
@@ -3818,6 +3821,12 @@
vnet_pf_uninit(const void *unused __unused)
{
+ /* If we're uninit-ing the default vnet we're actually unloading the pf
+ * module, and we've already cleaned up this, as well as our locks.
+ * Don't do anything. */
+ if (IS_DEFAULT_VNET(curvnet))
+ return;
+
pf_unload_vnet();
}
VNET_SYSUNINIT(vnet_pf_uninit, SI_SUB_PROTO_FIREWALL, SI_ORDER_THIRD,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 17, 11:46 PM (20 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33219617
Default Alt Text
D10025.id26308.diff (725 B)
Attached To
Mode
D10025: pf: Fix panic on unload
Attached
Detach File
Event Timeline
Log In to Comment