Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2006 06:33:34 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        Dirk Engling <erdgeist@erdgeist.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Phantom Jails
Message-ID:  <20061117062952.H18512@maildrop.int.zabbadoz.net>
In-Reply-To: <455D2A7A.90109@erdgeist.org>
References:  <455D2A7A.90109@erdgeist.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 17 Nov 2006, Dirk Engling wrote:

Hi,

> Rumors went around and tales were told about jails magically booing
> around in prison list, even after they deceased.
...
> My suggestion would be (I will provide a patch, if discussion produces
> no major disagreement) to release ucred structs held by sockets as soon
> as the process dies. They are being used for accounting purposes only,
> anyway. The same may apply to the other types of phantom jails, as well.
> I could not create those deliberately and therefore can not exactly spot
> the proper location to fix.
>
> Comments?
>
> P.S.: if you want to reproduce a phantom jail try the following:
> 1) create and start a jail
> 2) Start a ssh/web/whatever server within the jail
> 3) Connect to that server from the host system.
> 4) Keep this connection open while you kill the jail
> 5) Do a 'jls' and compare its output to "ps axuu | grep J"
> 6) Kill the process that connected to the service.
> 7) Do a 'jls' again.

while this works you can also reproduce it if you log out of the jail
wait for the sockets to go away entirely and then stop the jail
because what keeps the jail up is not a socket but is related to devfs
and ?tys.

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/89528

-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061117062952.H18512>