Re: [PATCH 1/2] n_tty: Fix stall at n_tty_receive_char_special().

2018-06-04 Thread Greg Kroah-Hartman
On Mon, Jun 04, 2018 at 07:49:40PM +0900, Tetsuo Handa wrote: > Greg, Jiri, will you pick up these patches? Sorry, I missed these last week. They are still in my queue but have to wait until after 4.18-rc1 is out. They are not lost, don't worry... greg k-h

Re: [PATCH 1/2] n_tty: Fix stall at n_tty_receive_char_special().

2018-06-04 Thread Tetsuo Handa
Greg, Jiri, will you pick up these patches? On 2018/05/26 1:12, Greg KH wrote: > On Thu, May 17, 2018 at 07:11:01AM -0700, syzbot wrote: >> Hello, >> >> syzbot has tested the proposed patch and the reproducer did not trigger >> crash: > > Great! Is the patch going to be submitted "properly" so

[PATCH 1/2] n_tty: Fix stall at n_tty_receive_char_special().

2018-05-25 Thread Tetsuo Handa
syzbot is reporting stalls at n_tty_receive_char_special() [1]. This is because comparison is not working as expected since ldata->read_head can change at any moment. Mitigate this by explicitly masking with buffer size when checking condition for "while" loops. [1]