kern/89528: [jail] impossible to kill a jail
Ed Schouten
ed at fxq.nl
Sat Jan 6 00:06:33 UTC 2007
* John Baldwin <jhb at freebsd.org> wrote:
> Why aren't the pty's destroyed? Once all references to the pty are closed it
> should be destroyed and the resulting devfs_free() should drop the reference.
> 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,
--
Ed Schouten <ed at fxq.nl>
WWW: http://g-rave.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070106/309fdfd7/attachment.pgp
More information about the freebsd-hackers
mailing list