From nobody Tue Sep 12 11:06:00 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 4RlLNn1H8Bz4tBK5 for ; Tue, 12 Sep 2023 11:06:01 +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 4RlLNn0JHsz3DYq for ; Tue, 12 Sep 2023 11:06:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694516761; a=rsa-sha256; cv=none; b=r2X34PM3mvgLF0t4dnz0sEXtd4B29QPOzPNomf30tlmrysRu+Wh8xN44qoShlnVc7XKx4Q 0IuDfKJvM5yHM7DZja0AwfkNaIZb1W2Opd/S8nntO6jGRsCf3Tq0Rk0x84u0CocYxcBCB5 ervYeLEAI3emsImTHpPClbAaOF1uUIOOwQp7jlhyehTrHv4iEpA9aHFJhR1yB0+c+jFTrn aIhQlbaFDsi2jOpOOBPKuJY6hFNVJ1zDKpmqXVe/5+RYUEHjh1gN2K2+1oGATNe/ZB7eY4 37gJfI5KisWT/kYxVaE3EVLNACS0aG6e4zK8nsjHkYuqZQ/7iui/CUrxoxfDWA== 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=1694516761; 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=2xMk+rBhzwl6I8PXIR3RQPZ+eZshmoRCOCQ0sP3lM8M=; b=TdCP6eN32Q/8SghcUPL9zqfn6Kqa6vRspGMlrG7P5mi0oq8O+Cq9HG3gAzlxcE0cwUAH5D 2d2Cjr+HBIR27aeXwHDq5Ix7jPa5p2GpQtcjzTtdBNPs+YR3TQpi8GQQlp04bhpBY5crKY J+4PbYIGXQIn5bsoXj4TONB1XqS1/5JquUrHjMkqpex3d3PcWwsxhRQYTerPW8aAYQ0SXs xP0v8pxcs2pnvBx0aFmTHmTAD7lCz/EOR9bLVciUOzEYYqh7wd9u2vOW66m7naBRdeEqb3 7ayn1FRrgFefdVKveYkdiFh/aZvXW0bcypmABffkEZqaM4tSDbNQgKUlvyjJgQ== 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 4RlLNm6Vr2zVMw for ; Tue, 12 Sep 2023 11:06:00 +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 38CB60Wf054268 for ; Tue, 12 Sep 2023 11:06:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38CB60Bf054267 for virtualization@FreeBSD.org; Tue, 12 Sep 2023 11:06:00 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: Tue, 12 Sep 2023 11:06:00 +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 #9 from crest@rlwinm.de --- (In reply to Bjoern A. Zeeb from comment #7) I get the impression you don't use the VMIO_SIOCIFFLAGS ioctl if possible a= nd the existing code works if an IP socket can be created to invoke the SIOCGIFFLAGS ioctl on. Treating the inability to create a IP new socket as non-fatal would allow deploying bhyve in a jail, but it would still depend on the net.link.tap.up_on_open sysctl. I've looked for alternatives, but the VMIO_SIOCIFFLAGS ioctl is only API I've found that's useable from inside ja= il a without access to an IP stack. It would be possible to fall back to VMIO_SIOCIFFLAGS only if the IP socket creation fails and keep using an IP socket if possible. I would like bhyve to always use the ioctl directly on the tap device inste= ad of bringing the interface up indirectly by name through a socket ioctl sinc= e it covers all cases with a single code path, but any fix that allows an unpatc= hed bhyve to be started inside a jail with both IPv4 and IPv6 disabled would he= lp. How would you like to proceed? I'll be at EuroBSDcon later this week. Is th= ere anything I can do to help get a fix for this regression into FreeBSD 14.0 (= and errata into the older releases if release engineering agrees)? --=20 You are receiving this mail because: You are the assignee for the bug.=