看板 FB_hackers 關於我們 聯絡資訊
--8CNmCRe8Sh4keFKJ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Ed Schouten <ed@fxq.nl> wrote: > * Vlad GALU <dudu@dudu.ro> wrote: > > On 10/2/07, Dag-Erling Sm=F8rgrav <des@des.no> wrote: > > > "Vlad GALU" <dudu@dudu.ro> writes: > > > > The symptoms were exhibited even with rev. 1.16. I've CC'ed him so > > > > he can catch up with the thread. > > > > > > Which symptoms? I can no longer reproduce the hang-on-close bug. > >=20 > > Strangely enough, me neither. In his case, allocated pts' wouldn't > > get deallocated once the sessions ended. >=20 > This is a known issue IIRC. See line 245 of tty_pts.c 1.16. Can be > easily reproduced by killing the sshd while apps are still running in > the shell. >=20 > I thought we weren't able to destroy the device there, because you can't > destroy a TTY when it is used by an application (i.e. when it's the > controlling terminal). Thought about this 2 seconds after I sent my message: this is also responsible for the `zombie jails': tty's are made with make_dev_cred, which causes ucred's to be leaked, which eventually causes prisons to be leaked. --=20 Ed Schouten <ed@fxq.nl> WWW: http://g-rave.nl/ --8CNmCRe8Sh4keFKJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHAkFh52SDGA2eCwURAo5gAJ9hrgjycx8KCSDaMMCAYWO9TAFoaQCggExV nLwhxxIHRHwW/UNjLqqKHKI= =8+HJ -----END PGP SIGNATURE----- --8CNmCRe8Sh4keFKJ--