From nobody Wed Aug 23 20:04:56 2023 X-Original-To: bugs@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 4RWHHr5868z4rK9L for ; Wed, 23 Aug 2023 20:04:56 +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 4RWHHr37zvz4vZh for ; Wed, 23 Aug 2023 20:04:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692821096; 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=dOtFwnx3tAgpjpAaVosBUL4CjeACoaZPyA5yfzvKSPE=; b=s/fB8KNrK7nEdKpG+YzT24HhbR04J8dgZWOwZgnjiQK9YpIysJHKjNXJQN9BTC/D7GxjLJ 57FwisYkodA+FDgrJ15vAkf/jol2Hbs5Q+Q948/FdAZZleeTe1Rno+VUYBy3OXIVvZX+8Z y4w6W6t5knqWPNt1sRqJOcLwnOAMrMFhXo+v4+M7eQImT9XDvzaiWSjjg8MhPIAdjTbGgZ wpilP9u7U1gLDgks+ZYmX+SAgLc5C4a72mQHqX49fRK1Hk4Z2XAkKRLAMNo6BQCHNe1Hya LRsBjV+YIcsufO0huXhslsIaAQjDoCntabqZnuOsoiDza4UN2pELovz0jvzrPA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692821096; a=rsa-sha256; cv=none; b=ZqgP4QyECzTJrt8PVcCIXoQN+EoY8n/Jt/mFtWpsgliP+i3Z8ZplplJmYLxdwEPjN+2xlh xpf0UybEfzP5RvlQn3IDB2R3GlgdGgrTJbH4j8IV7a+8RZ2ZR3KeQpPtyW1n3+sWrHS49w 9N78+k25Mx/GWCQuTyrnFdFn18wSEluN5h8ydSimC47+qp8kN4N5pMzoIxbJXUX/0YbLz5 4erRLlQx1+LLkXZ9G1aOO9//rmKpkn5zuAMJRrX4Uu+wlTblr9Q9OO5WH9OtWUMfwC09Wp 9tR2aLoZzZpSWHX2V4jAAD4SyKgVNGwwMUdTgoSJ+n8mJ9kgm3Pl8Y1TKkR0yg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RWHHr25KdzyLh for ; Wed, 23 Aug 2023 20:04:56 +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 37NK4unB065639 for ; Wed, 23 Aug 2023 20:04:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37NK4uwo065638 for bugs@FreeBSD.org; Wed, 23 Aug 2023 20:04:56 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: bugs@FreeBSD.org Subject: [Bug 273315] ifconfig -g does not show epair from removed jail Date: Wed, 23 Aug 2023 20:04:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jcaplan@blackberry.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273315 Bug ID: 273315 Summary: ifconfig -g does not show epair from removed jail Product: Base System Version: 13.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: jcaplan@blackberry.com Steps to reproduce ------------------ root@freebsd:/usr/home/jcaplan # ifconfig epair create epair0a root@freebsd:/usr/home/jcaplan # ifconfig -g epair epair0b epair0a root@freebsd:/usr/home/jcaplan # jail -c name=3Dtest vnet vnet.interface=3D= epair0b persist root@freebsd:/usr/home/jcaplan # jls -v JID Hostname Path Name State CPUSetID IP Address(es) 1 / test ACTIVE 3 root@freebsd:/usr/home/jcaplan # ifconfig -g epair epair0a root@freebsd:/usr/home/jcaplan # jail -r test root@freebsd:/usr/home/jcaplan # ifconfig -g epair epair0a root@freebsd:/usr/home/jcaplan # ifconfig epair0b epair0b: flags=3D8863 metric 0 mtu = 1500 options=3D8 ether 02:b4:31:04:84:0b inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 media: Ethernet 10Gbase-T (10Gbase-T ) status: active nd6 options=3D29 Actual Results:=20 --------------- ifconfig -g does not show epair0b after jail is removed Expected Results: ----------------- ifconfig -g should show epair0b after jail is removed Build Date & Hardware: ---------------------- root@freebsd:/usr/home/jcaplan # uname -a FreeBSD freebsd 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64 Additional Information ---------------------- When detaching epair0b to move into the jail, if_vmove() finds an ifc: rc =3D if_detach_internal(ifp, 1, &ifc); // ifc !=3D NULL However, when moving epair0b back in the other direction and detaching from= the jail vnet, ifc =3D=3D NULL so if_attach_internal() skips if_clone_addgroup(ifc=3Depair) --=20 You are receiving this mail because: You are the assignee for the bug.=