From nobody Tue Oct 17 15:56:22 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 4S8z9f3W8bz4xgX3 for ; Tue, 17 Oct 2023 15:56:22 +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 4S8z9f2Mp0z4G9G for ; Tue, 17 Oct 2023 15:56:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697558182; a=rsa-sha256; cv=none; b=fhjhGCIJ7XG3NrLnpPmMi0wKUfpMrI91x5gxvy03iOr41QFpe5/hcfHOKpeWO/1F+O4b9M Wu6B0mw5PqpadGgLVlyut4NcuJGSObWmJdZonOOxM5Wx0ZPtXS8xzPsEq8TSSpOINrCsy5 hUjX/5KY/bF5k2NVbJ/fOOVWuVCsrxqXjemCndllajQ1PQI/N5XljoXUhKLYsJIfgH8HSk 8lyXIHu8hcHc/xriKJaPPIt4QdtrdCi3jKnEA5jwm8extsGRM/ss2MQUsyeH9Zvm4zkXUR j6zSFbafvAJqfFQZPm7HCwGmCoxQz7/Csxg3QP+6NjLGU3HUenNW4QjQH6WvZA== 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=1697558182; 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=LbirabjV7Kx8LZAbdQegX2ZFrL98P3nTTh+ytZZ2PaE=; b=XXsGepPymW6gvQatvpcu+m/LXgxJw/TPd8ngsZQ+d9uvrJJ56kdFVtdJzyRx8VGEBBl4D/ TftShyfvDTRjyvhVHRFH76RyKGbwZmzG+2Wsr6PCFlL/pnlP9SI/RAPIewtthXV8TykwIX y5zUhh4MoNWRxNGcT3i+7f9iPpvwhXxWlm6ZYhJeOTSW6WxpBwpDr/3m7P7fzMwCBROxlE Cd1EUtc2f4VDQ8FJcIdy2hPRwSFZ31xS5OOz1ZYRfPf4ZhMpTi3c23A5vgWgcMdnY/w0Sj j1J+1Ac1sMSX+nE3cRZW9zSkGRlYpNeIcK4Borsyyva6hoLbwSxZjDf5nQ4ZMQ== 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 4S8z9f1T3XzVhX for ; Tue, 17 Oct 2023 15:56:22 +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 39HFuMjj003939 for ; Tue, 17 Oct 2023 15:56:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39HFuMfF003938 for virtualization@FreeBSD.org; Tue, 17 Oct 2023 15:56:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla 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: Tue, 17 Oct 2023 15:56:22 +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: commit-hook@FreeBSD.org 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 #18 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dfd8b9c73a5a63a7aa438a73951d7a535b= 4f25d9a commit fd8b9c73a5a63a7aa438a73951d7a535b4f25d9a Author: Jan Bramkamp AuthorDate: 2023-09-04 08:38:25 +0000 Commit: Mark Johnston CommitDate: 2023-10-17 15:24:11 +0000 bhyve: Use VMIO_SIOCSIFFLAGS instead of SIOCGIFFLAGS Creating an IP socket to invoke the SIOCGIFFLAGS ioctl on is the only thing preventing bhyve from working inside a bhyve jail with IPv4 and IPv6 disabled restricting the jailed bhyve process to only access the host network via a tap/vmnet device node. PR: 273557 Fixes: 56be282bc999 ("bhyve: net_backends, automatically IFF_UP tap devices") Reviewed by: markj MFC after: 1 week usr.sbin/bhyve/net_backends.c | 52 ++++-----------------------------------= ---- 1 file changed, 4 insertions(+), 48 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=