Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jan 2007 01:06:32 +0100
From:      Ed Schouten <ed@fxq.nl>
To:        John Baldwin <jhb@freebsd.org>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>, philippe.lang@attiksystem.ch, bug-followup@freebsd.org
Subject:   Re: kern/89528: [jail] impossible to kill a jail
Message-ID:  <20070106000632.GA46094@hoeg.nl>
In-Reply-To: <200701051427.46146.jhb@freebsd.org>
References:  <20070104201434.GS1072@hoeg.nl> <200701051427.46146.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--YiEDa0DAkWCtVeE4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* John Baldwin <jhb@freebsd.org> wrote:
> Why aren't the pty's destroyed?  Once all references to the pty are close=
d it =20
> should be destroyed and the resulting devfs_free() should drop the refere=
nce.
> Is the pty somehow stuck on the dead_cdevsw?

Ouch! I found a comment in tty_pty.c that it doesn't deallocate pty's
anymore. Not a single destroy_dev() is called by tty_pty.c. This means
the FreeBSD kernel leaks a lot of cdev's and thus ucred's and my patch
is working around another bug.

Yours,
--=20
 Ed Schouten <ed@fxq.nl>
 WWW: http://g-rave.nl/

--YiEDa0DAkWCtVeE4
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFFnugI52SDGA2eCwURAggEAJsF9WpUHCnKZaGvtoGp45MFTZRbDwCfexxV
UAdEvGoYVyK0gLlbI+8p8VU=
=Uo2h
-----END PGP SIGNATURE-----

--YiEDa0DAkWCtVeE4--



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