From nobody Thu Oct 13 06:45:16 2022 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 4Mp0Q46cFJz4fD6j for ; Thu, 13 Oct 2022 06:45: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 4Mp0Q45bXdz3h26 for ; Thu, 13 Oct 2022 06:45:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4Mp0Q44FpbzL79 for ; Thu, 13 Oct 2022 06:45:16 +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 29D6jGg8059162 for ; Thu, 13 Oct 2022 06:45:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29D6jGYZ059161 for net@FreeBSD.org; Thu, 13 Oct 2022 06:45:16 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 266999] tun(4): kernel: panic: make_dev_sv: bad si_name (error=17, si_name=tun2) in in make_dev_sv > tun_create_device > tunclone Date: Thu, 13 Oct 2022 06:45:16 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: p.mousavizadeh@protonmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? mfc-stable13? mfc-stable12? 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665643516; 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=FvfG4f/NLvbcGkm5wFwjL4Ux2Iu7HlgBuZIztrHr6XI=; b=bKuTgMT89O739JOXaSTA6tuSW104OKs6OfkpKDYji7o06ZY67/dtwXFqVbo9qb4ikubM2O L+uer5sCXyIcvA4FutsmhmVkhTdefBAJDOqA5i0+NrFltkkV1xJaIf1M5SOd2/rdMQLq59 AmgLKD16FQ49hhShZcl/q/wRVIlpaa/QnsvHIaBrF5Q7VN3KSIR7adC/b3OLJlJFmjJahz WTVyHWionIC3EV5oSN8qzDTWI3Jp2WbQoLmFeqKM2KACyMfw9Ff8p07A1/953BRBkmQZ3I hELI1s8thFW3upIEMYe1kAT20/vsNiVRGSih3jv4yMXzig2uXPS/MYEQq2npNQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665643516; a=rsa-sha256; cv=none; b=Pcs2dUgCo1sm2Kl1PnecKdA/TJ2pFrhP7r2x9jCmUrdmkve9Bt7yVnAjhchxmjvri6HO3I GZgTj/BgYVNW4F/XewqgFkOfL0xg5fR+jNapULglObaiY1nio10ZqxVGF8Mioiftw8v6Uy XD2h59L8Cup2KfW9W81AaSdBzpxZ8hmjuIPjdA4QyYa/xCLlroKawxc+2uTU/CmgHO46jP b4jXANFtTgSeNyrIprdnGQcLv1YvD+p+SUqSkL2xbc43uuRxTHIkJMBeg8kpp4Xw+7c6Bt qANA7iwXxb21DCU9CK2p8ese82esV8IRFrDjgbNRQCfM+ZKUZXT8+eHEkm2yXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266999 --- Comment #5 from Seyed Pouria Mousavizadeh Tehrani --- - openvpn-client is using tun257 and tun258, it is in its own vnet: No. openvpn-clients are in *host* and not in *jail* so their are not using vnet. host rc.conf: """ openvpn_client_enable=3D"YES" openvpn_client_fib=3D"1" openvpn_client_configfile=3D"/usr/local/etc/openvpn/client.conf" openvpn_client2_enable=3D"YES" openvpn_client2_fib=3D"2" openvpn_client2_configfile=3D"/usr/local/etc/openvpn/client2.conf" """ Here is the client configurations: % grep dev /usr/local/etc/openvpn/client.conf=20 dev tun257 % grep dev /usr/local/etc/openvpn/client2.conf dev tun258 - The two ocserv jails also each have their own vnets, and use whatever tun interfaces they get from opening /dev/tun: Exactly. one of my ocserv jail configurations: """ ... export jail_overlay_vnet_enable=3D"YES" export jail_overlay_vnet_interface=3D"epair0b epair1b" export jail_overlay_exec_prestart0=3D"service netif cloneup epair0 epair1 |= | echo interfaces are already exists" export jail_overlay_exec_prestart1=3D"service routing static inet || echo s= tatic routes are already exists" export jail_overlay_exec_prestart2=3D"service openvpn_client restart" export jail_overlay_exec_poststop0=3D"/sbin/route del -net *.*.*.0/24 -gate= way *.*.*7.2" export jail_overlay_exec_poststop1=3D"/sbin/route del -net *.*.*.0/24 -gate= way *.*.*8.2 -fib 1" export jail_overlay_exec_poststop2=3D"/sbin/ifconfig epair0a destroy" export jail_overlay_exec_poststop3=3D"/sbin/ifconfig epair1a destroy" """ cloned interfaces in rc.conf: """ ... cloned_interfaces=3D"lo1 gre0 gre1 tun257 tun258 epair5 epair4 epair3 epair2 epair1 epair0" ifconfig_epair0a=3D"inet *.*.*7.1/30 -tso -rxcsum descr vnet-overlay" ifconfig_epair0b=3D"-tso -rxcsum descr vnet-overlay" ifconfig_epair1a=3D"inet *.*.*8.1/30 fib 1 -tso -rxcsum descr vnet-overlay-= fib-1" ifconfig_epair1b=3D"fib 1 -tso -rxcsum descr vnet-overlay-fib-1" ... """ Errata in previous comment: *Special Control Device* --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=