From nobody Thu Oct 13 06:29:46 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 4Mp04C0v87z4fBDZ for ; Thu, 13 Oct 2022 06:29:47 +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 4Mp04B67F7z3dh9 for ; Thu, 13 Oct 2022 06:29:46 +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 4Mp04B4wYBzKv8 for ; Thu, 13 Oct 2022 06:29:46 +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 29D6TkJa041403 for ; Thu, 13 Oct 2022 06:29:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29D6TkTo041402 for net@FreeBSD.org; Thu, 13 Oct 2022 06:29:46 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:29:46 +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=1665642586; 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=B/JK00y5Xm6hvRRbsAfp974nommpYBLIRIYVdXukOTg=; b=Kw/yNZhahQxVhDEb4s5xRBLS3bZDBeN+YwBgukss+MVd2clEtd4LHhWlw3oCRiDOQ7cF+X RnG94zqEoRbqZmIlQvEAwnxqG6O/VLCJ1UMrEHwj8srDQ1pyD00xM+O2k3BYBThsw2nu+N MxlZWkCos7FPJuEhEPVqakpOqj67jhjsrwSwkD/zSS2Cku+IkZYyorKV4h+r85MkBoXKkq 5L8NuhrkfH4AtvoGRMIKu69SiI50VRWTM+Si7Hg777w1Amb+3tZOpRUqKN777C0+uNug7E zP4YtQYV/bSZA99qbP76biNHjmkyzY2Y1Wi3PXB/xx3iJEn2pydJB0RJ1YTx+w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665642586; a=rsa-sha256; cv=none; b=GNzZjHVpneRKTSYWuFFSbzbXkQuQlQi29K/Lk/QQk4mMbDCHiIThkKrixX2WU3dmy+5Jot E8wClZkagYAcZ1Vq0/yrE5iLjiFdN2aUPef6xWawgAfoe9z1otlFxRWVDseNQ+PSWRd92i p6r54TfgSTe5dQs7Fx7SGKKbI113Ac1UlTF8aDm5BzlQ6JhRRDeEaV9hOP7Izm3xoD2und Sd/73Dg8hrzwMyajvc+hJHsslJ5jOrWPiitjg24flNSiHJvSwH2kHxE5zVLgeIoY/0f4RR 0a20uuP8PcN9t0M7KoVKu6IuO+ZKKOaA7K3PYaI3QQCPJW35DvOlfCFD5hbbfA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266999 --- Comment #3 from Seyed Pouria Mousavizadeh Tehrani --- I have two net/ocserv applications in separate jails and give them unhide access to the "/dev/tun*" with devfs. The ocserv will use the /dev/tun spec= ial control device file to create tun interfaces and then rename it to the one listed in ocserv.conf ("device =3D vpns" by default). The default with "vpn= s" was not working, so I changed the configuration to the "device =3D tun" and it worked. I also need openvpn-client on my host in another FIB, and to make things mo= re predictable (actually for PF), I used two cloned tun interfaces (tun257, tun258) in "rc.conf". Finally, I allocated them via my openvpn-client configurations. Note 1: I used same devfs rule for both jails. I want it to be separate for= a clean configuration, but when I separate the devfs rules, the jail that use= s a lower number in my rules will not see the "/dev/tun" special control note. https://forums.freebsd.org/threads/ocserv-in-jail-cannot-open-dev-tun.86627/ Note 2: openvpn-client is not in jail, but last night due to multiple crash= es of the entire system, I created an openvpn-server in another jail concurren= t to the ocserv jails, which is doing tun allocation dynamically in their VNET. --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=