From nobody Wed Aug 30 09:39:45 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 4RbK5H3VDFz4rwQd for ; Wed, 30 Aug 2023 09:39: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 4RbK5H0cBzz3V3D for ; Wed, 30 Aug 2023 09:39:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693388387; a=rsa-sha256; cv=none; b=waNn6JmSNAK6YaqAcYXsXbCi8Eb9G2dOhjJ/Zccgi6W7v3EPxyMOufDiqcEF2TWy7sWgLc 08RfuMXiBhk6kAqQeH1zTbDUwJYOTrPkFQg0aNtBFOc88Fi2itQ/0EFLqaFJwXu0egXD7v KLMIOueCG6h3UiJswEBQCuPDnM0VEnaQ0gNDGr8gaw9R6dnXzngiTQG3rTlidWrU7XcUDz vtwBM59Gckq/HP+wECzRamWPfQenJTrWjA96JwF1Hoq0scPROwPG9f45625sGNDOk5Z6m9 zuIxkJaxtdeiDfHMjE+keK73HQrNbW/doTC8637wKlMfUTLjITggGEI5Q8mi5g== 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=1693388387; 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=3Z5m2X5qMpRXHpaDlEAtsoRoABhwi+rIvBKwsitbqpI=; b=P+/WV9L2mi+HD3RWK4aCRX2rPErF+mJJS7LD5Ix6Grgi0p5P/fNTdGUdJH0REhq6j6R9vs UmiBFcw3p0FJckI6BrjkqeFo1JDtyLRoqUdp+5V1kjWO//Opn26rJzQGZ5pImhSjS2DqxF w0tiw8vB2amxVcFXWY6wB3PxQXDE+2CyftKC+DsSY/gacdWLG1hGsqz5XcTeO/Z/c11+fI 4n63ZVUxpK65RVQg6F1K9mEPTdOsSHr5IBIYPBfjwWtIQ9ZImhVe1/k8CC9z6tS/LOVgCZ 8fkrfglC65pV6183+o0N4F7dKWtrKN7ZvQ5Kwglmz78ezy9usB2nmD+xqVjiOw== 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 4RbK5G6ptJzVBM for ; Wed, 30 Aug 2023 09:39: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 37U9dkaA060321 for ; Wed, 30 Aug 2023 09:39:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37U9dkha060320 for virtualization@FreeBSD.org; Wed, 30 Aug 2023 09:39: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: virtualization@FreeBSD.org Subject: [Bug 263062] tcp_inpcb leaking in VM environment Date: Wed, 30 Aug 2023 09:39:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: paul@redbarn.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D263062 paul vixie changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paul@redbarn.org --- Comment #14 from paul vixie --- > ... > For now the server already has stopped working three times with: > Aug 10 07:25:38 mailrelay kernel: [zone: udp_inpcb] kern.ipc.maxsockets l= imit > reached >=20 > I guess the DNS queries are the reason for this. > ... this is normal for all recursive dns servers not just unbound, because kami= nsky resistance requires randomized source udp port numbers for cache miss transactions, which in turn requires a moderately large working set of bound udp sockets, with heavy churn. if this turns out to be chipset dependent, we should be looking at atomic t= est and set operations. i long ago turned off hyperthreading because microarchtectural details turned out to be motherboard dependent. there may= be similar problems still lurking, but on a lark, maybe try turning off hyperthreading? --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Sep 3 21:00:27 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 4Rf40r0kgxz4rJKP for ; Sun, 3 Sep 2023 21:00:28 +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 4Rf40q5mMJz4bhS for ; Sun, 3 Sep 2023 21:00:27 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693774827; a=rsa-sha256; cv=none; b=mwGJpff7C+9TRm5Tg538OxU6Q1yeKcd0OMffOPOftKxhb63xklp2SM5x233TMhQQ33Udxr zR1Ci5X9vkesEY3UeqF0s7WxLG1nTRaVb8CMyDASKvdL4lroQNy163Rd4g3ic9nQO8y8Sz t1aKZcBi/vw1YPAYiJFlzE3mvCUsL3rspgQiVNMLFCz+IScBzw8bnuuvulG8GcoXjceYZi UXJkp8TGxSkC/h/hnxAuMJE8+b5viYQb4CVtLTSZYlyS9L/h5H+J2mA7fn978qj99Fgg9h Feipuyd4ViFz+fxtENruPO5OqxXADzd2H1Z5DhV7l6JBsa0Hvc1HKOFPLPiWlw== 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=1693774827; 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; bh=oqQBJWDNrBL8NppdP7m+tNPOJJOxJpa0onRsbfTLAmI=; b=nmjN12eNzD5Ehr1Mu5RJbYqVkWOEA1LfLcKKmcUSCSYUrUwBEgvFrX4V82a3c5i/igBCgG S6q1MFcr0Fkr3eufBIsFPRx9fQbPCOBd9BGpWDJFUx+NOs6KFT5vDbA5hQRKMEQmPDAp8N QojSv0HI/M/lg0XRe5zduYlDmruuNamuwnYnyDD610bgM60Eog984keiSijFfIE4Kzd9uO +R6xUFket6tbH/GBYjLTWzgHgCgTkd+gf0z30CsnNj3ysqvWJf6Es6MgmBpId9nIRVFXtQ 1PdyUVAi5oRdMwJDOFPYjiXYgdaM1bQwVkIVxwdtGkqeSQ5ER8VPM1AOKQooBg== 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 4Rf40q4qxnzfS2 for ; Sun, 3 Sep 2023 21:00:27 +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 383L0RQI087523 for ; Sun, 3 Sep 2023 21:00:27 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 383L0RMg087522 for virtualization@FreeBSD.org; Sun, 3 Sep 2023 21:00:27 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202309032100.383L0RMg087522@kenobi.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: Problem reports for virtualization@FreeBSD.org that need special attention Date: Sun, 3 Sep 2023 21:00:27 +0000 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 Content-Type: multipart/alternative; boundary="16937748270.f0D6e0b.85206" Content-Transfer-Encoding: 7bit --16937748270.f0D6e0b.85206 Date: Sun, 3 Sep 2023 21:00:27 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- In Progress | 247208 | mpt(4): VMWare virtualized LSI controller panics New | 240945 | [hyper-v] [netvsc] hn network driver incorrectly Open | 244838 | "bectl activate -t" does not honor the -t flag in 3 problems total for which you should take action. --16937748270.f0D6e0b.85206 Date: Sun, 3 Sep 2023 21:00:27 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status      |    Bug Id | Description
------------+-----------+---------------------------------------------------
In Progress |    247208 | mpt(4): VMWare virtualized LSI controller panics 
New         |    240945 | [hyper-v] [netvsc] hn network driver incorrectly 
Open        |    244838 | "bectl activate -t" does not honor the -t flag in

3 problems total for which you should take action.
--16937748270.f0D6e0b.85206-- From nobody Mon Sep 4 08:53:49 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 4RfMqx5Ty4z4sMrd for ; Mon, 4 Sep 2023 08:53: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 4RfMqx0CYvz4MDt for ; Mon, 4 Sep 2023 08:53:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693817629; a=rsa-sha256; cv=none; b=wx3JsR/hhKGexBqtEmllkvbPkSXwelg3dDiECYUVqH8RA8hldBWTzAXVAzqfQocFh09+wy 9fCilB/5CYCz/r+CAW0RhfdYLxtggtkRfqVRlBbXCF9mCcjrWn/NqwqBL7487I4hK6RhLD ZV5ApNsGzBYQmYurpMXDSnluaXzUgh0DVsWCY6j3hjV79uOmmbkDrxseSIwJ+0gt+UjLJ8 ceKnSpXYmrOAtEa+HNPqflEx6Z4ff+W55L1gzefKKC5UOTfKUijZPICAXuyuD7aH49R57i u1xVSyrvKjzMXh48wGi4R/SWHesidRy1Apedo65cXJq481x+Ek27APFZYSDUUg== 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=1693817629; 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; bh=LlR+NgoSXLhk9+btJj7mARj4/sc4K3c738Bue85HJyE=; b=Sfn1h2C/XCLcsBKhj8MvltMLYDqS05vnDrI7rv4/BGrVH4LiOlktUuQoZvuJifAFepXD4m treo4u7Lvzw2enyRlG6wF/OpA+6R29ftEO0NBmpzCe2Ba1Sl3uO2XExZ1ZwbIP2tmHmcKp QnHaL/xnMmNcaAWsaZbyQPBIxg/6XSU8rVoyuToeB11cIPbEi5YiRJUJtB0jA1lU0FUalO zFxhuld8I+bf3Mg1wLpFERQKupjo0XTgd26Ky+7E14d4BpKtrM8lwRiOur8CAbPdjX09Li AQUBfHVUJPXfqiQzn0jElSYamC4a6soZa4xRlpMmj6lCnlSy67wRjRbTjLrb7g== 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 4RfMqw6Pjxz118X for ; Mon, 4 Sep 2023 08:53: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 3848rmH4047799 for ; Mon, 4 Sep 2023 08:53:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3848rmR9047798 for virtualization@FreeBSD.org; Mon, 4 Sep 2023 08:53: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: Mon, 04 Sep 2023 08:53:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: crest@rlwinm.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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 Bug ID: 273557 Summary: Regression preventing bhyve from running inside a jail without IP after f74147e26999838e03a522bf59ea33bef470d356) breaks support for jailing bhyve with IPv4 and IPv6 disabled. Patch included. Product: Base System Version: 13.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: crest@rlwinm.de Created attachment 244627 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D244627&action= =3Dedit Use VMIO_SIOCSIFFLAGS instead of SIOCGIFFLAGS Bhyve used to require either the sysctl net.link.tap.up_on_open=3D1 or an external wrapper to set the tap/vmnet interfaces link state after the device has been opened. Bjoern A. Zeeb's solution to this uses an IP socket (trying both IPv4 and IPv6). The code as shipped in FreeBSD 13.2 refuses to start b= hyve if it can't create an IP socket to set the link state of the tap/vmnet interface. It turns out there is a better way to set the link state on tap interfaces since there is an equivalent ioctl() available directly on the tap/vmnet device. The included patch against FreeBSD 13.2 removes the unused variables (ifrq = and s) replaces ioctl(s, SIOCGIFFLAGS) on the socket with ioctl(be->fd, VMIO_SIOCSIFFLAGS) on the tap/vmnet device. The patch restores the ability to run bhyve inside a jail with ip4=3Ddisabl= e and ip6=3Ddisable. The guest running inside bhyve accesses the network through = the tap device without using IP sockets inside the bhyve process. This previous= ly supported configuration provides defense in depth against guest escapes. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Sep 4 08:55:07 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 4RfMsR5S5vz4sN8r for ; Mon, 4 Sep 2023 08:55:07 +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 4RfMsR4M8Lz4MLW for ; Mon, 4 Sep 2023 08:55:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693817707; a=rsa-sha256; cv=none; b=hFCNFY4R4NQ5yZWz+m7NRJHKnfmNup2GSl+CFl+9Mcg/obn65lnG6g2JGB/6k7ifsjcK6u n8lsoRbdjFy0kw0eAFAg+3bxbDmd0qv0UaT5ek7Oz9ab+twk4ll5Gr2ClUnNK82qU/Bh4U bJIJVodXt8ImCVSfuhyJQQ9fR+JS9ufvSDOOrQRK6lCPw92Nj/NxpQWk7nHWZnTOHAaAkv oh6UxoefMOv5c+hZj0JBO25WqzDK3CgSs6EVpW/0Mg089aZkjy6SZmwbGUMpRzqLp4oqs5 1qN7JJz5bbKAdUp2z9dNTX4bLmLKwblgLqycfFFpfjg0EL+qvRvxBSbFxkqPOA== 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=1693817707; 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=kR3NAGmUOqgXb1Duu8hQdqhAt5mifsSKm2r+uR3RIB0=; b=LlIoE2DTc9i1Yd22H+a8/7EjRW4nnx5uWxcKJO6NlHYMFH6xl4rwDbzudnUYuWz9zByHtJ EYz+At1Df4688/ioWzrneeLl8yEmhcNMAFPmi5mIsoZtGWi6mB7m4aCEQ5HvclV5Y/PD2b 16+ebP+jg/AnD4BsN9EYOfYs9DYF5nTZASjlYF9c4Z+DeQAP0g1T7GthKSloejhqD0Xk2j AQvPX5GAsuhc4o8BwdzmKrZaAsu765us+6NI7BKzd841/tL/owINWvp9Pua+7s8CBGgd4N c3vxxwLP38+eNpn/PaT3xMFelj7dqWBtwDxtUn120JRcEu8iYCBTPjMrOvT2vw== 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 4RfMsR3SHBz10G9 for ; Mon, 4 Sep 2023 08:55:07 +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 3848t7bB048439 for ; Mon, 4 Sep 2023 08:55:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3848t7jL048438 for virtualization@FreeBSD.org; Mon, 4 Sep 2023 08:55:07 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: Mon, 04 Sep 2023 08:55:07 +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: 13.2-RELEASE X-Bugzilla-Keywords: bhyve, easy, patch, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: crest@rlwinm.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords 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 crest@rlwinm.de changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |bhyve, easy, patch, | |regression --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Sep 4 08:56:07 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 4RfMtc10wQz4sNRY for ; Mon, 4 Sep 2023 08:56:08 +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 4RfMtb36BNz4Mn3 for ; Mon, 4 Sep 2023 08:56:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693817767; a=rsa-sha256; cv=none; b=jYIbWCcTcXxG+lfatVxcaGyhWm17e339PPfQrlgcxAFT7AoLTdbzopuNdrFkIRthmWk9Bc sj/YT3Qbbg1iEEqjAepbwY3ML84qC3fDsBltPhOxIpn9MJY6Hq9iUkLgNo8LkM2DYTUZCQ eA19y0C4Llg4jolV3tTMPjRUsgYAMxX3NuXqai9Lrl7JVhoiDuUfC6p+BQC+fuGul2O/sL Ylw6Pr/2GT+QUlo8iyx/Tu0Q7Pf+fk9GpJ/UW/Vk856Z7vGVYElg+QaFHprHSn6ztWXVJO h46G+T/DiBXpD8X4m4Ux+3yrU9nLThmtR70FNSMqLnupL0eEkQnpPiVGQUgfbA== 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=1693817767; 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=6TGvGsg5y1IbQmlF61T6QB+yEOD3TM9fpDGNbscES4E=; b=U/KHuZoHxX6g787zUmJIbQZG5ABknt78VOgFWyuiW0+WtANNV2v8mumEGUBa8mtkAY61mV 26ALMHJE5wPDQ0FbcH1Lv4jdUy3LP9EMMBLH/ZQxIaq+8ix/bV3pF5RgMCytbRlTPpa8tN LkELmGJQoqJAz/qe1x3tr63PFxRppWFfxDrijK7jjZSHpqDFO6JMF4JL0YXVbFjD3c1thR cF9QxNcltITr6i0c851mbmtmuX+sD0j5pMJ3DDCpELQ29kdfYYUGDBnMRFLaRgoL+BaWL2 8IjpB/bJ89XRO41yX/d2OICxj0c6XEYPF6CNsG5eLi+Gu/90mg9+iyKfOIgNzQ== 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 4RfMtb2BsRz10JS for ; Mon, 4 Sep 2023 08:56:07 +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 3848u7Fg048895 for ; Mon, 4 Sep 2023 08:56:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3848u7MR048894 for virtualization@FreeBSD.org; Mon, 4 Sep 2023 08:56:07 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: Mon, 04 Sep 2023 08:56:07 +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: 13.2-RELEASE X-Bugzilla-Keywords: bhyve, easy, patch, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lwhsu@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.ispatch attachments.mimetype 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 Li-Wen Hsu changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #244627|0 |1 is patch| | Attachment #244627|application/mbox |text/plain mime type| | --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Sep 5 16:28:57 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 4Rg9tf0rSfz4rlt6 for ; Tue, 5 Sep 2023 16:28:58 +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 4Rg9td6wrZz4mqZ for ; Tue, 5 Sep 2023 16:28:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693931338; a=rsa-sha256; cv=none; b=LY7T4sJrZiCpDJgcYdWN2nylm19v4H+XPbd6qkMwuWfrPIhje/OJtUfevK3sL2/UnAH8GU tfTfENIQu0Ec/Ms6KuRwYlT+FmK/bTP2+5zMRHn6q4YrsrT1TsdEm0E4+Mh5BhCNshuvfL eGFJy6NCICNt6lkjeCtkXz4wtpF0h60b8bRcc/omWpLWrRc/iTuomFeHUF9xh+u2Spghj+ 85qcdfnNWFoqWyClhTTQ1ErR04JbEXgoGc5XQmo4BYroU5k6d1JXA2byYzBn4WUqIvrXSS 4QdGBoYUuf5fbKVVQi6qyoazgy41X5THNarVbeVeoNpYVk/egrKWmpxJe3Pq/A== 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=1693931338; 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=hhEXHtTJh65RSLTJbaRxEsMoIYZNGrXxuxCiH1HupZI=; b=ARMlfgnQqwqO25ryNlD11Kg+9IZ/V9rLClaixvyV4QxCtTvwEGVs9jmRTPwwwLVqcZ2SBO YQuTaiYzWXH61cPljrX3VBl96CuqJsMd3vW5mRQlvWstGKH+W26496paxr42E+hFE8xuLZ HkVTFmDRn/bKU4wO4TmDnzs76itMw7RLq3EySo+/R4pOPAYGIRwJhbQQ+Kkn2GSd7lk5Qt C/Ci3Ms0GKdm8yqcxn92ECNjlPUHp7ZPz5bZlPaa6/I4WpsErStLcEHfGjrGPcQM5JpU5e SoHtHe2HHl4GHHGs0MuqHFh3OKiHoelj/ju1ymSxatlAskrcPwQFabolUKi/PQ== 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 4Rg9td5tVJzgM0 for ; Tue, 5 Sep 2023 16:28:57 +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 385GSvoF014078 for ; Tue, 5 Sep 2023 16:28:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 385GSvZ9014077 for virtualization@FreeBSD.org; Tue, 5 Sep 2023 16:28:57 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 273372] SR-IOV Networking in Bhyve Causes Chelsio T520-SO-CR to Fail on Host, Kernel Panic if Reset Date: Tue, 05 Sep 2023 16:28:57 +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: 13.2-RELEASE X-Bugzilla-Keywords: bhyve X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: np@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D273372 Navdeep Parhar changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |np@FreeBSD.org --- Comment #2 from Navdeep Parhar --- I tried 13.2 as well as 14.0-alpha3 on bare metal running 13.2 and 14.0-alp= ha3 inside bhyve VMs. The host creates VF devices from a T520 and passes them through -- one to each VM. The cxgbev VF driver inside the VM worked prope= rly in all cases. The only bug I ran into was the kernel creating unusable VFs for a card in a particular slot. It was fixed in https://cgit.freebsd.org/src/commit/?id=3D7063f94283af60818429a0c2d70e80ae4= ad5c146 That is not the root cause of this problem. Can you please try these to debug your problem further: 1. Reduce num_vfs to 2 or 4 (from 14) temporarily, for testing. 2. When the problem occurs, grab the device log _before_ attempting any ifconfig down/up. sysctl -n dev.t5nex.0.misc.devlog --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Sep 6 01:24:28 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 4RgPmY00Vqz4sm52 for ; Wed, 6 Sep 2023 01:24:29 +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 4RgPmX65XDz3Ysb for ; Wed, 6 Sep 2023 01:24:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693963468; a=rsa-sha256; cv=none; b=jXgATUeav6GNeIkzCTvWXwUv2ddBYcLIxEPpJicSGSfNMKeXsRVKJGSnr2a04eC6LUlrpl qRHmQVxl05vrDsjucV3fN/of658JQ4SsRUDdbzRBPeqizfJPJ02803vKIRlpDYQPc6c/fN HW4P5tJphv9F+37M7PC3+u2BtU1psltRQc6qEhVL7ACHBFHmHHmxmwYycFjWkQSImumjjF zI4qFKcrDNHZ0AruyfeWfrBGc1SkJ/IjpfF35ANPKGTECWDQH3+uTILO/RpRUpkScX/1Go 22MVBRuUyc59IxSMW30kGftc/dM220/J5B9YjIsINWx0Ox3O9N8TxgTz9eodWQ== 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=1693963468; 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=DMfyQcRRrdOUs++r5lXLl3MOpH5OSkHqQJoPFe9kR2w=; b=ij04z0pz0g8nIXfokfo7D5BXdPOQF3Yrpdtj25KK4JVrxNileXBcVD76SXv/2/qI/ye6Y/ xULmroddeTKdf/CtTpMLxYnNTUqz+JOEsYfoXJBHHe302qoux4ehybTsF6Am/xu/k4fetZ T5/kne386LFpXevKfcjfB7Q7yS1DrsO7EIZnWvX0JRiKTo1cwkzrP8A6cw1rqEuhbrdz0E mZ6K+q2q01aSFhgRkoxg7znPIPqkmy38TEw2/rmeZVAAS3MBFqNDRHV586GTZR4DUKHu7f nuKHFEazgdowKnLVNyN0CFhz1+xQWjt+B/Q0SXH+s5/3ofs2gHIbCWqMhSivvA== 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 4RgPmX53ZKzwjY for ; Wed, 6 Sep 2023 01:24:28 +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 3861OSc4013724 for ; Wed, 6 Sep 2023 01:24:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3861OSZW013723 for virtualization@FreeBSD.org; Wed, 6 Sep 2023 01:24:28 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 273372] SR-IOV Networking in Bhyve Causes Chelsio T520-SO-CR to Fail on Host, Kernel Panic if Reset Date: Wed, 06 Sep 2023 01:24:28 +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: 13.2-RELEASE X-Bugzilla-Keywords: bhyve X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: mark@markmcb.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: 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=3D273372 --- Comment #3 from Mark McBride --- After reducing num_vfs to 2 (from 14), and setting both to passthrough, I c= an boot the bhyve vm without issue. It's been online now for ~15 minutes. Prev= ious fail time was less than a minute. Whatever the issue, this seems to avoid i= t. Not sure if it's important, but with 14 VFs, 10 of them were not passthrough (for jails), and 4 of them were. Mentioning it in case the mix has anything= to do with it. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Sep 6 11:06:17 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 4Rgfgt2G67z4s9Gq for ; Wed, 6 Sep 2023 11:06:18 +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 4Rgfgt1BW9z4PwD for ; Wed, 6 Sep 2023 11:06:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693998378; a=rsa-sha256; cv=none; b=Kq+e2GU8QaIMgwiaur7QDG20tZgFc5/YozL9KeNYha3qqWAkWJjfxPROLP4Aee6RcIxtNs kb7+hixAVfX2f6O15H/FYRM4hiZN1fkdT+eJLy4FG8+w7CvUImsORzrTcRSo9tZOgfT4Xu G5dfesvf/9La5W2/Au/LFvTpg8o7iofkoiEZWQNw2O5UFcVZASblQyCtyBMgEX9KZ4lgcw HxbEJJHdo5yxDwxxO7cp9HLc9COUanL9OLna9OLzlLKAOH/vIRNKVJUWUrYRnfP2fhW2HO rXeQ2Sh2uHFfaPCMmpqTYe23rj5wTcQmH1MbRLFOorpyS+uAvilCMUC3xMvwxQ== 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=1693998378; 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=R3G215Bmjy+I7yBQHdj/qFk9U//HlpUQ0VC+azt/lKE=; b=DLr6km91NbhA8qLqCxtiTukYcebuToCfKS0xQMkoeItuFr0ksCf1EOV923UGCnL9QuYR27 g84irYM37Z2hj2meox5MtfLVrtQ/L5ILywUniII5I2TPvY4nWeqHy4AM57j8sNMxLCD/yR BzxD03dj6h3vtNu2xtCAmAAzzeNo9R561oqITaATJ1XAH1wLNdS8PhQPrZ+E4Lo8HQg2kL Fk9pgbioqFq+gdFW7lrtMVpvTt7dtmSwzEcOaPUdwMraIkhx01un5MPArIhLbP9wlBDFjL 58Wii3O30uZaoccgoThJZ4rv2q0uJP57OqJQNwRll9c8nETqMGzJ8wFB4MisXQ== 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 4Rgfgt0BDPz1CwM for ; Wed, 6 Sep 2023 11:06:18 +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 386B6H5e080640 for ; Wed, 6 Sep 2023 11:06:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 386B6How080639 for virtualization@FreeBSD.org; Wed, 6 Sep 2023 11:06:17 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 269823] rand_harvest produces 100%CPU on 1 CPU with virtio_random.ko loaded Date: Wed, 06 Sep 2023 11:06:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@igalic.co X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jhb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to cc 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=3D269823 Mina Gali=C4=87 changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |In Progress Assignee|bugs@FreeBSD.org |jhb@FreeBSD.org CC| |jmg@FreeBSD.org --- Comment #9 from Mina Gali=C4=87 --- a commit towards fixing this issue has been. see base f1c5a2e3a625053e2b70d5b1777d849a4d9328f2 review D41656 This just leaves the question of MFC. hence, adding the author and committer of the above to this bug. --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Wed Sep 6 19:14: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 4RgsVd29B0z4s1nC for ; Wed, 6 Sep 2023 19:14: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 4RgsVd07vpz3DVB for ; Wed, 6 Sep 2023 19:14:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694027641; a=rsa-sha256; cv=none; b=DmYVfGjqKynJX5meH2HBAK24C2AFrWpH/u2cM/TRI35HJQw00ALSKD4TXBJYgrcsAA/OQV 7n0Y4/AWYnHun9rgUlpb7xHNxtQQuJ11Rg/n5cWVyk+P4u5xMuF1gP4NzScTl+7goYDf46 o1dhegrapdJPxd7MhNgFV8Lgj3hP6ryvOn1/GbzJme4lnIFlVB+T1+W/ws9xVfQaKu0MmH uQn9ostowtn26DBL/fEb0PrAazW++KUqGqohtcTAIUfCYbqMqBasqZq33kJ8RpqHNjox1L 7IjhosqadY5/mk3BUsj1nvtp4Q+JJZYEDo5jf7nZwyvoo6bg9Fq9iwc+jhvsCQ== 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=1694027641; 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=jUImdlBmqyAWK3zHmiHuows6yY7Otwpqng+DvH4Auu8=; b=hElnxaJfOffRpbHYZECDTjPC4NMYQx/SvUrvBfnn6jD27nLYfPGAOSltb81WGkiroF5zb8 CsKcGpHBGIZ5FHv/H28IqrN1HdaNNFxbXlYcFLoBtP15ZDXCvKSJWsivaMA2okDC0QUb+D qylLlUBeInkON7zUaMSkFyvU1FMCRHmG+Xd2oamYOGJAy5D2wcxJMvT63WrhRZ2KvlTU9O +Wjk5c4izZ2Rw3vAKvh+o8/SjlsvretsQGfRVzgHTv1AXxPKNCE9Wcvs3HbndmVNQVVImz f9zeNCmRKP6D0NoGNw9mWyvssRRnOsdpoDsWS7jYjIqwzlAGnEsfQ0ALVPi+uw== 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 4RgsVc6GCPzTcw for ; Wed, 6 Sep 2023 19:14: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 386JE0wk011659 for ; Wed, 6 Sep 2023 19:14:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 386JE0P1011658 for virtualization@FreeBSD.org; Wed, 6 Sep 2023 19:14: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: Wed, 06 Sep 2023 19:14: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: 13.2-RELEASE X-Bugzilla-Keywords: bhyve, easy, patch, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: crest@rlwinm.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created 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 crest@rlwinm.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |crest@rlwinm.de --- Comment #1 from crest@rlwinm.de --- Created attachment 244684 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D244684&action= =3Dedit Use VMIO_SIOCSIFFLAGS instead of SIOCGIFFLAGS on FreeBSD 14-stable as well Here is the same patch forward ported for FreeBSD 14-stable --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Sep 6 19:15:35 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 4RgsXR5Nq3z4s2TN for ; Wed, 6 Sep 2023 19:15:35 +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 4RgsXR33dpz3Kn7 for ; Wed, 6 Sep 2023 19:15:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694027735; a=rsa-sha256; cv=none; b=mAyiOq52vInXL+z439tU8grxJ8w8XFTnOHGaMAKThS/tiYxfeh8qduKobevpuho7gf/2Yn iwyGo+Fn4ZmONwnvDGmJpksoZChg/ORDQckIuLXYVPb5wUGSXVJOiuayVfMkpqHj5rhRil itilii8dzgluNYEedyvQE2aBHnBN3RUNFRHv4/wDvxJcipBiTQ2QR9LR9st44ULUid0R8l tNkcMnWAhV3cPPHViJAlcrOJC80+86trPYwBXNfvP2rrkkXqYeVnm6Yq3nMLu4BxAHrScK SJPxrWl0iKWHEZiExkyUEh80Thrt0d5fK6KXiRdNfNeHtwlfh+eVazH+xz6hZg== 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=1694027735; 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=MfUrHBMNAKvoflJCwWUNR2ABhRSUzku3UR++aI7q6eQ=; b=OldzoUBlya9rGsSlihkACjW8/uVXWCFuZh6v+jKpE1o18g+8d94fNvL3k5KqFXb8b8fjWA C7B/AWcgK3QCL+epvmPgzv2OWGCMPMVmr6/j+2bslSX1F0vM/TQnYtL0eM/Rhwn9gidgEW QrInkVxA+h/G6hSwrPkIJO3iMUbinaqMMFV/Im+6MH4zgANlhcH6qomHQ4zif1+zP/XKgv 8OML5NAI9We8gZjOh+2t64FKp8cPz1bzGleQ3jt3abt9ehFrvOy1LXYEUdPuzWWTpDZVlY rPcbjAyQR31Yc7PzZHYZtyBwG8C/kh5Y1n7bbc+U3pwJp/WnyjTmFWGKF1ZYRQ== 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 4RgsXR1Lm5zDN3 for ; Wed, 6 Sep 2023 19:15:35 +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 386JFZCR012406 for ; Wed, 6 Sep 2023 19:15:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 386JFZTH012404 for virtualization@FreeBSD.org; Wed, 6 Sep 2023 19:15:35 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: Wed, 06 Sep 2023 19:15:35 +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: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: version 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 crest@rlwinm.de changed: What |Removed |Added ---------------------------------------------------------------------------- Version|13.2-RELEASE |14.0-STABLE --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu Sep 7 03:45:29 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 4Rh4rn6sx6z4s411 for ; Thu, 7 Sep 2023 03:45:29 +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 4Rh4rn5YMtz4Tss for ; Thu, 7 Sep 2023 03:45:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694058329; a=rsa-sha256; cv=none; b=lIclxsg7aiOi1z+cZOix8cvoYHds9ArOIjhXBE7t3RKYrs1I8EyqhQT5xLCLQ81+mZ12Tt AnqtrYef1lET4BCQIfSSnQpkPPgMqs8JMgC4t6Bz/GOnbQeXkLSY5wdll8YM8VWjnreoqm BZPIEDiVevnxAJXWSZN+nuc/a9XcyYTlNE3Srek+W0pA1m/JtpWrxpMQ+dJdUkmAX2E5Db kqFTHO4UvVtT6A5z8zMs7vZar9Fj1RrIqaYJcuTt85zJNmUoJ8p3/mXo1+2rHDQ/kJhVLr 8Z8kuqcI02z+h4zfFhINYaw7QNoxTyInlX2oW21HEw1WL0lAv+/Uf+kp0fIqig== 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=1694058329; 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=f/LKAYvIGw0Cv+Ty30fuDT6M1sfAePtO98rk8hiCwh4=; b=rgcS3IzwNnf78f+zkZDrRBE18u7sC713gh2oOkHJOv9yg9lFaW4J+L9A35jzZaIHmjVqGF ges4YTBBZ9HsqMjanwTgnzGNL7pVzlMINE+C4hU+mz8IRJsVGEqdkGM9w9GfZBtiiTQyG7 MtnIt/cEAIC4APk+7OwlkuDqFHysFYRx9HW+mPjiMof9Ssbzn2Qydj8rA1S6ZjN6ecUJ3/ bz/pjF34P4FQmSngaWcRXQAkKxwVmAO4dOnrQQAhk1PH/gLF9fvIDSTdriJVbEKhrnzwhA bKkEk0EZDzFCeZhJ8CR8rWQ+EESYEl5nM+CMvlISe5/vIJRRsAkYj30Ii5q/Ow== 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 4Rh4rn4g1kzjy5 for ; Thu, 7 Sep 2023 03:45:29 +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 3873jT5t069202 for ; Thu, 7 Sep 2023 03:45:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3873jTof069201 for virtualization@FreeBSD.org; Thu, 7 Sep 2023 03:45:29 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 273555] GPT table lost or filesystem became invalid for new disk hot added on an existing LSILogic/LSILogicSAS controller in VM with guest OS FreeBSD 13.2-RELEASE i386 running on ESXi Date: Thu, 07 Sep 2023 03:45:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component assigned_to 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=3D273555 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Component|standards |kern Assignee|standards@FreeBSD.org |virtualization@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu Sep 7 12:14:39 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 4RhJ8J0vFPz4sTgV for ; Thu, 7 Sep 2023 12:14:40 +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 4RhJ8H6fr9z3RkT for ; Thu, 7 Sep 2023 12:14:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694088879; a=rsa-sha256; cv=none; b=Iz51TDG2khEO4AWQqR3RSNdE9bpaU+OOcy0+8xzBFPtXaYygC+6hv2lbVFIs5Gekdbl9+s tz1ROtj+DtZsnaJR5bKDKI6t0H6LEuiSEuwLE6jK1Gjf8Hnjo9/7ykj/bL5au4OcaiTSs4 +1i/GbVVdl8ITurCF5vHUPZs+Xs4OCAD3cGfZBKPKQzz5ETCKNuZc/GUop4Dqsxk0uYTHK Jw6U+wp9QNn58KJ8pKjJJRZxxS3eiymQRy6/AM3krUA5JGV5WGBWVqth15tEY/MztnmUvI fp1SuIpNaJoHfC+wkJzKU/ujZQisJagQ5mPwfwzxZ9XEkMlowtxwPatqf/1yuw== 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=1694088879; 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=KHgqdUB1AYd1GNdY+W25XTCOpjgPtsivY79R81QMsLA=; b=GkkPvH0B4etSIQI7iX6Er1oT953el8qOG7L5cX2dBhmRWN5Ix70yCv4YP24hHteuEXtPOz uBb8E47l1r6rBBQBWQkTQ0D1KsjvUah51pLLImZTnVaoMOJri060LiS4md1gFdj/lIMIT7 0Eqn/M6LNBrcr6jBtFf2oCXRhRgO5qoplNnTEdnM6cbZWLY60OheDSacCeERbxUpqCjuVc e8/Wt3YAHdQZsVe9xwoS5907nWc4WWJIFdp5vfapKoA/C6mdvx63vnqmVSml9T9Ty9rwpC zDIRTdR+j6/0OSBpO3MZGsvP+pbGA0A+Swi0coVofFTgxuOdV/s9FLYuvhC9Hw== 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 4RhJ8H5byJzybV for ; Thu, 7 Sep 2023 12:14:39 +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 387CEdn5053402 for ; Thu, 7 Sep 2023 12:14:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 387CEd2Q053401 for virtualization@FreeBSD.org; Thu, 7 Sep 2023 12:14:39 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 12:14:39 +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: freebsd@igalic.co X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: mfc-stable14? X-Bugzilla-Changed-Fields: flagtypes.name cc 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 Mina Gali=C4=87 changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |mfc-stable14? CC| |freebsd@igalic.co, | |re@FreeBSD.org Status|New |Open --- Comment #2 from Mina Gali=C4=87 --- hey re@ folks crest fixed a regression in bhyve and would like to MFC it to stable/14 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu Sep 7 14:33:17 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 4RhMDG3Xscz4sdCB for ; Thu, 7 Sep 2023 14:33:18 +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 4RhMDF2gFzz4dld for ; Thu, 7 Sep 2023 14:33:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694097197; a=rsa-sha256; cv=none; b=XBSv/fV6/x161dwEgx9wEVUpxQulOeT7rNS4Gi3Z5TE7DB0s/NNXMu9sNAg43fB2AaU7X4 aBAu01rnvcm3i951vlk7bjnFq1iCcYPOnruzWNJWYZcUvDPT7Vx+qYHI+Kj6H02+SBJdtH vNcOconwjI6XGHSR140yXBbwpDMukygNQ4dxFMU9HzsKSyppDQMbdzqqsBnMZybabnG9aV 0zUAPIURI5j+AJvpuirqWCcYPXQai7T58J/v+1fsq/ytGWPrCZNloH33awQ+0z6RuFLVXx QQohkIssvhgpBNB+2Rvfd+9j+zhkNaPFTVRemqm+rvx5OfBtTLM+hOyBklGo3Q== 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=1694097197; 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=NIKKBr4YjoTUvkiOkk7aq3hmBnAPiOEFEvpjL8/Map8=; b=RkD6uZP0Mr8xt1eTi0Y3LLmCvSzAgauLxb86XFtehG1Fzyt4qNLRr0svAaWKHYVmoAm91E ticzsuZWu6EI8WQusgCPUlr2ipbxN0Wu0VLVjn7Esc/+i67fa7h5sv5z491XFr7FC7ToNO VIDjqDftDDQW4l1COJ54fSCxMuC7JAqshjYd7DV+DhuX/KE4kOc4xC0Up+9Fa8t7fXtO// iRnLGhkOnSTruzTKsopVNCcuD01aka511ov2dGkU9w2Q/sZMPVkQzWuF4/J1ix/Pedf3yt 0wa/ubPEodw2D+xvV4rrf5o02PfnTaV6VNV62RlqQAIJVsvV44099QTOZORfuA== 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 4RhMDF1kWBz13Sm for ; Thu, 7 Sep 2023 14:33:17 +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 387EXHjC058627 for ; Thu, 7 Sep 2023 14:33:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 387EXHfJ058626 for virtualization@FreeBSD.org; Thu, 7 Sep 2023 14:33:17 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:33:17 +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: Open 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 #3 from Bjoern A. Zeeb --- The patch seems to work more by accident because the kernel side adds an IF= F_UP and IFF_UP is in the TUN_VMIO_FLAG_MASK set: {{{ case VMIO_SIOCSIFFLAGS: /* VMware/VMnet SIOCSIFFLAGS */ iflags =3D *(int *)data; iflags &=3D TUN_VMIO_FLAG_MASK; iflags &=3D ~IFF_CANTCHANGE; iflags |=3D IFF_UP; }}} What's the actual error you get? "Could open socket"? I think the real solution is to make the code "advisory" and not to error o= ut in case it cannot UP the interface in that case? --=20 You are receiving this mail because: You are the assignee for the bug.= 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.= From nobody Thu Sep 7 15:50:20 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 4RhNx91WjFz4sD8b for ; Thu, 7 Sep 2023 15:50:21 +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 4RhNx90PKnz3Kg6 for ; Thu, 7 Sep 2023 15:50:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694101821; a=rsa-sha256; cv=none; b=aOHQwf4WPR+csIOuOwYvZDupJwtpuVtEKFFOKYonHtR83qp7BMyrcQiscFefo/Vzypcm6Z lVCi1TsMRTVnBLoKSP1Uujyvefjf0ygmza4ITSr1gF1uNOUpRX9cLmgWafPXxNL5pNi0Q8 oV2PaRt/JS5piZq69GZt5ClJxhgGrjdxFV+tpBryd54eJt0iPOEk/2/BydUVeWzKaUxCaz 4OGRRdyHRGK5lKXrse+hqH+1RSa8LhE2038Ie/JmHMM0be2EHWh5QBMtkpjKnkHpuauDno RAn043qm+k/x4NJ58LKXIpCuKI8zwWu8LZNPD2yJpO0DZqWtUcF/M7G2IXST/Q== 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=1694101821; 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=UsRQmNrFYh/70E5ga2rWPuIWQHCSxFDaNnedAoqD7b8=; b=eRT7/2IdvbqQ5S+2CHrSrze1ngdtynbq1Ml4skJ3oPUReWkxLDpVaCdGO7aMD2ZxXugO4i sAu4fVgeo78W6GNx6h5l0/eFzJ7Xwiw228BYMdSH9yip5TVsrBrXFcp1A0ZeC0+ydHBfX7 FKUmdc6D151bppWJW/kDawFbnZs4L3MtGlKDAWHAfHwWNhI6K7dNnHQFVmO98aTRTNzlVE HyVrYXLTIzR/mj0kAdw/cKAvXFNbT+lbWyqBzQM8ftYKWMb2WgZMS/viQGRhnVRMGdmsmK Wf9GSMNyxlCFKP4afEgk/PSvsnaudX+ddMjVzbZv9vQOHDictAgNOGRrg4KE4Q== 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 4RhNx86VQyz15BT for ; Thu, 7 Sep 2023 15:50:20 +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 387FoKUL061506 for ; Thu, 7 Sep 2023 15:50:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 387FoKLw061505 for virtualization@FreeBSD.org; Thu, 7 Sep 2023 15:50:20 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 15:50:20 +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 #5 from crest@rlwinm.de --- (In reply to Bjoern A. Zeeb from comment #3) I've seen that the ioctl() does implicitly bitwise-or in the IFF_UP flag, b= ut it felt cleaner to explicitly request this instead of relying on this undocumented implementation detail. I confirmed it even brings the interfac= e up if a NULL pointer is passed as argument to the ioctl(), but again that woul= d be an ugly workaround. I agree that it would've been better to make this optio= nal or even check the interface link state before overwriting it and only refus= ing to start the guest if the link can't be brought up, but I don't see any situation where the current implementation of the VMIO_SIOCSIFFLAGS ioctl() would fail on an opened tap device so the error handling code is unreachabl= e on FreeBSD releng/13.2 and stable/14. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu Sep 7 17:04:54 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 4RhQbB4Ycbz4s1Q9 for ; Thu, 7 Sep 2023 17:04:54 +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 4RhQbB2cfzz4Cwc for ; Thu, 7 Sep 2023 17:04:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694106294; a=rsa-sha256; cv=none; b=ucwX3/43Yvyf0uO3pLiT/Hz+CosOe1hGLL1TwZvMcyh9yCSJ0pVIfjaZEwTYQA+V99mBNK al5eQH4PIQUGsdHUEba8gzCnJfazbA9H37jQYOJZAKGcr/SeBvzmma6cLjcpXS9sOK1PmD 461SOUHOj45RnIsunBL5L4ToYVXhY21CphjIH7mFGeBtVVI4Gjr7b5Y01LuhRvD0ZQScgV HigK0U2jcYmbfwG+kMhzOWWd09qgYE3qYRak6lH8sl000AONi9rqIGOXhR35o9+ylEQf1d YjrNQKx9en10iKN5KSB6gXH1g1BWTzpWuULZlupMVU9F48sKrRTkU4pqayRT1A== 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=1694106294; 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=TSrMVxwS3S63FLiw+gybXwqFyC9U3q2TTUfSt35gv48=; b=UzAdIqcvq0uN6zJcOZhnbbemMECuktJbFLq41u3JhAn3ZykpsGHMIQVQn+fzxTfe/uw+Xn SjF+w0bjxXQdhRx+wk9aXBulOQybGHk8MM3PU8cqDTqxMLC5DGvy99skcTQo70anYtUugB bnya563GwWkuN6bTrsVxT4xiMp0MGQwgyWSFhRU4a+GxnrmzDCCneiDMaTlg+gPayNgJIS p/NG3VsRwcNRrCxMdGLSkOPizi+zlZF+uJC4eorIhXdxBt/74SCdd4Y+Ub5G5leN0as2vz lu//9/9ytb+sSntlTR8BD4F4O6U5vC5M/C7ERFqYnFAO8oCCTJ2yXB6Hu5bp3A== 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 4RhQbB1ggXz16JW for ; Thu, 7 Sep 2023 17:04:54 +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 387H4sEo077725 for ; Thu, 7 Sep 2023 17:04:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 387H4s55077724 for virtualization@FreeBSD.org; Thu, 7 Sep 2023 17:04:54 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 17:04:54 +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 #6 from crest@rlwinm.de --- (In reply to Bjoern A. Zeeb from comment #4) The untested patch would still attempt to create a socket (which can fail), closing the socket could be factored out (keep only the last close(s), but = put a label before and after it). It will allow bhyve to start, but bhyve will = fail to bring up the tap/vmnet interface on its own if it can't create an IP soc= ket (either IPv4 or IPv6). For example if bhyve is started inside very restrict= ive jail with ip=3Ddisabled and ip6=3Ddisabled. In this case bhyve will start b= ut the tap/vmnet device will stay in its default link state forcing users to either set sysctl net.link.tap.up_on_open=3D1 to change the default link state for= all tap/vmnet interface from DOWN to UP or have a wrapper poll the tap/vmnet de= vice aggressive enough until bhyve has opened it to bring the link state up befo= re the guest notices it. This is complicated by the fact that bhyve(8) exists = if the guest requests a reboot. While I've always run my bhyve hosts with net.link.tap.up_on_open=3D1 bhyve users shouldn't be forced to do change th= eir global system configuration. The corner case I ran into is clearly a bug th= at should be fixed. I see no advantage to addressing only one half of the bug = by still using an IP socket, but continuing if the socket creation or ioctl()s fail. Processes running inside a jail with both IPv4 and IPv6 disabled can't be create new IP sockets of either IP version. The only way for bhyve to bring= up the tap/vmnet device from inside such a jail is to use the ioctl(VMIO_SIOCSIFFLAGS) on the tap/vmnet device. It's also the only place = in bhyve that I found with a quick `grep -r` which creates IP sockets. From my understanding ioctl(VMIO_SIOCSIFFLAGS) covers all cases (inside a jail and outside), avoids creating and destroying a socket, saves a few syscalls, removes a (theoretical) race condition, removes failure cases that have to = be handled (even if only to report and ignore them). Am I overlooking a downside to using ioctl(VMIO_SIOCSIFFLAGS) on the tap/vm= net device and getting rid of the IP socket and the variables holding the socket file descriptor number and struct passed to ioctl()s on the socket? --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu Sep 7 17:58:18 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 4RhRmq01r2z4sbQh for ; Thu, 7 Sep 2023 17:58:19 +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 4RhRmp40NHz4YVc for ; Thu, 7 Sep 2023 17:58:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694109498; a=rsa-sha256; cv=none; b=mmhKIVN6IFkx9gHR16TywwbLPwGizut/yQddgyjtTxfk72eMmXPW2wt5VFfriM6FQhkCDc AFiyp1YQiZBcnT5Jy8iKtpJwcTTiU3VgzIoPBocyw4BubCZAuWQTVSp+hwF6fFm2bu0ng0 xXTraod/HCWYlxw+pBYpIbw1bdg4G/0osLM8Jy+RVlNMvppbkwGkJVuib3KypXYpeeWq04 W+17oaMoJCmSUR7oF3auHNAJz239/Doj9jawTus8qzyO+hV8B4AClahNltiRgHKYOQh1zy sYy81w1lZoHGQViGGOjrDI3Kg+c1kDkGT5Ix/YmLayb49rjBKqJT4CD8cUsk9Q== 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=1694109498; 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=X2FK14h/fwstbUvkA0ateAvlAZYsRDfrrc+DFZ/6vlo=; b=HsMbvPmCKJshDaf1fHKtgDDUnVb8O6TNULR4Cx775eMDccl2aYzZlVy50cgwoCX0AtzFG/ XkpkMcuu3DMGXo3eFIvWc7mSXVO+yqAVyOPzlX3kxyDpI4mQo7bH/b5qz3wIM7wrj5PMS/ 5eivys+q9O9Wb6NPO/rxFraxOPQC1GomqZby/oAdCVVb6Kl0mhh7JxlcZz64KpnjqC4j0N XZZtXxAToAveirZ+6jyoLhsLnzB9c0eg003c1K7ZJib4dVOBdEUO2RmS5lppwnlesGEQ72 AHjGWpedtu3Shql6swG5FKZcRr3/nC8UZSNYABVtP68Plu64MvxcvqZpGH9N4g== 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 4RhRmp30Vlz1859 for ; Thu, 7 Sep 2023 17:58:18 +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 387HwIJp062376 for ; Thu, 7 Sep 2023 17:58:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 387HwIfS062375 for virtualization@FreeBSD.org; Thu, 7 Sep 2023 17:58:18 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 17:58:18 +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: 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 #7 from Bjoern A. Zeeb --- You can probably do this using a netlink socket these days but the issue st= ays the same. There's certain ways to configure interfaces; taking a short cut now will break eventually... May I ask how you are connecting the tap to anything? Are you simply jaili= ng bhyve and creating a tap interface in the base system a along this way? Ma= kes me wonder why a non-vnet jail allows this in first place... --=20 You are receiving this mail because: You are the assignee for the bug.= 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.= From nobody Fri Sep 8 15:06:17 2023 X-Original-To: freebsd-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 4Rhzw52W7rz4sLvc; Fri, 8 Sep 2023 15:06:29 +0000 (UTC) (envelope-from freebsd@igalic.co) Received: from mail-4018.proton.ch (mail-4018.proton.ch [185.70.40.18]) (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 "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rhzw31KHDz3VNp; Fri, 8 Sep 2023 15:06:27 +0000 (UTC) (envelope-from freebsd@igalic.co) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=igalic.co header.s=protonmail2 header.b=AvtwKLFk; spf=pass (mx1.freebsd.org: domain of freebsd@igalic.co designates 185.70.40.18 as permitted sender) smtp.mailfrom=freebsd@igalic.co; dmarc=none Date: Fri, 08 Sep 2023 15:06:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igalic.co; s=protonmail2; t=1694185583; x=1694444783; bh=aq38UxGIxG6IEF9Ta/sqeVo3H6vFhg9u49aJCSUoYMo=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=AvtwKLFkOAs5Oa8lJlSXIwZI126eLpxpfzSqgmCfvO+g3E8xTwM2Zyl8m50cKaNJ5 4r8ARsKo4PcQnw/RleR3XwV8pgv3L3g2z5BhMLiyDpOmyu/nxm5qR1ImwMwDqEkh/Q EJ0QmPvlL2wvBX/eOVBxFbr8Icd1RJnHP2RM/Id0PdiQmelE+z/DzXunhfZeRGNH8g k1YOKL5u0cldU7LI4UDvKN+gEJ4/jmHNFtjyzrX4njEVUelTkpopTOwEFuGBEeahd8 2FzmZ12iFFbmSY1u3nAnigecv/0ibJ37p17wDxhSO0VgmmH3Mmbf4u7O0X6nM5hWrD 4zohl9RuOPc7A== To: freebsd-hackers , "freebsd-virtualization@FreeBSD.org" From: =?utf-8?Q?Mina_Gali=C4=87?= Subject: Question about virtio_alloc_virtqueues Message-ID: Feedback-ID: 66573723:user:proton 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.07 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_MIXED_CHARSET(0.83)[subject]; RWL_MAILSPIKE_EXCELLENT(-0.40)[185.70.40.18:from]; R_DKIM_ALLOW(-0.20)[igalic.co:s=protonmail2]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org,freebsd-virtualization@FreeBSD.org]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_EQ_ADDR_SOME(0.00)[]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[igalic.co:+]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[igalic.co]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4Rhzw31KHDz3VNp Hi folks, for the past two or so weeks, I've been trying to document the virtio functions: You can see some of my progress here: https://codeberg.org/meena/freebsd-src/commits/branch/improve/virtio I'm currently trying to document virtio_alloc_virtqueues. The second argument, flags, is only ever called with 0, and never passed on to anything. So I thought I'd remove it. However, there *is* this comment in if_vtnet.c: =09/* =09 * TODO: Enable interrupt binding if this is multiqueue. This will =09 * only matter when per-virtqueue MSIX is available. =09 */ =09if (sc->vtnet_flags & VTNET_FLAG_MQ) =09=09flags |=3D 0; after which flags are still set to 0. for now?? What does this mean? Kind regards, Mina Gali=C4=87 From nobody Sat Sep 9 10:53:01 2023 X-Original-To: freebsd-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 4RjVFP5lvpz4sxNV; Sat, 9 Sep 2023 10:53:13 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RjVFP5JrNz3bgZ; Sat, 9 Sep 2023 10:53:13 +0000 (UTC) (envelope-from vmaffione@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694256793; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pExO+lt8UHmK0kjUOnu0vVtEyLRQxvtCu3q+Tjnt/CU=; b=FIv2Paie/wYW9ptwp7jy0HuJa6IzyE4wUNSu8P0TmpT23FO88DQutR2OuBcLD+r+BrL/kd KC4aZ4EfvomYljt/XiC7Gn5+jTOxNBYzb1UAt5KgCv4zKQVhFYRzNMfWp6m1TFa4ycfZe1 3Y3sTn6r+sex5yEsvloLmc8l+5LMTwm4JIYmyznC9XET8RAORIgLcgHQ27xWEIVKhyjrr/ L5KK147q/pp62XvETlR1ZVucE4I4eVUNgrnVdKnjBs7nmeClnk89g7n88ISHtrXNSbEzIO yRkiGynQVK+fD5OQppQhYiRshNV0NDBwDtBswOi+CNKtOOTpfZDqfzjIKfGs9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694256793; a=rsa-sha256; cv=none; b=pIkn/SOImdB7IyCUFa1M3ChfOWtXTEfU5462mZ1QNfJoZ6hFEvI59aNVlKGay646CC42CJ h9v5rvP+LYK8EDRHV/JXyCV9klmf0nK2oWEoWKn6fYdCuxQdbODigWqKmKBKusP6zINaHc GQLTE8BuAAszAzZqegc4fObCD5nDxmTDpzsJRLyBsOSjYTOQ4sV9j8b9d9suoecClx2Vkc H1EP/7cPFi+ZZqMdLYzuDuI/r8gDuY6Db3K9kaUgX+6JDmal1ciBVtw6iSxQ2p8g/UAJ3z bGt6OCmGdy4Q3Jzw3GcqIHMwC49x+PTY6fYSBNLm70V7OFFJauKuHgutkMT8tw== 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=1694256793; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pExO+lt8UHmK0kjUOnu0vVtEyLRQxvtCu3q+Tjnt/CU=; b=A8vroCiEW2k9xY6tFRqrPazTZJLYsWeScbohnfn/bKBD3R09bDOxF8KLt5rfYn3+mLRQX9 ndRxwkEE5dFX0Zv0G62BDnlsqIT0w8YQ/28pUsL3C9cocSRO7bu1vq2fSPxFAty/zsxky/ h8609RWxIUhC9qzjHFIVo2kgUJUxWs8X1aBP+v2V7MVQGYAdy2t5T+2hvx2P+1BGs3NKho 4adtQ9AsZ1nGSMqzuzz4uRsnHHNmXhRMuTxU4gA33snNrvV21o2/PTs/lLMnxyLspvX/sz VbJmaz7D7fDT2S6zDcKg1ZsuiO45VqCj9CQNgUQLDOf8xw6CmLhAy3InmGvhLQ== Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: vmaffione) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RjVFP4FSCz13ZX; Sat, 9 Sep 2023 10:53:13 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-26d0d376ec7so2232334a91.2; Sat, 09 Sep 2023 03:53:13 -0700 (PDT) X-Gm-Message-State: AOJu0YxcGvqP/pzEUxDbThuSFlq1CLRBHykRSpJ1ZNXMxb1AgBpNKPLB OVFWnLpvuxLe0AwZqZAuitO5cFW87GqdjS0ll28= X-Google-Smtp-Source: AGHT+IHWQ3ufNTrDziqMyUjhpaZg9HYDJRQX1akkIzQFQxGTbCm8AJTyOayShiYr7/MZdFQKMLgzHEF4bi+s89OlVfQ= X-Received: by 2002:a17:90a:660f:b0:267:909f:3719 with SMTP id l15-20020a17090a660f00b00267909f3719mr4884793pjj.19.1694256792512; Sat, 09 Sep 2023 03:53:12 -0700 (PDT) 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 References: In-Reply-To: From: Vincenzo Maffione Date: Sat, 9 Sep 2023 12:53:01 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Question about virtio_alloc_virtqueues To: =?UTF-8?Q?Mina_Gali=C4=87?= Cc: freebsd-hackers , "freebsd-virtualization@FreeBSD.org" Content-Type: multipart/alternative; boundary="00000000000046b0630604eae632" --00000000000046b0630604eae632 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Looking at the code, it looks like that comment was written at a time where per-virtqueue MSIX interrupts were not available, and virtio_alloc_virtqueues() API was already designed to receive a flag to indicate that per-virtqueue MSIX interrupts were requested. The code you quoted would likely have been a simple placeholder, to be replaced with something like "flags |=3D VIRTIO_PERVQ_INTR" once the support had come. It= 's a very common pattern to start with setting flags =3D 0, and then bitwise o= r |=3D flags depending on the situation. However: - per-virtqueue MSIX interrupts are now available (e.g. look at vtpci_setup_interrupts()), and - virtiqueues interrupt setup happens in a separate API, i.e. virtio_setup_intr(), which takes care all the possible cases So as far as I can tell that comment is not relevant anymore and can be removed together with the flags. Unless I'm wrong, ofc. Cheers, Vincenzo Il giorno ven 8 set 2023 alle ore 21:05 Mina Gali=C4=87 = ha scritto: > Hi folks, > > for the past two or so weeks, I've been trying to document the > virtio functions: You can see some of my progress here: > > https://codeberg.org/meena/freebsd-src/commits/branch/improve/virtio > > I'm currently trying to document virtio_alloc_virtqueues. > The second argument, flags, is only ever called with 0, and > never passed on to anything. So I thought I'd remove it. > However, there *is* this comment in if_vtnet.c: > > /* > * TODO: Enable interrupt binding if this is multiqueue. This wil= l > * only matter when per-virtqueue MSIX is available. > */ > if (sc->vtnet_flags & VTNET_FLAG_MQ) > flags |=3D 0; > > > after which flags are still set to 0. for now?? > What does this mean? > > Kind regards, > > Mina Gali=C4=87 > > --00000000000046b0630604eae632 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
=C2=A0 Looking at the code, it looks li= ke that comment was written at a time where per-virtqueue MSIX interrupts w= ere not available, and virtio_alloc_virtqueues() API was already designed t= o receive a flag to indicate that per-virtqueue MSIX interrupts were reques= ted. The code you quoted would likely have been a simple placeholder, to be= replaced with something like "flags |=3D VIRTIO_PERVQ_INTR" once= the support had come. It's a very common pattern to start with setting= flags =3D 0, and then bitwise or |=3D flags depending on the situation.

However:
  • per-virtqueue MSIX in= terrupts are now available (e.g. look at vtpci_setup_interrupts()), and
  • virtiqueues interrupt setup happens in a separate API, i.e. virtio_set= up_intr(), which takes care all the possible cases
So as = far as I can tell that comment is not relevant anymore and can be removed t= ogether with the flags.
Unless I'm wrong, ofc.
=
Cheers,
=C2=A0 Vincenzo

<= div class=3D"gmail_quote">
Il giorno v= en 8 set 2023 alle ore 21:05 Mina Gali=C4=87 <freebsd@igalic.co> ha scritto:
Hi folks,

for the past two or so weeks, I've been trying to document the
virtio functions: You can see some of my progress here:

https://codeberg.org/meena/freeb= sd-src/commits/branch/improve/virtio

I'm currently trying to document virtio_alloc_virtqueues.
The second argument, flags, is only ever called with 0, and
never passed on to anything. So I thought I'd remove it.
However, there *is* this comment in if_vtnet.c:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 /*
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0* TODO: Enable interrupt binding if this = is multiqueue. This will
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0* only matter when per-virtqueue MSIX is = available.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*/
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if (sc->vtnet_flags & VTNET_FLAG_MQ)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 flags |=3D 0;


after which flags are still set to 0. for now??
What does this mean?

Kind regards,

Mina Gali=C4=87

--00000000000046b0630604eae632-- From nobody Sat Sep 9 19:51:38 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 4RjkBg0Tqfz4t4J2 for ; Sat, 9 Sep 2023 19:51:39 +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 4RjkBf6m2Bz3Kh3 for ; Sat, 9 Sep 2023 19:51:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694289098; a=rsa-sha256; cv=none; b=n4MX5FJTblN0CsFS0BFzW9sH34n5zj6OjwXgBPt0hrpxBh5JKBq6jeJd7vbu9mpkfr9A8H 4grGlMzw5VfpQds8b8szd0XetUnidcM5FFYYEzhpdgXw7c/kCDOnQg/TE/Eo6Hw315dlsr s39HNXwok01UlxdRHDPV7wrgGgZs0vAd9OlxiKirRYkGsR2OIJBlLVIBGaZwCcTTuYzzUn Se0mRikm3R5fn35YS6v8a2ecRV9SkT2zPAaW2Y9ANoE9CNyVRM0KMsT17CMTh1fh+MAZaz n33vY/Gn/EfOurYw1nj2rYCTHeFq8r1WPb3Jgdyrg4CssTRHBgsiwor7kkrw+g== 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=1694289098; 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=ysjsWgIU63PgksPTBU5kdUA2Y5uFOmTdll49FPo6Vo4=; b=us+pFLh0QyhyFY4rtFWFVWoEjWLpNYdVGKr1fA8B/PkpwVrPX0E5MVeTNRADcOHvgfdGdX Yc2Q9rgDz+mvv1l4qIGirMJeAlTXfbudGi0UG2LORg/pRmxjyIMlK1qMoaJ52mHdeQv9iw 9qo6tw8Je2OAVFJ2EMo4Tvn6NMQPjct4tsdmaYElEdR1olCuFGQ7fB2d1HjeM3mbqd6f3X azxsaqc4wRsMFWLayrLROMJ9tl94g7GEDHGDXnBj7aGX03kJwnGQLjcRiMss19JeEQoztg iCcYR4v0HG6dABegDanOKodPztxcFN9d0ZkcBVMVptfUMcygxSUcBIhjT4WoBg== 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 4RjkBf4twSzdYP for ; Sat, 9 Sep 2023 19:51:38 +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 389Jpc5u065788 for ; Sat, 9 Sep 2023 19:51:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 389JpcS3065787 for virtualization@FreeBSD.org; Sat, 9 Sep 2023 19:51:38 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 273372] SR-IOV Networking in Bhyve Causes Chelsio T520-SO-CR to Fail on Host, Kernel Panic if Reset Date: Sat, 09 Sep 2023 19:51:38 +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: 13.2-RELEASE X-Bugzilla-Keywords: bhyve X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: mark@markmcb.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: 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=3D273372 --- Comment #4 from Mark McBride --- I just attempted 14 vfs with 14-BETA1 as the host. Still fails. As requested ... # sysctl -n dev.t5nex.0.misc.devlog=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 Seq# Tstamp Level Facility Message=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 0 427889 INFO CORE log initialized @ 0x200a00= 00 size 32768 (128 entries) fwrev 0x011b0400 pcie_fw 0x0014cc10=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1 521576 INFO CORE bootstrap firmware took 27 msecs to run=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 2 525170 INFO CORE Serial Configuration versi= on: 0x1006000 VPD version: 0x1=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 3 525173 INFO CORE pcie: npf 7 (pfbitmap 0x7f) nvf 64 (pf 0..7 0x1010101000000000) vfstride 4=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 4 535983 INFO CORE flr_timer_start: flowc_id = 125 0x205fff80 buf 0x205fc0c0=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 5 575529 INFO CF cf_parse: file memtype 0x1 memaddr 0x5e0000 mapped @ 0x205e0000:=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 6 575559 INFO CF configuration file parser:= pl timeout value is too large, changing from 10000 to 4194usecs=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 7 576541 INFO CORE configured with caps nbm|l= ink 0x00000000 switch|nic 0x00030001 toe|rdma 0x00010003 iscsi|crypto 0x00410000 fcoe:0x0=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 8 576579 NOTICE CORE pfvf_init: 150 SMT entires= are still unused=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 9 576592 INFO HW hw_tp_tcp_tunings: tuning = for LAN environment=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 10 576622 INFO RES le configuration: nentries 2048 route 32 clip 32 filter 1440 server 416 active 128 hash 0 nserversram = 0=20=20=20=20 11 577565 INFO DMAQ Firmware using new VIID fo= rmat ([11:9] PFN, [8] VI Valid, [7:0] VIN)=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 12 578623 INFO RES flowc_table 0x200c8000, si= ze 211456=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 13 580825 NOTICE RI Not enough memory for 21 ird/ord per conn, ird/ord changed to 21=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 14 582460 INFO CORE flr_timer_start: flowc_id = 1651 0x200fb980 buf 0x2039c800=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 15 612719 INFO RES le initialization: nentries 2048 route 32 clip 32 filter 1440 server 416 active 128 hash 0 nserversram = 0=20=20=20=20 16 836644 INFO PORT module[0]: gpio 11 vendor = id 004020, identifier 0x03, SFP28(byte 36/192) 0xff, SFP(byte 3/131) 0x00, 1G (byte 6) 0x00=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 17 836646 INFO PORT optical length(byte 15/142= ) 0, copper cable(byte 8/147) 0x04, length(byte 18/146) 3, module_type 0x04=20= =20=20=20=20=20=20=20=20=20 18 836649 INFO PORT hw_mac_init_port[0], ptype 0x9, speed 0x4, lanes 0x1, fec 0x0=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 19 836685 INFO TM pktsched channel 0 sets sp= eed (from 0) to 10000000 kbps=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 20 836693 INFO PORT port_init: TRY_OTHER_SPEED flag is default set for T5=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 21 836696 INFO PORT port_refill_other_speed: module speed 0x4, try speed 0x6=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 22 842475 INFO PORT module[1]: gpio 15 vendor = id 004020, identifier 0x03, SFP28(byte 36/192) 0xff, SFP(byte 3/131) 0x00, 1G (byte 6) 0x00=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 23 842476 INFO PORT optical length(byte 15/142= ) 0, copper cable(byte 8/147) 0x04, length(byte 18/146) 3, module_type 0x04=20= =20=20=20=20=20=20=20=20=20 24 842478 INFO PORT hw_mac_init_port[1], ptype 0x9, speed 0x4, lanes 0x2, fec 0x0=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 25 842503 INFO TM pktsched channel 1 sets sp= eed (from 0) to 10000000 kbps=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 26 842509 INFO PORT port_init: TRY_OTHER_SPEED flag is default set for T5=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 27 842510 INFO PORT port_refill_other_speed: module speed 0x4, try speed 0x6=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 28 842521 INFO TM pktsched channel 2 sets sp= eed (from 0) to 1000000 kbps=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 29 842534 INFO TM pktsched channel 3 sets sp= eed (from 0) to 1000000 kbps=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 30 11621579 NOTICE FLR pfn 1 vfn 1 via command=20= =20=20=20=20=20=20=20 31 11675139 NOTICE FLR pfn 1 vfn 2 via command=20= =20=20=20=20=20=20=20 32 11732187 NOTICE FLR pfn 1 vfn 3 via command=20= =20=20=20=20=20=20=20 33 11784054 NOTICE FLR pfn 1 vfn 4 via command=20= =20=20=20=20=20=20=20 34 11836035 NOTICE FLR pfn 1 vfn 5 via command 35 11888064 NOTICE FLR pfn 1 vfn 6 via command 36 11947325 NOTICE FLR pfn 1 vfn 7 via command 37 12002982 NOTICE FLR pfn 1 vfn 8 via command 38 12061187 NOTICE FLR pfn 1 vfn 9 via command 39 12114554 NOTICE FLR pfn 1 vfn 10 via command 40 12442526 INFO PORT port_link_state_handler[0] powering up 41 12442541 INFO PORT port[0] update (flowcid 14= 56 rc 0) 42 12742529 INFO PORT port_hss_sigdet[0]: hss_si= gdet changed to 0x1 43 12742533 INFO PORT hw_mac_link_status[0] int_cause 0x13019f0, link_status 0x12 44 12942526 INFO PORT port[0] link up (1) (speed= 0x4 acaps 0x70004 lpcaps 0x70000) 45 12942531 INFO PORT port[0] set PAUSE PARAMS: pppen 0 txpe 0x1 rxpe 0x1 46 12942539 INFO PORT port[0] update (flowcid 14= 56 rc 0) 47 26080128 ERR CORE insufficient caps to proce= ss mailbox cmd: pfn 0x1 vfn 0x1; r_caps 0x86 wx_caps 0x82 required r_caps 0x81 w_caps 0x5 48 26142587 INFO PORT port_link_state_handler[1] powering up 49 26142593 INFO PORT port[1] update (flowcid 14= 75 rc 0) 50 26442579 INFO PORT port_hss_sigdet[1]: hss_si= gdet changed to 0x2 51 28492130 ERR CORE insufficient caps to proce= ss mailbox cmd: pfn 0x1 vfn 0x2; r_caps 0x86 wx_caps 0x82 required r_caps 0x81 w_caps 0x5 52 28542596 INFO PORT port[1] update (flowcid 14= 75 rc 0) 53 28542600 INFO PORT port[1] update (flowcid 14= 76 rc 0) 54 30042592 INFO PORT port_hss_sigdet[1]: hss_si= gdet changed to 0x0 55 30642594 INFO PORT port_hss_sigdet[1]: hss_si= gdet changed to 0x2 56 30642596 INFO PORT hw_mac_link_status[1] int_cause 0x10018f0, link_status 0x12 57 30742595 INFO PORT hw_mac_link_status[1] int_cause 0x10018f0, link_status 0x12 58 30942601 INFO PORT port[1] link up (1) (speed= 0x4 acaps 0x70004 lpcaps 0x70000) 59 30942605 INFO PORT port[1] set PAUSE PARAMS: pppen 0 txpe 0x1 rxpe 0x1 60 30942614 INFO PORT port[1] update (flowcid 14= 75 rc 0) 61 30942617 INFO PORT port[1] update (flowcid 14= 76 rc 0) 62 30948649 ERR CORE insufficient caps to proce= ss mailbox cmd: pfn 0x1 vfn 0x3; r_caps 0x86 wx_caps 0x82 required r_caps 0x81 w_caps 0x5 63 31042603 INFO PORT port[1] update (flowcid 14= 75 rc 0) 64 31042607 INFO PORT port[1] update (flowcid 14= 76 rc 0) 65 31042610 INFO PORT port[1] update (flowcid 14= 77 rc 0) 66 33283779 ERR CORE insufficient caps to proce= ss mailbox cmd: pfn 0x1 vfn 0x4; r_caps 0x86 wx_caps 0x82 required r_caps 0x81 w_caps 0x5 67 33342616 INFO PORT port[1] update (flowcid 14= 75 rc 0) 68 33342621 INFO PORT port[1] update (flowcid 14= 76 rc 0) 69 33342625 INFO PORT port[1] update (flowcid 14= 77 rc 0) 70 33342628 INFO PORT port[1] update (flowcid 14= 78 rc 0) 71 36739130 ERR CORE insufficient caps to proce= ss mailbox cmd: pfn 0x1 vfn 0x6; r_caps 0x86 wx_caps 0x82 required r_caps 0x81 w_caps 0x5 72 36742629 INFO PORT port[1] update (flowcid 14= 75 rc 0) 73 36742634 INFO PORT port[1] update (flowcid 14= 76 rc 0) 74 36742637 INFO PORT port[1] update (flowcid 14= 77 rc 0) 75 36742641 INFO PORT port[1] update (flowcid 14= 78 rc 0) 76 36742644 INFO PORT port[1] update (flowcid 14= 80 rc 0) 77 39149129 ERR CORE insufficient caps to proce= ss mailbox cmd: pfn 0x1 vfn 0x7; r_caps 0x86 wx_caps 0x82 required r_caps 0x81 w_caps 0x5 78 39242638 INFO PORT port[1] update (flowcid 14= 75 rc 0) 79 39242643 INFO PORT port[1] update (flowcid 14= 76 rc 0) 80 39242646 INFO PORT port[1] update (flowcid 14= 77 rc 0) 81 39242650 INFO PORT port[1] update (flowcid 14= 78 rc 0) 82 39242653 INFO PORT port[1] update (flowcid 14= 80 rc 0) 83 39242656 INFO PORT port[1] update (flowcid 14= 81 rc 0) 84 43102156 ERR CORE insufficient caps to proce= ss mailbox cmd: pfn 0x1 vfn 0x8; r_caps 0x86 wx_caps 0x82 required r_caps 0x81 w_caps 0x5 85 43142655 INFO PORT port[1] update (flowcid 14= 75 rc 0) 86 43142659 INFO PORT port[1] update (flowcid 14= 76 rc 0) 87 43142663 INFO PORT port[1] update (flowcid 14= 77 rc 0) 88 43142666 INFO PORT port[1] update (flowcid 14= 78 rc 0) 89 43142670 INFO PORT port[1] update (flowcid 14= 80 rc 0) 90 43142673 INFO PORT port[1] update (flowcid 14= 81 rc 0) 91 43142676 INFO PORT port[1] update (flowcid 14= 82 rc 0) 92 1548458671 INFO FLR pfn 1 vfn 11 FSM start 93 1548528664 INFO FLR pfn 1 vfn 11 FSM complete 94 1600183614 NOTICE FLR pfn 1 vfn 11 via command 95 1643893645 ERR CORE insufficient caps to proce= ss mailbox cmd: pfn 0x1 vfn 0xb; r_caps 0x86 wx_caps 0x82 required r_caps 0x81 w_caps 0x5 96 1643949059 INFO PORT port[1] update (flowcid 14= 75 rc 0) 97 1643949064 INFO PORT port[1] update (flowcid 14= 76 rc 0) 98 1643949068 INFO PORT port[1] update (flowcid 14= 77 rc 0) 99 1643949072 INFO PORT port[1] update (flowcid 14= 78 rc 0) 100 1643949075 INFO PORT port[1] update (flowcid 14= 80 rc 0) 101 1643949078 INFO PORT port[1] update (flowcid 14= 81 rc 0) 102 1643949081 INFO PORT port[1] update (flowcid 14= 82 rc 0) 103 1643949084 INFO PORT port[1] update (flowcid 14= 85 rc 0) --=20 You are receiving this mail because: You are the assignee for the bug.=