On Sul, 2005-01-23 at 13:15, Sergey Vlasov wrote: > On Sat, 22 Jan 2005 22:43:50 -0800 (PST) Linus Torvalds wrote: > tty_poll() grabs ldisc reference for the tty it was called with; > however, in this case pty_chars_in_buffer() accesses another ldisc > (tty->link->ldisc) without grabbing a reference to it. BTW, many other > pty_* functions do the same thing.
Correct - the pty code still relies on all sorts of "lock_kernel" assumptions so its probably very very racy. It can't however easily use tty_ldisc_() functions that wait because the lock ordering is indeterminate. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/