From owner-freebsd-net@freebsd.org Fri Mar 17 05:12:49 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 DF070D104A8 for ; Fri, 17 Mar 2017 05:12:49 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: from mail-pf0-x230.google.com (mail-pf0-x230.google.com [IPv6:2607:f8b0:400e:c00::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B63DC1FAB for ; Fri, 17 Mar 2017 05:12:49 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: by mail-pf0-x230.google.com with SMTP id x63so29057028pfx.2 for ; Thu, 16 Mar 2017 22:12:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=iDjksZD5XK3cJZjjL7KTFTPTAy5dh12n/4CAqEaRT4Y=; b=bYUtddRr/tdi0lwGrGrGaKcAXh3pMdG+KQQe7dp2rr3tX4/V0ljb+zeto7ATFQ1eQI hL2wwzqbK5Z+JyZHAU/6d7GsbSRhu9yVFlo6PwN4iyJIa2YAftsKj5KQxxWdruKz0+Fg DcCQwPswYHTrTJT8NhI9VqOsnwQpzHwaVvF5gOfYgh2p008Yy6zBiMU9PkGif3c+P4Q2 5M/Q/1Ye+/mn3MdF+cJTaIiQS7I0Z8OV6ddcjzapK2SCHoyT9qYK4rg1JAE1IqoU9TPB x06D9t2dtTqfkhcEQV0D89I20NJvyGd9Hcx67Twe+ixHnUDGmAOfR79NezMFpu18+d41 UPNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=iDjksZD5XK3cJZjjL7KTFTPTAy5dh12n/4CAqEaRT4Y=; b=DN4+jmIKUTHXwqSCovkfxJrFi72a0M5k0uqxpvaOT1aNdNbAwBtst8eoAK8h2ktGLX b1QZq1Mfvy3s6ZxZ82MWzD596HYUIet/I1EUkSC9R+2Zu2WPhJaQSamk1tZjj6I4Dqdn wHimDt98nYDkUhUnvdjGabfTRTJIXgox689OkvZbodxloaEk+xbKYQMxoIVocqyicN3z S6jaQbbhauBOokyMuLa+FFwuOlOSXlqhQSY3LKjUg0EUTfGTYpyfIFIaI518ZSxp7tHM TxsQm4BIPk99sMF7Nu2uw8HQRICpZpMQlyHKYXHVx1x+ghND/tf13/E6u5QgAqUZjXx4 XC1Q== X-Gm-Message-State: AFeK/H01wRXQJ+YmtTUk8sx7GO1NScQkx8Ju6PUMOm6aW9O8M3wZ7+8sTrPu9MEV8aGZqQ== X-Received: by 10.84.204.8 with SMTP id a8mr17019024ple.171.1489727569105; Thu, 16 Mar 2017 22:12:49 -0700 (PDT) Received: from [172.16.1.47] (pgl-110.173.187-254.primenet.in. [110.173.187.254]) by smtp.gmail.com with ESMTPSA id h71sm13610731pfj.65.2017.03.16.22.12.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Mar 2017 22:12:47 -0700 (PDT) Date: Fri, 17 Mar 2017 10:42:41 +0530 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Subject: Re: VNET kernel panic on remove renamed interfaces To: Ayaka Koshibe CC: freebsd-net@freebsd.org From: Reshad Patuck Message-ID: <7C98607E-8918-4C42-9956-648B11BD9701@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Fri, 17 Mar 2017 05:12:50 -0000 Hi, I applied the patch @Ayaka mentioned (r315192) against 11-STABLE and ran= =20 the same test against a complied kernel, and it works now=2E Also I found another issue with 11-STABLE that seems to be patched in 12= =2E I wrote a script to bring up 300 vnet jails on 3 bridges, with a pf router= =20 jail in between and shut them down=2E When I run this script in a loop for some time the system crashes, without= =20 leaving a crash dump=2E Please let me know if there is anything in the PF-VNET-Jails stack I can= =20 help test=2E Are there any plans to backport these patches to 11-STABLE=2E I would like= if=20 it is possible to have these in 11=2E1-RELEASE=2E Best regards, Reshad On 15 March 2017 01:08:14 GMT+05:30, Ayaka Koshibe = wrote: >Hi, > >This looks identical to the panic that I was seeing=2E It was just >patched in -CURRENT yesterday (r315192) - maybe it's this? > >https://svnweb=2Efreebsd=2Eorg/base?view=3Drevision&revision=3D315192 > > >Ayaka > >On Tue, Mar 14, 2017 at 11:25 AM, Reshad Patuck > wrote: >> Hi, >> >> I am trying to use vnet and pf to host multiple (100s of) jails on a >server with a jailed pf router, which will be spun up and down by a >script=2E >> >> I rename the epair interfaces so that I know which jail links to >which interface (for convenience)=2E >> >> After I delete the jail and renamed epair the kernel panics when I >attempt to recreate the epair=2E >> >> I believe this is an issue occurs only when I have renamed the epair=2E >> >> This issue seems to be fixed in 12-CURRENT as I can not make it crash >on current=2E However this continues to happen on 11-STABLE and >11=2E0-RELEASE=2E >> >> I have found these which seem to fix something similar issues: >> >https://svnweb=2Efreebsd=2Eorg/base?view=3Drevision&sortby=3Drev&revision= =3D292604 >> >https://svnweb=2Efreebsd=2Eorg/base/projects/vnet/_scripts/jail-vnet-epai= r-regression01=2Esh?view=3Dmarkup >> >> I have attached scripts that crash the system for the latest versions >on 11=2E0-RELEASE and 11-STABLE branches=2E >> >> Can someone help me find where this problem was fixed? (for 12) and >if there are any plans to backport the fix to the 11 branch=2E >> >> Also any tips on running 100s of VNET jails on a single box would be >much appreciated, and if there is anything I can help test I have some >physical and VMware boxes I can test on=2E >> >> Kernel version I have tested on: >> FreeBSD FreeBSD-11-RELEASE 11=2E0-RELEASE-p8 FreeBSD 11=2E0-RELEASE-p8 = #1 >r315007: Fri Mar 10 17:27:30 UTC 2017 >root@FreeBSD-11-RELEASE:/usr/obj/usr/src/sys/VNET amd64 >> FreeBSD FreeBSD-11-STABLE 11=2E0-STABLE FreeBSD 11=2E0-STABLE #1 r31524= 1: >Tue Mar 14 12:58:54 UTC 2017 >root@FreeBSD-11-STABLE:/usr/obj/usr/src/sys/VNET amd64 >> FreeBSD FreeBSD-12 12=2E0-CURRENT FreeBSD 12=2E0-CURRENT #1 r315237: Tu= e >Mar 14 10:17:06 UTC 2017 root@FreeBSD-12:/usr/obj/usr/src/sys/VNET >amd64 >> >> Attached: >> vnet-rename-epair=2Esh - Create and destroy a VNET jail in a loop while >renaming the epair interface=2E This crashes on 11=2E >> vnet-no-rename-epair=2Esh - Create and destroy a VNET jail while not >renaming the epair interface=2E This does not crash=2E >> info=2E0 - info file from core dump on FreeBSD-11-STABLE >> core=2Etxt=2E0 - core=2Etxt=2E0 file from core dump on FreeBSD-11-STABL= E >> >> Best regards, >> >> Reshad >> _______________________________________________ >> freebsd-net@freebsd=2Eorg mailing list >> https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to >"freebsd-net-unsubscribe@freebsd=2Eorg"