phk aaaac2aa6c With the new kernel dev_t conversions done at release 4.X,
it becomes possible to trap in ptsstop() in kern/tty_pty.c
     if the slave side has never been opened during the life of a kernel.

     What happens is that calls to ttyflush() done from ptyioctl() for the
     controlling side end up calling ptsstop() [via (*tp->t_stop)(tp, <X>)]
     which evaluates the following:

	     struct pt_ioctl *pti = tp->t_dev->si_drv1;

     In order for tp->t_dev to be set, the slave device must first be
     opened in ttyopen() [kern/tty.c].

     It appears that the only problem is calls to (*tp->t_stop)(tp, <n>),
     so this could also happen with other ioctls initiated by the
     controlling side before the slave has been opened.

PR:		27698
Submitted by:	David Bein bein@netapp.com
MFC after:	6 days
2001-05-28 20:22:12 +00:00
..
2001-01-28 06:39:56 +00:00
2001-04-13 09:37:25 +00:00
2000-12-01 08:57:47 +00:00
2001-01-01 23:09:53 +00:00
2000-09-29 13:36:47 +00:00
2001-05-28 01:00:03 +00:00
2001-05-24 18:06:22 +00:00
2000-12-01 08:57:47 +00:00
2001-05-15 18:12:38 +00:00