Re: [PATCH v4] n_tty: Fix buffer overruns with larger-than-4k pastes

2013-12-18 Thread Peter Hurley
On 12/18/2013 06:48 AM, Henrique de Moraes Holschuh wrote: On Mon, 16 Dec 2013, Peter Hurley wrote: Is this a 3.13-final thing, or can it wait for 3.14-rc1? Definitely not 3.13 at this point -- it should go to -next. Please earmark it for stable, if possible. This fixes a rather annoying lon

Re: [PATCH v4] n_tty: Fix buffer overruns with larger-than-4k pastes

2013-12-18 Thread Henrique de Moraes Holschuh
On Mon, 16 Dec 2013, Peter Hurley wrote: > >Is this a 3.13-final thing, or can it wait for 3.14-rc1? > > Definitely not 3.13 at this point -- it should go to -next. Please earmark it for stable, if possible. This fixes a rather annoying long time bug, after all... -- "One disk to rule them al

Re: [PATCH v4] n_tty: Fix buffer overruns with larger-than-4k pastes

2013-12-16 Thread Peter Hurley
On 12/16/2013 07:57 PM, Greg Kroah-Hartman wrote: On Tue, Dec 10, 2013 at 05:12:02PM -0500, Peter Hurley wrote: readline() inadvertently triggers an error recovery path when pastes larger than 4k overrun the line discipline buffer. The error recovery path discards input when the line discipline

Re: [PATCH v4] n_tty: Fix buffer overruns with larger-than-4k pastes

2013-12-16 Thread Greg Kroah-Hartman
On Tue, Dec 10, 2013 at 05:12:02PM -0500, Peter Hurley wrote: > readline() inadvertently triggers an error recovery path when > pastes larger than 4k overrun the line discipline buffer. The > error recovery path discards input when the line discipline buffer > is full and operating in canonical mod

[PATCH v4] n_tty: Fix buffer overruns with larger-than-4k pastes

2013-12-10 Thread Peter Hurley
readline() inadvertently triggers an error recovery path when pastes larger than 4k overrun the line discipline buffer. The error recovery path discards input when the line discipline buffer is full and operating in canonical mode and no newline has been received. Because readline() changes the ter