From nobody Fri Sep 8 08:43:13 2023 X-Original-To: virtualization@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 4RhqPs6h6yz4sg81 for ; Fri, 8 Sep 2023 08:43:13 +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 4RhqPs4VgYz3RLT for ; Fri, 8 Sep 2023 08:43:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694162593; a=rsa-sha256; cv=none; b=pyz6km6r6ftHpddnvfiDdFQIV9IY4sRYf/IxyPVE8crDbhLj5nSX0oVdMNeHxaanf6FEiU kPudJ46OkWzWvWqV/Yb5KoOQm9iLKCmoar97MTBsNMkqACC/kkavUC4GNZBdBDj6BLO/uL uzdjAVtvikfnFfbZUbuWmMOgV2R5Bzqt+wj5buLmXna8Uxv/Z7XgBDCT8YxHQHip1vNe5S eW4M36BfBJ8cADo/hG35oL+itlc3dk3SCgplWJhQdlaN0unzLAOVu8EKMMIx24nWZfo0Us VqlATumTSXKDf1rxe8KEk5egLDp+weV15bJwM5RUR8OxAgfj2lfOMPM2OvTC9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694162593; 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=JTeBWRNmXuPRTF/cKhgkK87lFUhKaWnmXm/ebEWdwzk=; b=fgrLQTeHLFkxA5hG2i+CBN61oce3k7hS86QLDP69+hsJ7PcDv4MCMRqDRnCwOY9/m4e2Na NjoBHE2iHTB3tUeY2h+/kpup1/sqXgwiL0l6EjKETljs+LFSQ0W+61G2qAl2NqDISTUMnM Ihiv6vM7vFIw6sOvjuR8ifW0l0OJE0E+CT3fJt/EKisYdgN1u49mlI3CItmvUhzaNCRGIQ B57HpTLil8lcCPyW3fP1dMatwBlb/NF3p5v88g/0tNi++JGvCBf1xttB9+o4BDNczCDbe4 B4cqs3pMniWeaT+pcAEFAnqnmDhf3rrhx2oBSgrlzX0R3ABi4dsrPnBGWKKaaA== 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 4RhqPs3ZqqzbkM for ; Fri, 8 Sep 2023 08:43:13 +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 3888hDu5093008 for ; Fri, 8 Sep 2023 08:43:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3888hDh4093007 for virtualization@FreeBSD.org; Fri, 8 Sep 2023 08:43:13 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: virtualization@FreeBSD.org Subject: [Bug 273557] Regression preventing bhyve from running inside a jail without IP after f74147e26999838e03a522bf59ea33bef470d356) breaks support for jailing bhyve with IPv4 and IPv6 disabled. Patch included. Date: Fri, 08 Sep 2023 08:43:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: bhyve, easy, patch, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: crest@rlwinm.de X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: mfc-stable14? 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: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273557 --- Comment #8 from crest@rlwinm.de --- I create the tap interface on the jail host and apply a jail specific devfs ruleset to it allowing only access to those devices bhyve needs e.g. vmm/$n= ame vmm.io/$name.bootrom, tap$n and symlink tap-$name pointing to the renamed t= ap interface, nmdm devices matching certain patterns, one CTL port for virtio-= scsi etc. The bhyve tap device is a member of a bridge on the jail host.=20 The jail isn't vnet enabled because it doesn't require IP sockets at all ex= cept for the current code to set the tap interface state to UP. Bhyve doesn't ne= ed sockets to read/write Ethernet frames on tap devices. Having an extra vnet would require the jail to also contain an extra bridge with exactly two mem= bers (one half of an epair and the tap). The other half of the epair would take = the place of the tap device on the host bridge. Such a configuration would be **noticeable** slower, harder to configure, and provide a larger attack surface. --=20 You are receiving this mail because: You are the assignee for the bug.=