From c9d1ca826b9b450edf1dc47253441c1272337057 Mon Sep 17 00:00:00 2001 From: bz Date: Fri, 14 May 2010 21:11:58 +0000 Subject: Fix an issue with the dynamic pcpu/vnet data allocators. We cannot expect that modspace is the last entry in the linker set and thus that modspace + possible extra space up to PAGE_SIZE would be contiguous. For the moment do not support more than *_MODMIN space and ignore the extra space (*). (*) We know how to get it back but it'll need testing. Discussed with: jeff, rwatson (briefly) Reviewed by: jeff Sponsored by: The FreeBSD Foundation Sponsored by: CK Software GmbH MFC after: 4 days --- sys/net/vnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net/vnet.c') diff --git a/sys/net/vnet.c b/sys/net/vnet.c index 8013f5e..fb0db34 100644 --- a/sys/net/vnet.c +++ b/sys/net/vnet.c @@ -348,7 +348,7 @@ vnet_data_startup(void *dummy __unused) df = malloc(sizeof(*df), M_VNET_DATA_FREE, M_WAITOK | M_ZERO); df->vnd_start = (uintptr_t)&VNET_NAME(modspace); - df->vnd_len = VNET_MODSIZE; + df->vnd_len = VNET_MODMIN; TAILQ_INSERT_HEAD(&vnet_data_free_head, df, vnd_link); sx_init(&vnet_data_free_lock, "vnet_data alloc lock"); } -- cgit v1.1