Date: Mon, 16 Feb 2026 20:47:37 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 293228] jail(8): In-use IPs from can be removed from host interfaces Message-ID: <bug-293228-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293228 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 returns 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 for now this eliminates unexpected behavior. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-293228-227>
