Re: [PATCH v7] tty: fix hang on tty device with no_room set

From: Bagas Sanjaya
Date: Mon Apr 03 2023 - 22:56:03 EST


On 4/4/23 09:49, Bagas Sanjaya wrote:
> On Fri, Mar 17, 2023 at 10:24:07AM +0800, juanfengpy@xxxxxxxxx wrote:
>> We have met a hang on pty device, the reader was blocking
>> at epoll on master side, the writer was sleeping at wait_woken
>> inside n_tty_write on slave side, and the write buffer on
>> tty_port was full, we found that the reader and writer would
>> never be woken again and blocked forever.
>
> Where do you find this hanging pty? Seems like the wording makes me
> confused. Maybe you mean "It is possible to hang pty device. In that
> case, ..."
>

Oops, I forgot to Cc: LKML.

--
An old man doll... just what I always wanted! - Clara