Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2017 21:31:50 +0200
From:      peter.blok@bsd4all.org
To:        freebsd-net@freebsd.org
Subject:   MFC VIMAGE fixes to 11-stable
Message-ID:  <8E6FC1CD-24D5-46D5-A6A1-760DD612F92D@bsd4all.org>

next in thread | raw e-mail | index | archive | help
All,

I=E2=80=99m running jails and bhyve using netgraph bridge. The jails are =
using Devin Teske=E2=80=99s jng and I have adapted iohyve to use the =
same netgraph bridge.

I haven=E2=80=99t had any panic=E2=80=99s after applying revisions =
306684, 312943, 315131, 315469, 307235, 313001, 315136 and 315741.

Can someone please MFC them to 11-stable?

I=E2=80=99m starting and stopping jails in a continous loop. I have =
added some extra code to track an occasional panic in =
pf_purge_expired_states, but so far no luck.

I also have a change in zone_release to fix another panic and leak in =
slab_free_item. The issue is that zone_release tries to release a keg =
that never belonged to the zone it is trying to release. With my limited =
knowledge, i think that should not happen.

--- vm/uma_core.c	(revision 317156)
+++ vm/uma_core.c	(working copy)
@@ -2846,7 +2846,8 @@
 				KEG_LOCK(keg);
 			}
 		}
-		slab_free_item(keg, slab, item);
+		if (keg =3D=3D slab->us_keg)
+			slab_free_item(keg, slab, item);
 		if (keg->uk_flags & UMA_ZFLAG_FULL) {
 			if (keg->uk_pages < keg->uk_maxpages) {
 				keg->uk_flags &=3D ~UMA_ZFLAG_FULL;


Peter






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8E6FC1CD-24D5-46D5-A6A1-760DD612F92D>