From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 6 00:06:33 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D5BC216A47B; Sat, 6 Jan 2007 00:06:33 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (palm.hoeg.nl [83.98.131.212]) by mx1.freebsd.org (Postfix) with ESMTP id 8FFC413C46B; Sat, 6 Jan 2007 00:06:33 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 98B391CC6E; Sat, 6 Jan 2007 01:06:32 +0100 (CET) Date: Sat, 6 Jan 2007 01:06:32 +0100 From: Ed Schouten To: John Baldwin Message-ID: <20070106000632.GA46094@hoeg.nl> References: <20070104201434.GS1072@hoeg.nl> <200701051427.46146.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <200701051427.46146.jhb@freebsd.org> User-Agent: Mutt/1.5.13 (2006-08-11) X-Mailman-Approved-At: Sat, 06 Jan 2007 02:35:17 +0000 Cc: FreeBSD Hackers , philippe.lang@attiksystem.ch, bug-followup@freebsd.org Subject: Re: kern/89528: [jail] impossible to kill a jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jan 2007 00:06:33 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * John Baldwin 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 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--