[Bug 206583] Unable to load ip_mroute kernel module if VIMAGE is enabled in kernel

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 24 17:16:48 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206583

--- Comment #1 from Ben Woods <woodsb02 at gmail.com> ---
Some information provided by Marko Zec on the freebsd-net at freebsd.org mailing
list:
https://lists.freebsd.org/pipermail/freebsd-net/2016-January/044447.html

In this particular case the problem is that ip_mroute demands more
space for "virtualized global" variables than what kernel linker has
put aside for each vnet.

Bumping VNET_MODMIN to 24 should circumvent the issue that Ben is
observing.  A more vnet-friendly fix would require refactoring
ip_mroute's arrays so that they get malloc()ed / free()d from SYSINIT
handlers instead of being declared "virtualized global".

Marko

===================================================================
--- vnet.c      (revision 294659)
+++ vnet.c      (working copy)
@@ -170,7 +170,7 @@
  * we want the virtualized global variable space to be page-sized, we
may
  * have more space than that in practice.
  */
-#define        VNET_MODMIN     8192
+#define        VNET_MODMIN     3 * 8192
 #define        VNET_SIZE       roundup2(VNET_BYTES, PAGE_SIZE)
 #define        VNET_MODSIZE    (VNET_SIZE - (VNET_BYTES - VNET_MODMIN))

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list