Author: melifaro
Date: Tue Sep  8 21:39:34 2020
New Revision: 365475
URL: https://svnweb.freebsd.org/changeset/base/365475

Log:
  Fix panic with net.fibs tunable set in loader.conf.
  
  Fix by removing forgotten CTLFLAG_RWTUN flag from the sysctl,
   loader variable will be read later in vnet_rtables_init().
  
  Reported by:  mav

Modified:
  head/sys/net/route/route_tables.c

Modified: head/sys/net/route/route_tables.c
==============================================================================
--- head/sys/net/route/route_tables.c   Tue Sep  8 20:53:44 2020        
(r365474)
+++ head/sys/net/route/route_tables.c   Tue Sep  8 21:39:34 2020        
(r365475)
@@ -140,7 +140,7 @@ sysctl_fibs(SYSCTL_HANDLER_ARGS)
        return (error);
 }
 SYSCTL_PROC(_net, OID_AUTO, fibs,
-    CTLFLAG_VNET | CTLTYPE_U32 | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, NULL, 0,
+    CTLFLAG_VNET | CTLTYPE_U32 | CTLFLAG_MPSAFE, NULL, 0,
     &sysctl_fibs, "IU",
     "set number of fibs");
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to