From nobody Thu Feb 08 05:41:14 2024 X-Original-To: net@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 4TVm7J1BTrz58ybK for ; Thu, 8 Feb 2024 05:41:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TVm7J08wBz49wS for ; Thu, 8 Feb 2024 05:41:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707370876; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t9Kwv+0h3S3LTJA5Y4oew8cOhcxe5vwIZZTIPNjfmgs=; b=kK6yGoMLo+Kcq017QKQAme8/MaUvW3+qwkKkCU2C1oClIAeXVku+CIW7pzDhfTjq1NGAfW 2g2yQ85JPh6INWH1RIzp8IUtVuvAHqoBaTCCbw3wrXjbaJ22Q09oUcyknJjsvcPLUPYOWD GUFDziUEDxIGz3eLeBvFmkZs2WZ+8aQogGp82MAe73I1ZznAC3l+Ge9YEdpO8ahgCM6gfU kP4wflQVNVwSpQM1uiHlXq6GM1+uxJPJ+VbaaBICpgVTF8mV0cVpC78KNGb3WiFVAbkkUY v4UhdE5EZVLCn9wdoHFjVgU4tlTR90zS64n0RNHwQnClU2Zbr5b2WFkOkDVCbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707370876; a=rsa-sha256; cv=none; b=gHyHsj1bizon9azXVt/puxmSDd/xuD/qsSZTztcvXPPg7RQ9OUUf6NTpx/aHRCO5kd+S6k AisW+cDolCthEmae2/jWuHYL92+WT0rMwmmG0966dV7V5et6kdWOczoSj/4mrJe45c1Fdp ER4sB/OGZ3z9HNSpKBMCbshcGeATW3ryxSYRMd+0gyLbFpvNndWvYaiD3acWd332lRf3yN XlyzsmMzT7/mNSeV7sCnWB8m2M3lC1LVVS4nzDmBEyiEv7aYWYtvgsjozd24mZlc6oNeWs djCy5l9DVoPEBafkyvpfzaBfevVRGngOeC74Eo3Cn9BEPJ7ckM4iGHtqjoWQow== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TVm7H6Mr8zdXD for ; Thu, 8 Feb 2024 05:41:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4185fFTR040371 for ; Thu, 8 Feb 2024 05:41:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4185fFEd040370 for net@FreeBSD.org; Thu, 8 Feb 2024 05:41:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 276862] vnet doesnt release iface after running openvpn Date: Thu, 08 Feb 2024 05:41:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pmc@citylink.dinoex.sub.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276862 --- Comment #9 from Peter Much --- (In reply to Konstantin Belousov from comment #8) I'm not sure I understand your question, but I think the correct answer is = No. I always destroy my tun devices before terminating the jail, because openvpn runs in chroot and fails to do so. And I've learned that one has to be 100% tidy for vnet to work smoothly. I just looked what Your code precisely does here in my testsuite: ifconfig tun42 create runs tun_clone_create(), clone_create() returns 1. -> no problem. cat /dev/tun43 runs tunclone(), clone_create() returns 1; runs tun_clone_create(), clone_create() returns 0; dev_ref() sets dev->si_refcount to 3. -> jid is now indestructible. --=20 You are receiving this mail because: You are the assignee for the bug.=