Date: Sun, 24 Jan 2016 17:16:48 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 206583] Unable to load ip_mroute kernel module if VIMAGE is enabled in kernel Message-ID: <bug-206583-8-V42KYzV7u8@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-206583-8@https.bugs.freebsd.org/bugzilla/> References: <bug-206583-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206583 --- Comment #1 from Ben Woods <woodsb02@gmail.com> --- Some information provided by Marko Zec on the freebsd-net@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206583-8-V42KYzV7u8>
