From nobody Wed Dec 14 18:42:55 2022 X-Original-To: freebsd-jail@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NXPQ136ycz4kHVG for ; Wed, 14 Dec 2022 18:43:21 +0000 (UTC) (envelope-from kp@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NXPQ12Nrlz3s3t; Wed, 14 Dec 2022 18:43:21 +0000 (UTC) (envelope-from kp@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671043401; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ILxOixkMDpnGywJffKKQX5qABVU+mhBqD0IfPaJ2T9Q=; b=LCA9OsNavtOt7j1ld5ZCtCvZzEoW7nWkbj+ZpdxZFfU1CqhkR6J9+4IHdGksYH6RQkAFvw t3hc3qAQQUcR97O/KPa9EGCldncOe1NQMQ/psSWR6elxFomcptvUOSAh9c1B6Sz1aaZe2D /MjGVSzi/779NgtIqDlZTcLD2rpaWEhfViD5dzuOOTJbdcI01PXCol+yI6mYmPh7N6HjV/ DFvt+IiPz/q+SSgLqHF3EapTTZtKb8fCurkeoEZ4hnjYYUX4pl/kVBnQ6xTTiuBhOV94l+ 8kIe+HqwXcyHtiPgRqTknoTTEgnysVV0BIR7hObeNJdpY+eX1X1RHlLle/58wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671043401; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ILxOixkMDpnGywJffKKQX5qABVU+mhBqD0IfPaJ2T9Q=; b=s/fFxcIYaz8PGGlU6/C/Jd8uUztRsGcyaWjZpRwwilB7zZD/DrTG1ybo0mWGqpurWIK015 vy7/8x4gHGgA66P2IxL99H+PhlGYvC0nVgIN6MDRa+rTiuqZ4HfHf2BlUmU/jqREuWtAFi UbvshoxjCh8WSYiK9l+NNMSAfDK4+NqSguzS99CFuABh1d1yyuO0xAkw/c638mwEiwKPdZ 8hKAfyW+6xsND0IUntu7byodn72J72YMguo2VrK9SQwJPou358IRI4C64n19dNanKx/vMs AKHh+NfHqxsFHC5JeXk6biSPdihb7ftKWuFhdHScjtFaX3Kfs8yWWdzWfmXH4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671043401; a=rsa-sha256; cv=none; b=vkKdecRiAheaw8uV2UZB46YeFdf66oReLmQTVKzZQhacw+1vbuONVuOlQTtF/Zh7g0WswL 5el7DCFlXf6PjfrjGghGqC5T1vNXlaskhAvSTiRmS5sW7qKnc5Z+iz/GCyR0+dLEq0i0HJ mEJpYjyhifkIoOLatNkpK341FqsrwUKBpDoACqbu/dbTulWN5dymyYNDt+tPCAU+DObVIU Vrkx1mZXgAu3m55E0aRTmnFqc0/IFWWbmf7+8EqmBH41r5f7XIgCxHRzCKzB2wcT/MxGgP WmQn2z3u5tQ5Z75oddWuveJHqNHYVQgCgiKQvRYvcraIM4Hgfy9XB71opq8cDQ== Received: from venus.codepro.be (venus.codepro.be [5.9.86.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx1.codepro.be", Issuer "R3" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id 4NXPQ10qxHznX4; Wed, 14 Dec 2022 18:43:21 +0000 (UTC) (envelope-from kp@freebsd.org) Received: by venus.codepro.be (Postfix, authenticated sender kp) id AA46E46C35; Wed, 14 Dec 2022 19:43:17 +0100 (CET) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Kristof Provost List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: What's going on with vnets and epairs w/ addresses? Date: Thu, 15 Dec 2022 07:42:55 +1300 Message-Id: <307E29A2-5B77-4394-B1DF-A9BC5F759475@freebsd.org> References: <20221214082806.Horde.fnrSehaAFQsAtgLgj_MkKpA@webmail.leidinger.net> Cc: "Bjoern A. Zeeb" , freebsd-jail@freebsd.org In-Reply-To: <20221214082806.Horde.fnrSehaAFQsAtgLgj_MkKpA@webmail.leidinger.net> To: Alexander Leidinger X-Mailer: iPhone Mail (20B110) X-ThisMailContainsUnwantedMimeParts: N > On 14 Dec 2022, at 20:28, Alexander Leidinger wr= ote: >=20 > =EF=BB=BF > Quoting "Bjoern A. Zeeb" (from Tue, 13 Dec 2022 23:03:42 += 0000 (UTC)): >=20 >> Hi, >>=20 >> I have used scripts like the below for almost a decade and a half >> (obviously doing more than that in the middle). I haven't used them >> much lately but given other questions I just wanted to fire up a test. >>=20 >> I have an end-November kernel doing the below my eapirs do not come back >> to be destroyed (immediately). >> I have to start polling for the jid to be no longer alive and not in >> dying state (hence added the jls/ifconfig -l lines and removed the >> error checking from ifconfig destroy). That seems sometimes rather >> unreasonably long (to the point I give up). >>=20 >> If I don't configure the addresses below this isn't a problem. >>=20 >> Sorry I am confused by too many incarnations of the code; I know I once >> had a version with an async shutdown path but I believe that never made >> it into mainline, so why are we holding onto the epairs now and not >> nuking the addresses and returning them and are clean? >=20 > Kristof, isn't this (epair destruction in jails) one of the issues you loo= ked at? Sorry if I remember incorrectly. >=20 I looked at panics around destroying interfaces and vnets.=20 My speculative guess here is that the jail is hanging around for some reason= , and that=E2=80=99s causing the epair and address to stick around too.=20 jls -na might confirm or deny that.=20 Br, Kristof=