Re: [PATCH v2] drivers:tty:pty: Fix a race causing data loss on close

From: Jiri Slaby
Date: Tue Oct 06 2020 - 00:49:44 EST


On 05. 10. 20, 13:31, Greg Kroah-Hartman wrote:
> On Fri, Oct 02, 2020 at 08:03:04AM -0500, minyard@xxxxxxx wrote:
>> From: Corey Minyard <cminyard@xxxxxxxxxx>
>>
>> If you write to a pty master an immediately close the pty master, the
>> receiver might get a chunk of data dropped, but then receive some later
>> data. That's obviously something rather unexpected for a user. It
>> certainly confused my test program.
...
> Jiri, any thoughts about this? At first glance, it looks sane to me,
> but a second review would be great.

Hi,

I haven't had a chance to look into it yet (labsconf this week). Moving
it upwards on my TODO.

thanks,
--
js