From nobody Thu Sep 7 14:35:48 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 4RhMH90Yr3z4sfTj for ; Thu, 7 Sep 2023 14:35:49 +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 4RhMH86R36z4fS8 for ; Thu, 7 Sep 2023 14:35:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694097348; a=rsa-sha256; cv=none; b=Wud1d14QfqEB69B0ozpQYvqLBtL0Bf3VNhy9mdAF9p42MDCOnPj+LLwRqE1UsMHshC94sq dfz/YA4OTg9vL3gylpdyF8CGI0YZzFpTJojrIZLmFL2p+01fUk1uLleetPwooA5xD++0Yc GXiT7qoLpE5A8qfXm1Oeh3e3kQP4bHwrqUeSyw5/qNFjz+Kgid+kBPgHcGVaEXzGnsITBJ Qr2k+8XYJ1t7jl3g1u6PGgcly42YlRIg5QfoyHdjphiInRiUkGawm8E3QNXV3vSuwCOShb bxCfJ9XjJIUsYJW0ol5sYzrdkyGWmGRKsVhShIUz/Dl2yMx8/CbjFSEhkVyYdg== 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=1694097348; 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=Ax83FXs9q+1ELJc6jJ70cEi+cXLJvCJd4ro70ualtCk=; b=X2qpE04Q3wazxxx8EaoYWt72S177WLWFX6k+r1W52TG/mWT7/QSMdlEiCFSjWjUzTwzdZY 1F9skeh2xVsnovt9dRiydOozAhbU1QoCwFxy/oLcdV6DVA4Z7u1Z4HQ/2M8Mg877rDwSZn aFkijyMg4CisAKTvQnC9iyyho8hhStB96hvI5bGE0C63zVeUGF1p9yBd/cOwK/EVen/89U WouoINtREhMzmnHWEbw1VA4lNHaDVKC8+byE8s3gZx1lMLKPIlZmeEMiDvTna0IyYmir+i ClKva4FF5vSO7sNW1RERfIcBIy3dlrydmmHjnSn/cwZxd9WLOYjQ6TCnjFt9ew== 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 4RhMH85LKvz12pL for ; Thu, 7 Sep 2023 14:35:48 +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 387EZm8V059584 for ; Thu, 7 Sep 2023 14:35:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 387EZm8p059583 for virtualization@FreeBSD.org; Thu, 7 Sep 2023 14:35:48 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: Thu, 07 Sep 2023 14:35:48 +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: bz@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: bug_status 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 Bjoern A. Zeeb changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |In Progress --- Comment #4 from Bjoern A. Zeeb --- Untested but can you try: {{{ diff --git usr.sbin/bhyve/net_backends.c usr.sbin/bhyve/net_backends.c index fa7cd9c81f46..9b4ca9e42c99 100644 --- usr.sbin/bhyve/net_backends.c +++ usr.sbin/bhyve/net_backends.c @@ -270,21 +270,22 @@ tap_init(struct net_backend *be, const char *devname, s =3D socket(pf_list[i], SOCK_DGRAM, 0); if (s =3D=3D -1) { WPRINTF(("Could open socket")); - goto error; + goto skip; } if (ioctl(s, SIOCGIFFLAGS, &ifrq) < 0) { (void)close(s); WPRINTF(("Could not get interface flags")); - goto error; + goto skip; } ifrq.ifr_flags |=3D IFF_UP; if (ioctl(s, SIOCSIFFLAGS, &ifrq) < 0) { (void)close(s); WPRINTF(("Could not set interface flags")); - goto error; + goto skip; } (void)close(s); +skip: #endif #ifndef WITHOUT_CAPSICUM }}} --=20 You are receiving this mail because: You are the assignee for the bug.=