Re: [PATCH AUTOSEL 4.4 50/56] tty: pty: Fix race condition between release_one_tty and pty_write

2019-06-11 Thread Sasha Levin
On Sat, Jun 01, 2019 at 09:18:36AM -0700, Greg Kroah-Hartman wrote: On Sat, Jun 01, 2019 at 09:17:07AM -0700, Greg Kroah-Hartman wrote: On Sat, Jun 01, 2019 at 09:25:54AM -0400, Sasha Levin wrote: > From: Sahara > > [ Upstream commit b9ca5f8560af244489b4a1bc1ae88b341f24bc95 ] > > Especially whe

Re: [PATCH AUTOSEL 4.4 50/56] tty: pty: Fix race condition between release_one_tty and pty_write

2019-06-01 Thread Greg Kroah-Hartman
On Sat, Jun 01, 2019 at 09:25:54AM -0400, Sasha Levin wrote: > From: Sahara > > [ Upstream commit b9ca5f8560af244489b4a1bc1ae88b341f24bc95 ] > > Especially when a linked tty is used such as pty, the linked tty > port's buf works have not been cancelled while master tty port's > buf work has been

Re: [PATCH AUTOSEL 4.4 50/56] tty: pty: Fix race condition between release_one_tty and pty_write

2019-06-01 Thread Greg Kroah-Hartman
On Sat, Jun 01, 2019 at 09:17:07AM -0700, Greg Kroah-Hartman wrote: > On Sat, Jun 01, 2019 at 09:25:54AM -0400, Sasha Levin wrote: > > From: Sahara > > > > [ Upstream commit b9ca5f8560af244489b4a1bc1ae88b341f24bc95 ] > > > > Especially when a linked tty is used such as pty, the linked tty > > po

[PATCH AUTOSEL 4.4 50/56] tty: pty: Fix race condition between release_one_tty and pty_write

2019-06-01 Thread Sasha Levin
From: Sahara [ Upstream commit b9ca5f8560af244489b4a1bc1ae88b341f24bc95 ] Especially when a linked tty is used such as pty, the linked tty port's buf works have not been cancelled while master tty port's buf work has been cancelled. Since release_one_tty and flush_to_ldisc run in workqueue threa