From nobody Mon Feb 16 20:47:37 2026 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 4fFFG14s0dz6SL1p for ; Mon, 16 Feb 2026 20:47:37 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fFFG146QKz44hV for ; Mon, 16 Feb 2026 20:47:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771274857; 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=79x0F6NIMSMko4mLUbwowXG7/MCMyUlEEIYNXZcb1QE=; b=AP/Qg62T+/pw++R1S137MXyHguKtpsU34B7wgg9ZROXMu7SS6jqCBH2IqENgK9uY3xjOkc 0uAIyOhunTpTBzEzWj48+S+essNE/wEcFgArQTxAvKUIY0zxFmHqlDXQEbiYKN3LQXzIdi vhpEBxNwVk4tcXwDB2n606lwKehTRLDX1+EEZa4XEja0OoS4zcH1pnheaHJb0sFh5BRH2u 3kwEpCWxtdkcY5CNLfmBrxYCn+/rR2c1Zv8T0M/e1rPD3NPko09mFXtsjymY0SnVWFoHOB ZAcUxty4q6ktmn5yqctCOEQCK411lRzemAc6xOCXCvvFbpXnh3LHKCl7Ly/pGg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771274857; a=rsa-sha256; cv=none; b=Bavxc9ie6sleKMDVVqPJabsXpA/1jyeNKifNA6psKIq9I4ZKkDbXvWJrHMCa/mPw/Tee3p AKSI54lxtjZ8Xu15I4dBIGPUXz7p6E7jTqp1MwLhFj8hlp5kDeYXnXH2HK4X1SAQZBBsKK Egtzuz7G7r23Ovjq4HwjKSFJQ/brLPxwg57OerY8hZlMdmEhLbCuRAN8eaik8vMVY0zqBE tLeqCJ5lRzrORFMh6kPB4TyUDJT/PCQ90N3WnA6wbqwCAq2FEfQsMvGuuqSeUPAgKthVDS RVh9nurt7MF50Mw2Fk6/5Dwt/9fhm9D4LptjR241VBe/+TSwAkvTg1mxJeAVJw== 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=1771274857; 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=79x0F6NIMSMko4mLUbwowXG7/MCMyUlEEIYNXZcb1QE=; b=CGoPwOvY5YlRCMSvGhhS6/IYKGXAI5xFIxaM1v5lYQdlj79QZrZ7Rb/4AjJGh7oyG420hJ Q2UDE02lBkacHnwkL4RnAntdjW9dKvbi6yPWmNZusGGO6HzJ99w0jfNh5nSWYqLIgSo5tY lXyyYkbwdDkuGdq5t2D+YhNSSv6Iu+e2rohk7XqaisGi3us/s7M3qV8BKkBzABpho93Iu6 vyDw40kQlaWx4r1MIRED34XHSZ7FZ4CNm+QxzyulUai3I8C9y/SOz/7lRjODQ7OhaZ6kif 34wXV/big2OnP5WqayvvnDZ5IZwrN2GExy8DgFlQc97Oz+AGF078IGxW9rf90A== 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 4fFFG13N59zfly for ; Mon, 16 Feb 2026 20:47:37 +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 61GKlbvQ076747 for ; Mon, 16 Feb 2026 20:47:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 61GKlbUN076746 for bugs@FreeBSD.org; Mon, 16 Feb 2026 20:47:37 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 293228] jail(8): In-use IPs from can be removed from host interfaces Date: Mon, 16 Feb 2026 20:47:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: nick@spun.io 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D293228 Bug ID: 293228 Summary: jail(8): In-use IPs from can be removed from host interfaces Product: Base System Version: 15.0-CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: nick@spun.io When shutting down a non-vnet jail, jail(8) currently reads the jail's IP address from a jail configuration file and calls ifconfig to remove the IP = from the host interface. This breaks other non-vnet jails also using the same IP at the time. This PR modifies jail(8) so it looks at all running jails before deciding to remove an IP address from a host interface. It also has some helper functions to deal with the fact that the kernel ret= urns an address in the format `em0|192.168.0.1/32` while jail(8) only has a bare= IP from a jail configuration file (and FWIW, currently jail(8) does not detach interface addresses _at all_ if not passed a configuration file) https://github.com/freebsd/freebsd-src/pull/2000 Tracking more state in the kernel would probably be better long-term, but f= or now this eliminates unexpected behavior. --=20 You are receiving this mail because: You are the assignee for the bug.=