From owner-freebsd-net@freebsd.org Wed Mar 15 07:31:09 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 7CF85D0DB55 for ; Wed, 15 Mar 2017 07:31:09 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: from mail-pg0-x233.google.com (mail-pg0-x233.google.com [IPv6:2607:f8b0:400e:c05::233]) (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 4C99A1F3E for ; Wed, 15 Mar 2017 07:31:09 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: by mail-pg0-x233.google.com with SMTP id g2so5349667pge.3 for ; Wed, 15 Mar 2017 00:31:09 -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:from:message-id; bh=FpqVHIkEUeYmOZiHwvT0fmhaJF+MyW/S6ijirlUWAts=; b=OtYkyxLeEJYX/X7E0lUpqddk3LcLL8S+2MVMl9vQElmpoqLwX0e7PD4OeFAo2wEsp2 kzoOcRNtavGPyHgLidNXoAdN408K1fTczzoraKdjNONeXEwwvPzY59WeyFswGxF/cYOu 99amGNLiDPyhBYeKI5gkFdFbFnMaXvmXR+Eb+XK9o66o7Oqen7BTOG2Z7WgSLvpViKAs T27QEdQMbYcAvoZhOllDz4+PLH8icrk2aNsS2GVBGoo51PhRIISGZvbS2AptNcAWw2h/ EPqRY2pW+LM/NrhtADbjv8ATmX60u7fi3GkU32YZ3tLZmI/JMe99PDbOKkpdADJYoeom jCBQ== 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:from:message-id; bh=FpqVHIkEUeYmOZiHwvT0fmhaJF+MyW/S6ijirlUWAts=; b=WI6U/PuLdBGay3dUWYwUhqMzkImntQG0XJxk0Dsw7oNPcxwGdXTlbzQlbKaWhUZ1KB 8YqwDFfMgh00mEoECk0zXZL6yghqzSYdftTBjEJg4i81TgWMIviS4GHAeAP/xJxWdvKT GU390QRaw5hYS5WbKyWknWj2aNk5SIX527nNolJkOe0AXWwPay1EsXXe2+j+n98ANoRD cx/2tPxkf89vu6SC/bNdN2QkPa9KycFMHvxQRVIBQh9DCLoqAh+YjmYrHvd/o4x5CrIW HbtQXGLZTr32mguqrPJXx/m3m7UVWZ6t1qPB9o9I90uW/v7RuFKN4ER9rM/GJobbBBGF 1MwA== X-Gm-Message-State: AFeK/H3fT7DC92PoKHrkILDic+LhHcULA4/81GDsnQTagWahQNiV0YOW+nuoFalVA504mA== X-Received: by 10.84.233.134 with SMTP id l6mr2614162plk.49.1489563068458; Wed, 15 Mar 2017 00:31:08 -0700 (PDT) Received: from nexus ([27.4.152.87]) by smtp.gmail.com with ESMTPSA id 90sm2157276pfl.24.2017.03.15.00.31.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Mar 2017 00:31:07 -0700 (PDT) Date: Wed, 15 Mar 2017 13:00:57 +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: freebsd-net@freebsd.org From: Reshad Patuck Message-ID: <29BBA4DB-3A13-42DD-8A79-89E4DB85BF9C@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: Wed, 15 Mar 2017 07:31:09 -0000 Looks like my scripts did not come through=2E Here is a link to them https://paste=2Eee/p/lB3iE Best, Reshad On 14 March 2017 23:55:23 GMT+05:30, 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 r315241: >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: Tue >Mar 14 10:17:06 UTC 2017 root@FreeBSD-12:/usr/obj/usr/src/sys/VNET >amd64=20 > >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=20 >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-STABLE > >Best regards, > >Reshad