From owner-freebsd-net@freebsd.org Wed Apr 19 19:31:56 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08E0ED46918 for ; Wed, 19 Apr 2017 19:31:56 +0000 (UTC) (envelope-from peter.blok@bsd4all.org) Received: from smtpq2.tb.mail.iss.as9143.net (smtpq2.tb.mail.iss.as9143.net [212.54.42.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BCFF21E91 for ; Wed, 19 Apr 2017 19:31:55 +0000 (UTC) (envelope-from peter.blok@bsd4all.org) Received: from [212.54.34.119] (helo=smtp11.mnd.mail.iss.as9143.net) by smtpq2.tb.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1d0vKS-0004IO-6z for freebsd-net@freebsd.org; Wed, 19 Apr 2017 21:31:52 +0200 Received: from 5ed15678.cm-7-2b.dynamic.ziggo.nl ([94.209.86.120] helo=wan0.bsd4all.org) by smtp11.mnd.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1d0vKS-0005q6-5C for freebsd-net@freebsd.org; Wed, 19 Apr 2017 21:31:52 +0200 Received: from newnas (localhost [127.0.0.1]) by wan0.bsd4all.org (Postfix) with ESMTP id 0AA957C85 for ; Wed, 19 Apr 2017 21:31:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at bsd4all.org Received: from wan0.bsd4all.org ([127.0.0.1]) by newnas (newnas.bsd4all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qlzjprroscS0 for ; Wed, 19 Apr 2017 21:31:51 +0200 (CEST) Received: from [192.168.1.64] (mm [192.168.1.64]) by wan0.bsd4all.org (Postfix) with ESMTPSA id 8CEC07C80 for ; Wed, 19 Apr 2017 21:31:51 +0200 (CEST) From: peter.blok@bsd4all.org Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: MFC VIMAGE fixes to 11-stable Message-Id: <8E6FC1CD-24D5-46D5-A6A1-760DD612F92D@bsd4all.org> Date: Wed, 19 Apr 2017 21:31:50 +0200 To: freebsd-net@freebsd.org X-Mailer: Apple Mail (2.3273) X-SourceIP: 94.209.86.120 X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.2 cv=KuA94SeN c=1 sm=1 tr=0 a=IkzOOneQUJP1+bAPekPvBg==:17 a=IkcTkHD0fZMA:10 a=AzvcPWV-tVgA:10 a=M250e507MT2xu0IyU1QA:9 a=ZvL-mYWBzcKzQ_JA:21 a=X0RY0KR-N7hnxV2j:21 a=QEXdDO2ut3YA:10 none X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2017 19:31:56 -0000 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